X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=sunos4%2FMakefile.top;h=a0d31a95737fd8d3cfbca3a14c0c4fa322e9b220;hb=8a7284f9bb1d3cb7b6380706454e9fdf5966008c;hp=b63276c67fac34b41589056b2c3bd9a501db23a9;hpb=bb0891f628e55fbdb149671d0e6344bc84983ec7;p=ppp.git diff --git a/sunos4/Makefile.top b/sunos4/Makefile.top index b63276c..a0d31a9 100644 --- a/sunos4/Makefile.top +++ b/sunos4/Makefile.top @@ -8,27 +8,27 @@ ETCDIR = /etc/ppp 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: