ppp/NeXT/Makefile.top

188 lines
4.5 KiB
Makefile
Raw Normal View History

1995-12-18 11:30:47 +08:00
# ppp top level makefile for NeXT systems
#
1999-12-23 09:48:45 +08:00
# $Id: Makefile.top,v 1.10 1999/12/23 01:48:44 paulus Exp $
1995-12-18 11:30:47 +08:00
#
1998-03-26 10:54:53 +08:00
# Change the values of ARCHFLAGS to include the
# appropriate architectures. A blank entry compiles
# for the local architecture
#ARCHFLAGS = -arch i386 -arch m68k -arch hppa -arch sparc
#ARCHFLAGS = -arch i386 -arch m68k
ARCHFLAGS =
#
# It is not suggested that you change any values from here
# on.
#
1995-12-18 11:30:47 +08:00
BINDIR = /usr/local/ppp/bin
MANDIR = /usr/local/ppp/man
ETCDIR = /etc/ppp
1997-04-30 13:39:44 +08:00
1995-12-18 11:30:47 +08:00
all:
1998-03-26 10:54:53 +08:00
cd NeXT/libposix; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" all
1995-12-18 11:30:47 +08:00
cd chat; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
cd pppstats; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
cd pppd; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
cd NeXT; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" all
1998-03-26 10:54:53 +08:00
1995-12-18 11:30:47 +08:00
install:
cd chat; \
$(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
cd pppstats; \
$(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
cd pppd; \
$(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
cd NeXT; \
$(MAKE) ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) ETCDIR=$(ETCDIR) install
clean:
rm -f *~
1998-03-26 10:54:53 +08:00
(cd libposix; $(MAKE) -f Makefile.NeXT clean)
1995-12-18 11:30:47 +08:00
(cd chat; $(MAKE) -f Makefile.NeXT clean)
(cd pppstats; $(MAKE) -f Makefile.NeXT clean)
(cd pppd; $(MAKE) -f Makefile.NeXT clean)
(cd NeXT; $(MAKE) clean)
NEXTTOP = \
1997-04-30 13:39:44 +08:00
README.NeXT \
1995-12-18 11:30:47 +08:00
${NULL}
1998-03-26 10:54:53 +08:00
NEXTPOSIX = \
libposix/Makefile.NeXT \
libposix/libposix.c \
${NULL}
1995-12-18 11:30:47 +08:00
NEXTPPPD = \
pppd/Makefile.NeXT \
pppd/sys-NeXT.c \
${NULL}
NEXTNET = \
1997-04-30 13:39:44 +08:00
net/if_ppp.h \
1998-03-26 10:54:53 +08:00
net/ppp_defs.h \
1995-12-18 11:30:47 +08:00
${NULL}
NEXTSTATS = \
pppstats/Makefile.NeXT \
${NULL}
1998-03-26 10:54:53 +08:00
# pppstats/pppstats.c
1995-12-18 11:30:47 +08:00
NEXTCHAT = \
chat/Makefile.NeXT \
chat/chat.c.3.2 \
${NULL}
NEXTLKS = \
1997-04-30 13:39:44 +08:00
NeXT/ChangeLog.rtf \
1995-12-18 11:30:47 +08:00
NeXT/INSTALL \
NeXT/Load_Commands.sect \
NeXT/Makefile \
NeXT/Makefile.top \
1998-03-26 10:54:53 +08:00
NeXT/NeXT_Version.h \
1995-12-18 11:30:47 +08:00
NeXT/TODO.NeXT \
NeXT/Unload_Commands.sect \
1997-04-30 13:39:44 +08:00
NeXT/bsd-comp.c \
1995-12-18 11:30:47 +08:00
NeXT/if_ppp.c \
NeXT/if_pppvar.h \
NeXT/inlines.h \
NeXT/linedisc.h \
NeXT/nbq.h \
NeXT/netbuf.h \
NeXT/ppp_tty.c \
NeXT/spl.h \
NeXT/vjcompress.c \
${NULL}
NEXTHPPA = \
NeXT/hppa/README.hppa \
NeXT/hppa/hppaSerialPatch.tar.gz \
1997-04-30 13:39:44 +08:00
${NULL}
1995-12-18 11:30:47 +08:00
NEXTMACH = \
NeXT/mach/features.h \
1997-04-30 13:39:44 +08:00
${NULL}
1995-12-18 11:30:47 +08:00
NEXTEXAMP = \
1998-03-26 10:54:53 +08:00
NeXT/Examples/NXHosting_with_PPP \
1997-04-30 13:39:44 +08:00
NeXT/Examples/Persistent_Connection \
NeXT/Examples/README \
1998-03-26 10:54:53 +08:00
NeXT/Examples/chap-secrets.example \
1997-04-30 13:39:44 +08:00
NeXT/Examples/flow-control-hints \
NeXT/Examples/ip-down.example \
NeXT/Examples/ip-up.example \
1998-03-26 10:54:53 +08:00
NeXT/Examples/options.example \
NeXT/Examples/pap-secrets.example \
1997-04-30 13:39:44 +08:00
NeXT/Examples/ppp_multiple_hosts.tar.gz \
NeXT/Examples/pppdown \
NeXT/Examples/pppkill.c \
NeXT/Examples/pppup.annex \
NeXT/Examples/pppup.direct \
NeXT/Examples/pppup.portmaster \
NeXT/Examples/pppup.remote \
NeXT/Examples/pppup.zyxel \
NeXT/Examples/redial.sh \
1995-12-18 11:30:47 +08:00
${NULL}
NEXTPORT = \
${NEXTTOP} \
1998-03-26 10:54:53 +08:00
${NEXTPOSIX} \
1995-12-18 11:30:47 +08:00
${NEXTPPPD} \
1997-04-30 13:39:44 +08:00
${NEXTNET} \
1995-12-18 11:30:47 +08:00
${NEXTSTATS} \
${NEXTCHAT} \
${NEXTLKS} \
${NEXTHPPA} \
${NEXTMACH} \
${NEXTEXAMP} \
${NULL}
#
# The idea is to make for easy distribution of new port material.
# Just make sure all relevant files appear in the lists above,
# then:
# 1) Update the file ./NeXT_Version with a new number
# 2) go to the top level directory and type 'make portdist'.
# You should get a nice tared/compressed file that is ready for
# the archive.
#
portdist:
1999-12-23 09:48:45 +08:00
echo NeXT-ppp2.3.11-`sed -e '/version_string/!d' \
1998-03-26 10:54:53 +08:00
-e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q ./NeXT/NeXT_Version.h` > .fname
1995-12-18 11:30:47 +08:00
rm -rf `cat .fname`
mkdir `cat .fname`
1998-03-26 10:54:53 +08:00
mkdir `cat .fname`/libposix
1995-12-18 11:30:47 +08:00
mkdir `cat .fname`/pppd
1997-04-30 13:39:44 +08:00
mkdir `cat .fname`/net
1995-12-18 11:30:47 +08:00
mkdir `cat .fname`/chat
mkdir `cat .fname`/NeXT
mkdir `cat .fname`/NeXT/hppa
mkdir `cat .fname`/NeXT/mach
1997-04-30 13:39:44 +08:00
mkdir `cat .fname`/NeXT/Examples
1995-12-18 11:30:47 +08:00
mkdir `cat .fname`/pppstats
-ln $(NEXTTOP) `cat .fname`
1998-03-26 10:54:53 +08:00
-ln $(NEXTPOSIX) `cat .fname`/libposix
1995-12-18 11:30:47 +08:00
-ln $(NEXTPPPD) `cat .fname`/pppd
1997-04-30 13:39:44 +08:00
-ln $(NEXTNET) `cat .fname`/net
1995-12-18 11:30:47 +08:00
-ln $(NEXTCHAT) `cat .fname`/chat
-ln $(NEXTLKS) `cat .fname`/NeXT
-ln $(NEXTHPPA) `cat .fname`/NeXT/hppa
-ln $(NEXTMACH) `cat .fname`/NeXT/mach
1997-04-30 13:39:44 +08:00
-ln $(NEXTEXAMP) `cat .fname`/NeXT/Examples
1995-12-18 11:30:47 +08:00
-ln $(NEXTSTATS) `cat .fname`/pppstats
for file in $(NEXTPORT); do \
test -r `cat .fname`/$$file || cp -p $$file `cat .fname`; \
done
(cd `cat .fname`;tar chf - '.' | gzip --best > ../`cat ../.fname`.tar.gz)
rm -rf `cat .fname` .fname
.PHONY: dialppp portdist