INSTALL= install -o root -g daemon
+MOPTS = $(MFLAGS) CC=$(CC) BINDIR=$(BINDIR) MANDIR=$(MANDIR)
+
all:
- cd chat; $(MAKE) all
- cd pppd; $(MAKE) all
- cd pppstats; $(MAKE) all
- cd sunos4; $(MAKE) all
+ cd chat; $(MAKE) $(MOPTS) all
+ cd pppd; $(MAKE) $(MOPTS) all
+ cd pppstats; $(MAKE) $(MOPTS) all
+ cd sunos4; $(MAKE) $(MOPTS) all
install: $(BINDIR) $(MANDIR)/man8 install-progs install-etcppp
install-progs:
- cd chat; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
- cd pppd; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
- cd pppstats; $(MAKE) BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
- cd sunos4; $(MAKE) BINDIR=$(BINDIR) install
+ cd chat; $(MAKE) $(MOPTS) install
+ cd pppd; $(MAKE) $(MOPTS) install
+ cd pppstats; $(MAKE) $(MOPTS) install
+ cd sunos4; $(MAKE) $(MOPTS) install
install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
$(ETCDIR)/chap-secrets
$(ETCDIR)/options:
- if netstat -rn | grep default >/dev/null; then \
- $(INSTALL) -c -m 644 etc.ppp/options $@; \
- else $(INSTALL) -c -m 644 etc.ppp/options.leaf $@; fi
+ $(INSTALL) -c -m 644 etc.ppp/options $@
$(ETCDIR)/pap-secrets:
$(INSTALL) -c -m 600 etc.ppp/pap-secrets $@
$(ETCDIR)/chap-secrets: