Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / pptp-client / Makefile
blob358d77f86bc82568c87a4e62221db2db6bca5538
1 # $Id: Makefile,v 1.40 2006/02/13 03:06:25 quozl Exp $
2 VERSION=1.7.1
3 RELEASE=
5 #################################################################
6 # CHANGE THIS LINE to point to the location of your pppd binary.
7 PPPD = /usr/sbin/pppd
8 #################################################################
10 BINDIR=$(DESTDIR)/usr/sbin
11 MANDIR=$(DESTDIR)/usr/share/man/man8
12 PPPDIR=$(DESTDIR)/etc/ppp
14 #CC = gcc
15 RM = rm -f
16 OPTIMIZE= -O2
17 #DEBUG = -g
18 INCLUDE =
19 CFLAGS = -Wall $(OPTIMIZE) $(DEBUG) $(INCLUDE) -I$(SRCBASE)/include $(EXTRACFLAGS)
20 LIBS = -lutil
21 LDFLAGS =
23 PPTP_BIN = pptp
25 PPTP_OBJS = pptp.o pptp_gre.o ppp_fcs.o \
26 pptp_ctrl.o dirutil.o vector.o \
27 inststr.o util.o version.o \
28 pptp_quirks.o orckit_quirks.o pqueue.o pptp_callmgr.o
30 PPTP_DEPS = pptp_callmgr.h pptp_gre.h ppp_fcs.h util.h \
31 pptp_quirks.h orckit_quirks.h config.h pqueue.h
33 all: config.h $(PPTP_BIN)
35 $(PPTP_BIN): $(PPTP_OBJS) $(PPTP_DEPS)
36 $(CC) -o $(PPTP_BIN) $(PPTP_OBJS) $(LDFLAGS) $(LIBS)
38 config.h:
39 echo "/* text added by Makefile target config.h */" > config.h
40 echo "#define PPTP_LINUX_VERSION \"$(VERSION)$(RELEASE)\"" >> config.h
41 echo "#define PPPD_BINARY \"$(PPPD)\"" >> config.h
43 vector_test: vector_test.o vector.o
44 $(CC) -o vector_test vector_test.o vector.o
46 clobber clean:
47 $(RM) *.o config.h $(PPTP_BIN) vector_test
49 distclean: clobber
51 test: vector_test
53 install:
54 mkdir -p $(BINDIR)
55 install -o root -m 555 pptp $(BINDIR)
56 mkdir -p $(MANDIR)
57 install -m 644 pptp.8 $(MANDIR)
58 mkdir -p $(PPPDIR)
59 install -m 644 options.pptp $(PPPDIR)
61 uninstall:
62 $(RM) $(BINDIR)/pptp $(MANDIR)/pptp.8
64 dist: clobber
65 $(RM) pptp-$(VERSION)$(RELEASE).tar.gz
66 $(RM) -r pptp-$(VERSION)
67 mkdir pptp-$(VERSION)
68 cp --recursive ChangeLog Makefile *.c *.h options.pptp pptp.8 \
69 Documentation Reference AUTHORS COPYING INSTALL NEWS \
70 README DEVELOPERS TODO USING PROTOCOL-SECURITY \
71 pptp-$(VERSION)/
72 $(RM) -r pptp-$(VERSION)/CVS pptp-$(VERSION)/*/CVS
73 tar czf pptp-$(VERSION)$(RELEASE).tar.gz pptp-$(VERSION)
74 $(RM) -r pptp-$(VERSION)
75 md5sum pptp-$(VERSION)$(RELEASE).tar.gz
77 deb:
78 chmod +x debian/rules
79 fakeroot dpkg-buildpackage -us -uc
80 mv ../pptp_$(VERSION)-0_i386.deb .
82 WEB=~/public_html/external/mine/pptp/pptpconfig
83 release:
84 cp pptp_$(VERSION)-0_i386.deb $(WEB)
85 cd $(WEB);make