File: Makefile.am

package info (click to toggle)
pptpd 1.4.0-12
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, sid, trixie
  • size: 1,456 kB
  • sloc: ansic: 4,938; sh: 793; makefile: 102; perl: 87
file content (109 lines) | stat: -rw-r--r-- 3,661 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
# We have our own, simpler dependencies stuff in 'reconf'
AUTOMAKE_OPTIONS = no-dependencies foreign

@SET_MAKE@

export LIBDIR=$(libdir)/pptpd
INCLUDES = -I.
## Change this if you don't have gcc
## -pedantic removed for now (OpenBSD header files).
## -Werror removed for now (getopt stuff on OSF/1 throws a
##  warning with -Wmissing-prototypes).
## -Wmissing-prototypes removed (eg, Linux 2.2.6 headers
##  aren't up to it).
CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -O2 -fno-builtin -Wall -DSBINDIR='"$(sbindir)"'
#CFLAGS = -O2 -fno-builtin -Wall -ansi -DSBINDIR='"$(sbindir)"'
#CFLAGS = -O2 -fno-builtin -Wall -ansi -pedantic -Wmissing-prototypes -Werror -DSBINDIR='"$(sbindir)"'

man_MANS = pptpctrl.8 pptpd.8 pptpd.conf.5 bcrelay.8

EXTRA_DIST = \
html README* ChangeLog NEWS TODO $(man_MANS) \
samples/chap-secrets samples/options.pptpd samples/pptpd.conf \
Makefile.uClinux config.embed.h version reconf \
tools/pptp-portslave tools/vpnstats tools/vpnstats.pl tools/vpnuser \
pptpd.init pptpd.spec makepackage \
plugins/Makefile plugins/*.h plugins/*.c \
debian/README.debian debian/changelog debian/conffiles debian/config \
debian/control debian/copyright debian/dirs debian/docs \
debian/examples debian/pptpd-options debian/pptpd.conf \
debian/pptpd.init debian/pptpdconfig.pl debian/rules debian/templates \
debian/po/POTFILES.in debian/po/fr.po debian/po/pt_BR.po \
debian/po/templates.pot

EXTRA_PROGRAMS = 
sbin_PROGRAMS = pptpd pptpctrl bcrelay

# Header files are only used to determine what to put in a distribution, not
# for dependencies, so just attribute them all to pptpd.

pptpd_SOURCES = \
	 pqueue.c pptpd.c configfile.c pptpmanager.c compat.c inststr.c getopt.c getopt1.c \
	pqueue.h compat.h configfile.h ctrlpacket.h defaults.h inststr.h our_getopt.h \
	our_syslog.h ppphdlc.h pptpctrl.h pptpdefs.h pptpgre.h pptpmanager.h

pptpctrl_SOURCES = \
	pqueue.c pptpctrl.c ctrlpacket.c inststr.c compat.c pptpgre.c ppphdlc.c

pptpd_LDADD = $(XTRALIBS_MGR)

pptpctrl_LDADD = $(XTRALIBS_CTRL)

bcrelay_SOURCES = bcrelay.c defaults.h our_syslog.h our_getopt.h

subdirs = plugins

all-local:
	for d in $(subdirs); do $(MAKE) $(MFLAGS) 'CC=$(CC)' -C $$d all; done

install-exec-local:
	for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) install; done

clean-local:
	for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d clean; done

uninstall-local:
	for d in $(subdirs); do $(MAKE) $(MFLAGS) -C $$d prefix=$(prefix) DESTDIR=$(DESTDIR) uninstall; done

package: deb rpm

deb:
	fakeroot dpkg-buildpackage -us -uc

rpm:
	fakeroot rpmbuild -ta pptpd-$(VERSION).tar.gz

##CLEANFILES = 

## DO NOT ADD BELOW THIS POINT, DEPS ARE AUTOMATICALLY ADDED
bcrelay.o: bcrelay.c config.h defaults.h our_syslog.h our_getopt.h

compat.o: compat.c config.h compat.h our_syslog.h inststr.h

configfile.o: configfile.c config.h defaults.h configfile.h our_syslog.h

ctrlpacket.o: ctrlpacket.c config.h our_syslog.h pptpdefs.h pptpctrl.h \
 ctrlpacket.h compat.h

getopt.o: getopt.c config.h our_getopt.h

getopt1.o: getopt1.c config.h our_getopt.h

inststr.o: inststr.c config.h inststr.h compat.h

ppphdlc.o: ppphdlc.c config.h ppphdlc.h

pptpctrl.o: pptpctrl.c config.h our_syslog.h compat.h pptpctrl.h \
 pptpgre.h pptpdefs.h ctrlpacket.h defaults.h

pptpd.o: pptpd.c config.h our_syslog.h our_getopt.h configfile.h \
 defaults.h compat.h pptpmanager.h

pptpgre.o: pptpgre.c config.h our_syslog.h ppphdlc.h pptpgre.h pptpdefs.h \
 pptpctrl.h defaults.h pqueue.h compat.h

pptpmanager.o: pptpmanager.c config.h our_syslog.h configfile.h \
 defaults.h pptpctrl.h pptpdefs.h pptpmanager.h compat.h

pqueue.o: pqueue.c pqueue.h