X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=sunos4%2FMakefile.top;fp=sunos4%2FMakefile.top;h=b63276c67fac34b41589056b2c3bd9a501db23a9;hb=bb0891f628e55fbdb149671d0e6344bc84983ec7;hp=0000000000000000000000000000000000000000;hpb=f7ffcb09ae1831d3dbf6917e24e6af1b67ff74f8;p=ppp.git diff --git a/sunos4/Makefile.top b/sunos4/Makefile.top new file mode 100644 index 0000000..b63276c --- /dev/null +++ b/sunos4/Makefile.top @@ -0,0 +1,50 @@ +# +# ppp top level makefile +# + +BINDIR = /usr/local/etc +MANDIR = /usr/local/man +ETCDIR = /etc/ppp + +INSTALL= install -o root -g daemon + +all: + cd chat; $(MAKE) all + cd pppd; $(MAKE) all + cd pppstats; $(MAKE) all + cd sunos4; $(MAKE) 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 + +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 +$(ETCDIR)/pap-secrets: + $(INSTALL) -c -m 600 etc.ppp/pap-secrets $@ +$(ETCDIR)/chap-secrets: + $(INSTALL) -c -m 600 etc.ppp/chap-secrets $@ + +$(BINDIR): + $(INSTALL) -d -m 755 $@ +$(MANDIR)/man8: + $(INSTALL) -d -m 755 $@ +$(ETCDIR): + $(INSTALL) -d -m 755 $@ + +clean: + rm -f *~ + cd chat; $(MAKE) clean + cd pppd; $(MAKE) clean + cd pppstats; $(MAKE) clean + cd sunos4; $(MAKE) clean +