Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / mssl / Makefile
blobd291edf2d0bf1b0d5769aae8574c89a73c9c3c7a
1 include ../common.mak
3 CFLAGS = -Os -Wall $(EXTRACFLAGS) -fPIC
4 LIBS =
5 LDFLAGS =
7 ifeq ($(FULL_OPENSSL),y)
8 CFLAGS += -I$(TOP)/openssl/include -DUSE_OPENSSL
9 LIBS += -L$(TOP)/openssl -lssl -lcrypto
10 else
11 CFLAGS += -I$(TOP)/cyassl/include -I$(TOP)/cyassl/ctaocrypt/include
12 LIBS += $(TOP)/cyassl/src/.libs/libcyassl.a
13 endif
15 LIBS += -lpthread
16 OBJ = mssl.o
18 all: libmssl.so libmssl.a
20 libmssl.so: $(OBJ)
21 $(CC) -shared -o $@ $^ $(LIBS)
22 $(STRIP) $@
23 $(CPTMP)
25 libmssl.a: $(OBJ)
26 rm -f $@
27 $(AR) cruv $@ $^
29 clean:
30 rm -f .*.depend *.o *.so *.a
32 install: all
33 @echo " [mssl] Installing..."
34 install -D libmssl.so $(INSTALLDIR)/usr/lib/libmssl.so
35 $(STRIP) $(INSTALLDIR)/usr/lib/libmssl.so
37 %.o: %.c .%.depend
38 @echo " [mssl] CC $@"
39 @$(CC) $(CFLAGS) -c $<
41 .depend: $(OBJS:%.o=%.c)
42 @$(CC) $(CFLAGS) -M $^ > .depend
44 .%.depend: %.c
45 @$(CC) $(CFLAGS) -M $< > $@
47 -include $(OBJS:%.o=.%.depend)