3 CFLAGS
= -O2
-Wall
$(EXTRACFLAGS
)
4 CFLAGS
+= -I
$(SRCBASE
)/include -I
$(TOP
)/shared
-I
$(TOP
)/mssl
12 @echo
" [mdu] CC -o $@"
13 $(CC
) $(LDFLAGS
) -o
$@
$^
-L..
/nvram
-lnvram
-L..
/shared
-lshared
-L..
/mssl
-lmssl
14 # $(CC) $(LDFLAGS) -o $@ $^ -L../nvram -lnvram -L../shared -lshared ../mssl/libmssl.a ../matrixssl/src/libmatrixsslstatic.a
24 @echo
" [mdu] Installing..."
25 install -D mdu
$(INSTALLDIR
)/bin
/mdu
26 $(STRIP
) $(INSTALLDIR
)/bin
/mdu
27 chmod
0500 $(INSTALLDIR
)/bin
/mdu
31 @
$(CC
) $(CFLAGS
) -c
$<
33 .depend
: $(OBJS
:%.o
=%.c
)
34 @
$(CC
) $(CFLAGS
) -M
$^
> .depend
37 @
$(CC
) $(CFLAGS
) -M
$< > $@
39 -include $(OBJS
:%.o
=.
%.depend
)