Tomato 1.28
[tomato.git] / release / src / router / pptp-client / Makefile
bloba3d8e50448a516f2e829f1d479e9918008da3fe1
1 VERSION = 1.1.0
3 CT_SPEC = 1
5 #################################################################
6 # CHANGE THIS LINE to point to the location of your pppd binary.
7 PPPD = /usr/sbin/pppd
8 #################################################################
10 #CROSS =mipsel-linux-
11 #CC = $(CROSS)gcc -s
12 RM = rm -f
13 DEBUG = -g
14 INCLUDE =
15 CFLAGS = -Wall -O1 $(DEBUG) $(INCLUDE) -I$(SRCBASE)/include
16 LIBS =
17 #LDFLAGS = -lutil
19 PPTP_BIN = pptp
21 PPTP_OBJS = pptp.o pptp_gre.o ppp_fcs.o \
22 pptp_ctrl.o dirutil.o vector.o \
23 inststr.o util.o version.o \
24 pptp_quirks.o orckit_quirks.o
26 PPTP_DEPS = pptp_callmgr.h pptp_gre.h ppp_fcs.h util.h \
27 pptp_quirks.h orckit_quirks.h config.h pptp_options.h
29 all: config.h $(PPTP_BIN)
31 $(PPTP_BIN): $(PPTP_OBJS) $(PPTP_DEPS)
32 $(CC) -o $(PPTP_BIN) $(PPTP_OBJS) $(LDFLAGS) $(LIBS)
34 config.h:
35 echo "/* text added by Makefile target config.h */" > config.h
36 echo "#define PPTP_LINUX_VERSION \"$(VERSION)\"" >> config.h
37 echo "#define PPPD_BINARY \"$(PPPD)\"" >> config.h
39 vector_test: vector_test.o vector.o
40 $(CC) -o vector_test vector_test.o vector.o
42 clean:
43 $(RM) *.o pptp
45 clobber: clean
46 $(RM) $(PPTP_BIN) vector_test
48 distclean: clobber
49 $(RM) pptp-linux-*.tar.gz
50 $(RM) -r pptp-linux-*
52 test: vector_test
54 dist: clobber
55 $(RM) pptp-linux-$(VERSION).tar.gz
56 $(RM) -r pptp-linux-$(VERSION)
57 mkdir pptp-linux-$(VERSION)
58 mkdir pptp-linux-$(VERSION)/Documentation
59 mkdir pptp-linux-$(VERSION)/Reference
60 cp \
61 AUTHORS COPYING INSTALL Makefile NEWS README TODO USING \
62 dirutil.c dirutil.h inststr.c inststr.h ppp_fcs.c ppp_fcs.h \
63 pptp.c pptp_callmgr.c pptp_callmgr.h pptp_ctrl.c pptp_ctrl.h \
64 pptp_gre.c pptp_gre.h pptp_msg.h pptp_options.h \
65 util.c util.h vector.c vector.h vector_test.c \
66 version.c version.h \
67 pptp-linux-$(VERSION)
68 cp \
69 Documentation/DESIGN.CALLMGR \
70 Documentation/DESIGN.PPTP \
71 Documentation/PORTING \
72 pptp-linux-$(VERSION)/Documentation
73 cp \
74 Reference/README \
75 Reference/ms-chap.txt \
76 Reference/pptp-draft.txt \
77 Reference/rfc1661.txt \
78 Reference/rfc1662.txt \
79 Reference/rfc1701.txt \
80 Reference/rfc1702.txt \
81 Reference/rfc1990.txt \
82 Reference/rfc791.txt \
83 Reference/rfc793.txt \
84 pptp-linux-$(VERSION)/Reference
85 tar czf pptp-linux-$(VERSION).tar.gz pptp-linux-$(VERSION)
86 $(RM) -r pptp-linux-$(VERSION)
88 pptp_ctrl.o: $(SRCBASE)/include/cyutils.h