1 # PPP top-level Makefile for Linux.
3 DESTDIR = $(INSTROOT)@DESTDIR@
4 BINDIR = $(DESTDIR)/sbin
5 INCDIR = $(DESTDIR)/include
6 MANDIR = $(DESTDIR)/share/man
7 ETCDIR = $(INSTROOT)@SYSCONF@/ppp
13 cd chat; $(MAKE) $(MFLAGS) all
14 cd pppd/plugins; $(MAKE) $(MFLAGS) all
15 cd pppd; $(MAKE) $(MFLAGS) all
16 cd pppstats; $(MAKE) $(MFLAGS) all
17 cd pppdump; $(MAKE) $(MFLAGS) all
19 install: $(BINDIR) $(MANDIR)/man8 install-progs install-devel
22 cd chat; $(MAKE) $(MFLAGS) install
23 cd pppd/plugins; $(MAKE) $(MFLAGS) install
24 cd pppd; $(MAKE) $(MFLAGS) install
25 cd pppstats; $(MAKE) $(MFLAGS) install
26 cd pppdump; $(MAKE) $(MFLAGS) install
28 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
29 $(ETCDIR)/chap-secrets $(ETCDIR)/eaptls-server $(ETCDIR)/eaptls-client
32 cd pppd; $(MAKE) $(MFLAGS) install-devel
35 $(INSTALL) -c -m 644 etc.ppp/options $@
36 $(ETCDIR)/pap-secrets:
37 $(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
38 $(ETCDIR)/chap-secrets:
39 $(INSTALL) -c -m 600 etc.ppp/chap-secrets $@
40 $(ETCDIR)/eaptls-server:
41 $(INSTALL) -c -m 600 etc.ppp/eaptls-server $@
42 $(ETCDIR)/eaptls-client:
43 $(INSTALL) -c -m 600 etc.ppp/eaptls-client $@
46 $(INSTALL) -d -m 755 $@
48 $(INSTALL) -d -m 755 $@
50 $(INSTALL) -d -m 755 $@
53 rm -f `find . -name '*.[oas]' -print`
54 rm -f `find . -name 'core' -print`
55 rm -f `find . -name '*~' -print`
56 cd chat; $(MAKE) clean
57 cd pppd/plugins; $(MAKE) clean
58 cd pppd; $(MAKE) clean
59 cd pppstats; $(MAKE) clean
60 cd pppdump; $(MAKE) clean
63 rm -f Makefile `find . -name Makefile -print`
66 # cd linux; ./kinstall.sh
68 # no tests yet, one day...