MiniDLNA 1.0.22: cvs 2011-08-25
[tomato.git] / release / src / router / mdu / Makefile
blob6190a90885540e4fc71d5b9182d8cfc2f8e1b0e6
1 include ../common.mak
3 CFLAGS = -O2 -Wall $(EXTRACFLAGS)
4 CFLAGS += -I$(SRCBASE)/include -I$(TOP)/shared -I$(TOP)/mssl
5 LDFLAGS =
7 OBJS = mdu.o
9 all: mdu
11 mdu: $(OBJS)
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
16 $(SIZECHECK)
17 $(CPTMP)
19 clean:
20 rm -f mdu .*.depend
21 rm -f *.o
23 install: all
24 @echo " [mdu] Installing..."
25 install -D mdu $(INSTALLDIR)/bin/mdu
26 $(STRIP) $(INSTALLDIR)/bin/mdu
27 chmod 0500 $(INSTALLDIR)/bin/mdu
29 %.o: %.c .%.depend
30 @echo " [mdu] CC $@"
31 @$(CC) $(CFLAGS) -c $<
33 .depend: $(OBJS:%.o=%.c)
34 @$(CC) $(CFLAGS) -M $^ > .depend
36 .%.depend: %.c
37 @$(CC) $(CFLAGS) -M $< > $@
39 -include $(OBJS:%.o=.%.depend)