Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / mdu / Makefile
blobdafd6b6d2db148ef90884979dc7c967d3d139a30
1 include ../common.mak
3 CFLAGS = -Os -Wall $(EXTRACFLAGS)
4 CFLAGS += -I$(SRCBASE)/include -I$(TOP)/shared -I$(TOP)/mssl
5 LDFLAGS =
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
11 endif
13 OBJS = mdu.o md5.o
15 all: mdu
17 mdu: $(OBJS)
18 @echo " [mdu] CC -o $@"
19 $(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
21 $(SIZECHECK)
22 $(CPTMP)
24 clean:
25 rm -f mdu .*.depend
26 rm -f *.o
28 install: all
29 @echo " [mdu] Installing..."
30 install -D mdu $(INSTALLDIR)/bin/mdu
31 $(STRIP) $(INSTALLDIR)/bin/mdu
32 chmod 0500 $(INSTALLDIR)/bin/mdu
34 %.o: %.c .%.depend
35 @echo " [mdu] CC $@"
36 @$(CC) $(CFLAGS) -c $<
38 .depend: $(OBJS:%.o=%.c)
39 @$(CC) $(CFLAGS) -M $^ > .depend
41 .%.depend: %.c
42 @$(CC) $(CFLAGS) -M $< > $@
44 -include $(OBJS:%.o=.%.depend)