1# We have our own, simpler dependencies stuff in 'reconf'
2AUTOMAKE_OPTIONS = no-dependencies foreign
3
4@SET_MAKE@
5
6export LIBDIR=$(libdir)/pptpd
7INCLUDES = -I.
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
13##  aren't up to it).
14CFLAGS = -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)"'
17
18man_MANS = pptpctrl.8 pptpd.8 pptpd.conf.5
19
20EXTRA_DIST = \
21html README* ChangeLog NEWS TODO $(man_MANS) \
22samples/chap-secrets samples/options.pptpd samples/pptpd.conf \
23Makefile.uClinux config.embed.h version reconf \
24tools/pptp-portslave tools/vpnstats tools/vpnstats.pl tools/vpnuser \
25pptpd.init pptpd.spec makepackage \
26plugins/Makefile plugins/*.h plugins/*.c \
27debian/README.debian debian/changelog debian/conffiles debian/config \
28debian/control debian/copyright debian/dirs debian/docs \
29debian/examples debian/pptpd-options debian/pptpd.conf \
30debian/pptpd.init debian/pptpdconfig.pl debian/rules debian/templates \
31debian/po/POTFILES.in debian/po/fr.po debian/po/pt_BR.po \
32debian/po/templates.pot
33
34EXTRA_PROGRAMS = 
35sbin_PROGRAMS = pptpd pptpctrl bcrelay
36
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.
39
40pptpd_SOURCES = \
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
44
45pptpctrl_SOURCES = \
46	pqueue.c pptpctrl.c ctrlpacket.c inststr.c compat.c pptpgre.c ppphdlc.c
47
48pptpd_LDADD = $(XTRALIBS_MGR)
49
50pptpctrl_LDADD = $(XTRALIBS_CTRL)
51
52bcrelay_SOURCES = bcrelay.c defaults.h our_syslog.h our_getopt.h
53
54subdirs = plugins
55
56all-local:
57	for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d all; done
58
59install-exec-local:
60	for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) install; done
61
62clean-local:
63	for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d clean; done
64
65uninstall-local:
66	for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) uninstall; done
67
68package: deb rpm
69
70deb:
71	fakeroot dpkg-buildpackage -us -uc
72
73rpm:
74	fakeroot rpmbuild -ta pptpd-$(VERSION).tar.gz
75
76##CLEANFILES = 
77
78## DO NOT ADD BELOW THIS POINT, DEPS ARE AUTOMATICALLY ADDED
79bcrelay.o: bcrelay.c config.h defaults.h our_syslog.h our_getopt.h
80
81compat.o: compat.c config.h compat.h our_syslog.h inststr.h
82
83configfile.o: configfile.c config.h defaults.h configfile.h our_syslog.h
84
85ctrlpacket.o: ctrlpacket.c config.h our_syslog.h pptpdefs.h pptpctrl.h \
86  ctrlpacket.h compat.h
87
88getopt.o: getopt.c config.h our_getopt.h
89
90getopt1.o: getopt1.c config.h our_getopt.h
91
92inststr.o: inststr.c config.h inststr.h compat.h
93
94ppphdlc.o: ppphdlc.c config.h ppphdlc.h
95
96pptpctrl.o: pptpctrl.c config.h our_syslog.h compat.h pptpctrl.h \
97  pptpgre.h pptpdefs.h ctrlpacket.h defaults.h
98
99pptpd.o: pptpd.c config.h our_syslog.h our_getopt.h configfile.h \
100  defaults.h compat.h pptpmanager.h
101
102pptpgre.o: pptpgre.c config.h our_syslog.h ppphdlc.h pptpgre.h pptpdefs.h \
103  pptpctrl.h defaults.h pqueue.h compat.h
104
105pptpmanager.o: pptpmanager.c config.h our_syslog.h configfile.h \
106  defaults.h pptpctrl.h pptpdefs.h pptpmanager.h compat.h
107
108pqueue.o: pqueue.c pqueue.h
109
110