1 # PPP top-level Makefile for Linux.
9 INSTALL= install -o 0 -g daemon
12 cd chat; $(MAKE) $(MFLAGS) all
13 cd pppd; $(MAKE) $(MFLAGS) all
14 cd pppstats; $(MAKE) $(MFLAGS) all
16 install: $(BINDIR) $(MANDIR)/man8 install-progs install-etcppp
19 cd chat; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
20 cd pppd; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
21 cd pppstats; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) $(MFLAGS) install
23 install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
24 $(ETCDIR)/chap-secrets
27 $(INSTALL) -c -m 644 etc.ppp/options $@
28 $(ETCDIR)/pap-secrets:
29 $(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
30 $(ETCDIR)/chap-secrets:
31 $(INSTALL) -c -m 600 etc.ppp/chap-secrets $@
34 $(INSTALL) -d -m 755 $@
36 $(INSTALL) -d -m 755 $@
38 $(INSTALL) -d -m 755 $@
41 rm -f core `find . -name '*.[oas]' -print`
42 rm -f core `find . -name 'core' -print`
43 rm -f core `find . -name '*~' -print`
44 cd chat; $(MAKE) clean
45 cd pppd; $(MAKE) clean
46 cd pppstats; $(MAKE) clean
49 rm -f Makefile `find . -name Makefile -print`
52 cd linux; ./kinstall.sh