1 # $Id: Makefile,v 1.40 2006/02/13 03:06:25 quozl Exp $
5 #################################################################
6 # CHANGE THIS LINE to point to the location of your pppd binary.
8 #################################################################
10 BINDIR
=$(DESTDIR
)/usr
/sbin
11 MANDIR
=$(DESTDIR
)/usr
/share
/man
/man8
12 PPPDIR
=$(DESTDIR
)/etc
/ppp
19 CFLAGS
= -Wall
$(OPTIMIZE
) $(DEBUG
) $(INCLUDE
) -I
$(SRCBASE
)/include $(EXTRACFLAGS
)
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
)
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
47 $(RM
) *.o config.h
$(PPTP_BIN
) vector_test
55 install -o root
-m
555 pptp
$(BINDIR
)
57 install -m
644 pptp
.8 $(MANDIR
)
59 install -m
644 options.pptp
$(PPPDIR
)
62 $(RM
) $(BINDIR
)/pptp
$(MANDIR
)/pptp
.8
65 $(RM
) pptp-
$(VERSION
)$(RELEASE
).
tar.gz
66 $(RM
) -r 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 \
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
79 fakeroot dpkg-buildpackage
-us
-uc
80 mv ..
/pptp_
$(VERSION
)-0_i386.deb .
82 WEB
=~
/public_html
/external
/mine
/pptp
/pptpconfig
84 cp pptp_
$(VERSION
)-0_i386.deb
$(WEB
)