3 CFLAGS
= -Os
-Wall
$(EXTRACFLAGS
)
4 CFLAGS
+= -I
$(SRCBASE
)/include -I
$(TOP
)/shared
-I
$(TOP
)/mssl
6 LIBS
= -L
$(TOP
)/nvram
-lnvram
-L
$(TOP
)/shared
-lshared
-L
$(TOP
)/mssl
-lmssl
7 #LIBS = -L$(TOP)/nvram -lnvram -L$(TOP)/shared -lshared $(TOP)/mssl/libmssl.a $(TOP)/matrixssl/src/libmatrixsslstatic.a
9 ifeq ($(FULL_OPENSSL
),y
)
10 LIBS
+= -L
$(TOP
)/openssl
-lssl
-lcrypto
18 @echo
" [mdu] CC -o $@"
19 $(CC
) $(LDFLAGS
) -o
$@
$^
$(LIBS
)
29 @echo
" [mdu] Installing..."
30 install -D mdu
$(INSTALLDIR
)/bin
/mdu
31 $(STRIP
) $(INSTALLDIR
)/bin
/mdu
32 chmod
0500 $(INSTALLDIR
)/bin
/mdu
36 @
$(CC
) $(CFLAGS
) -c
$<
38 .depend
: $(OBJS
:%.o
=%.c
)
39 @
$(CC
) $(CFLAGS
) -M
$^
> .depend
42 @
$(CC
) $(CFLAGS
) -M
$< > $@
44 -include $(OBJS
:%.o
=.
%.depend
)