1 # We have our own, simpler dependencies stuff in 'reconf'
2 AUTOMAKE_OPTIONS = no-dependencies foreign
6 export LIBDIR=$(libdir)/pptpd
8 ## Change this if you don't have gcc
9 ## -pedantic removed for now (OpenBSD header files).
10 ## -Werror removed for now (getopt stuff on OSF/1 throws a
11 ## warning with -Wmissing-prototypes).
12 ## -Wmissing-prototypes removed (eg, Linux 2.2.6 headers
14 CFLAGS = -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
15 #CFLAGS = -O2 -fno-builtin -Wall -ansi -DSBINDIR='"$(sbindir)"'
16 #CFLAGS = -O2 -fno-builtin -Wall -ansi -pedantic -Wmissing-prototypes -Werror -DSBINDIR='"$(sbindir)"'
18 man_MANS = pptpctrl.8 pptpd.8 pptpd.conf.5
21 html README* ChangeLog NEWS TODO $(man_MANS) \
22 samples/chap-secrets samples/options.pptpd samples/pptpd.conf \
23 Makefile.uClinux config.embed.h version reconf \
24 tools/pptp-portslave tools/vpnstats tools/vpnstats.pl tools/vpnuser \
25 pptpd.init pptpd.spec makepackage \
26 plugins/Makefile plugins/*.h plugins/*.c \
27 debian/README.debian debian/changelog debian/conffiles debian/config \
28 debian/control debian/copyright debian/dirs debian/docs \
29 debian/examples debian/pptpd-options debian/pptpd.conf \
30 debian/pptpd.init debian/pptpdconfig.pl debian/rules debian/templates \
31 debian/po/POTFILES.in debian/po/fr.po debian/po/pt_BR.po \
32 debian/po/templates.pot
35 sbin_PROGRAMS = pptpd pptpctrl bcrelay
37 # Header files are only used to determine what to put in a distribution, not
38 # for dependencies, so just attribute them all to pptpd.
41 pqueue.c pptpd.c configfile.c pptpmanager.c compat.c inststr.c getopt.c getopt1.c \
42 pqueue.h compat.h configfile.h ctrlpacket.h defaults.h inststr.h our_getopt.h \
43 our_syslog.h ppphdlc.h pptpctrl.h pptpdefs.h pptpgre.h pptpmanager.h
46 pqueue.c pptpctrl.c ctrlpacket.c inststr.c compat.c pptpgre.c ppphdlc.c
48 pptpd_LDADD = $(XTRALIBS_MGR)
50 pptpctrl_LDADD = $(XTRALIBS_CTRL)
52 bcrelay_SOURCES = bcrelay.c defaults.h our_syslog.h our_getopt.h
57 for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d all; done
60 for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) install; done
63 for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d clean; done
66 for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) uninstall; done
71 fakeroot dpkg-buildpackage -us -uc
74 fakeroot rpmbuild -ta pptpd-$(VERSION).tar.gz
78 ## DO NOT ADD BELOW THIS POINT, DEPS ARE AUTOMATICALLY ADDED
79 bcrelay.o: bcrelay.c config.h defaults.h our_syslog.h our_getopt.h
81 compat.o: compat.c config.h compat.h our_syslog.h inststr.h
83 configfile.o: configfile.c config.h defaults.h configfile.h our_syslog.h
85 ctrlpacket.o: ctrlpacket.c config.h our_syslog.h pptpdefs.h pptpctrl.h \
88 getopt.o: getopt.c config.h our_getopt.h
90 getopt1.o: getopt1.c config.h our_getopt.h
92 inststr.o: inststr.c config.h inststr.h compat.h
94 ppphdlc.o: ppphdlc.c config.h ppphdlc.h
96 pptpctrl.o: pptpctrl.c config.h our_syslog.h compat.h pptpctrl.h \
97 pptpgre.h pptpdefs.h ctrlpacket.h defaults.h
99 pptpd.o: pptpd.c config.h our_syslog.h our_getopt.h configfile.h \
100 defaults.h compat.h pptpmanager.h
102 pptpgre.o: pptpgre.c config.h our_syslog.h ppphdlc.h pptpgre.h pptpdefs.h \
103 pptpctrl.h defaults.h pqueue.h compat.h
105 pptpmanager.o: pptpmanager.c config.h our_syslog.h configfile.h \
106 defaults.h pptpctrl.h pptpdefs.h pptpmanager.h compat.h
108 pqueue.o: pqueue.c pqueue.h