1
2PACKAGE = pptpd
3
4EXEC1 = pptpd
5OBJS1 = pptpd.o configfile.o pptpmanager.o compat.o getopt.o getopt1.o $(LIBRESOLV)
6
7EXEC2 = pptpctrl
8OBJS2 = pptpctrl.o ctrlpacket.o inststr.o compat.o pptpgre.o ppphdlc.o
9
10EXEC3 = bcrelay
11OBJS3 = bcrelay.o
12
13CFLAGS += -include config.embed.h -DPACKAGE='"$(PACKAGE)"' -DVERSION='"$(pptpd.VERSION).$(pptpd.PATCHLEVEL).$(pptpd.SUBLEVEL)"'
14FLTFLAGS += -s 8192
15
16ifdef BUILD_NETtel
17CFLAGS += -DCONFIG_NETtel
18endif
19
20
21all:		$(EXEC1) $(EXEC2) $(EXEC3)
22
23
24$(EXEC1):	$(OBJS1)
25		$(CC) $(LDFLAGS) -o $@ $(OBJS1) $(LDLIBS)
26
27$(EXEC2):	$(OBJS2)
28		$(CC) $(LDFLAGS) -o $@ $(OBJS2) $(LDLIBS)
29
30$(EXEC3):	$(OBJS3)
31		$(CC) $(LDFLAGS) -o $@ $(OBJS3) $(LDLIBS)
32
33clean:
34		-rm -f $(EXEC1) $(EXEC2) $(EXEC3) *.elf *.o
35
36## DO NOT ADD BELOW THIS POINT, DEPS ARE AUTOMATICALLY ADDED
37bcrelay.o: bcrelay.c config.embed.h defaults.h our_syslog.h our_getopt.h
38
39compat.o: compat.c config.embed.h compat.h our_syslog.h inststr.h
40
41configfile.o: configfile.c config.embed.h defaults.h configfile.h \
42  our_syslog.h
43
44ctrlpacket.o: ctrlpacket.c config.embed.h our_syslog.h pptpdefs.h \
45  pptpctrl.h ctrlpacket.h compat.h
46
47getopt.o: getopt.c config.embed.h our_getopt.h
48
49getopt1.o: getopt1.c config.embed.h our_getopt.h
50
51inststr.o: inststr.c config.embed.h inststr.h compat.h
52
53ppphdlc.o: ppphdlc.c config.embed.h ppphdlc.h
54
55pptpctrl.o: pptpctrl.c config.embed.h our_syslog.h compat.h pptpctrl.h \
56  pptpgre.h pptpdefs.h ctrlpacket.h defaults.h
57
58pptpd.o: pptpd.c config.embed.h our_syslog.h our_getopt.h configfile.h \
59  defaults.h compat.h pptpmanager.h
60
61pptpgre.o: pptpgre.c config.embed.h our_syslog.h ppphdlc.h pptpgre.h \
62  pptpdefs.h pptpctrl.h defaults.h pqueue.h compat.h
63
64pptpmanager.o: pptpmanager.c config.embed.h our_syslog.h configfile.h \
65  defaults.h pptpctrl.h pptpdefs.h pptpmanager.h compat.h
66
67pqueue.o: pqueue.c config.embed.h pqueue.h
68
69