blob: 09cb231fcdb4d106b8a2496340476ab1f9373b91 [file] [log] [blame]
# PPP top-level Makefile for Linux.
DESTDIR = $(INSTROOT)@DESTDIR@
BINDIR = $(DESTDIR)/sbin
INCDIR = $(DESTDIR)/include
MANDIR = $(DESTDIR)/share/man
ETCDIR = $(INSTROOT)@SYSCONF@/ppp
FLTFLAGS += -s 8192
ifeq ($(CONFIG_USER_FLATFSD_FLATFSD),y)
CFLAGS += -DPATH_CONFIG='"/etc/config"'
CFLAGS += -DPATH_AUTH='"/bin"'
CFLAGS += -DPATH_LOG='"/var/log"'
CFLAGS += -DPATH_RESOLV='"/var/run"'
endif
# uid 0 = root
INSTALL= install
all:
cd chat; $(MAKE) $(MFLAGS) all
cd pppd/plugins; $(MAKE) $(MFLAGS) all
cd pppd; $(MAKE) $(MFLAGS) all
# cd pppstats; $(MAKE) $(MFLAGS) all
# cd pppdump; $(MAKE) $(MFLAGS) all
install: $(BINDIR) $(MANDIR)/man8 install-progs install-devel
install-progs:
cd chat; $(MAKE) $(MFLAGS) install
cd pppd/plugins; $(MAKE) $(MFLAGS) install
cd pppd; $(MAKE) $(MFLAGS) install
cd pppstats; $(MAKE) $(MFLAGS) install
cd pppdump; $(MAKE) $(MFLAGS) install
install-etcppp: $(ETCDIR) $(ETCDIR)/options $(ETCDIR)/pap-secrets \
$(ETCDIR)/chap-secrets
install-devel:
cd pppd; $(MAKE) $(MFLAGS) install-devel
$(ETCDIR)/options:
$(INSTALL) -c -m 644 etc.ppp/options $@
$(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 `find . -name '*.[oas]' -print`
rm -f `find . -name 'core' -print`
rm -f `find . -name '*~' -print`
cd chat; $(MAKE) clean
cd pppd/plugins; $(MAKE) clean
cd pppd; $(MAKE) clean
cd pppstats; $(MAKE) clean
cd pppdump; $(MAKE) clean
dist-clean: clean
rm -f Makefile `find . -name Makefile -print`
#kernel:
# cd linux; ./kinstall.sh
# no tests yet, one day...
installcheck:
true