This enables plugins called via hooks/notifiers triggered
[mpls-ppp.git] / NeXT / Makefile.top
blob4ca9d5827cead9772cfaecfaa1456e2f34b96f8a
1 # ppp top level makefile for NeXT systems
3 # $Id: Makefile.top,v 1.10 1999/12/23 01:48:44 paulus Exp $
6 # Change the values of ARCHFLAGS to include the 
7 # appropriate architectures.  A blank entry compiles
8 # for the local architecture
9 #ARCHFLAGS = -arch i386 -arch m68k -arch hppa -arch sparc
10 #ARCHFLAGS = -arch i386 -arch m68k
11 ARCHFLAGS =
14 # It is not suggested that you change any values from here
15 # on.
17 BINDIR = /usr/local/ppp/bin
18 MANDIR = /usr/local/ppp/man
19 ETCDIR = /etc/ppp
22 all:
23         cd NeXT/libposix; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" all
24         cd chat; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
25         cd pppstats; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
26         cd pppd; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
27         cd NeXT; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" all
30 install: 
31         cd chat; \
32         $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
33         cd pppstats; \
34         $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
35         cd pppd; \
36         $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
37         cd NeXT; \
38         $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) ETCDIR=$(ETCDIR) install
40 clean: 
41         rm -f *~
42         (cd libposix; $(MAKE) -f Makefile.NeXT clean)
43         (cd chat; $(MAKE) -f Makefile.NeXT clean)
44         (cd pppstats; $(MAKE) -f Makefile.NeXT clean)
45         (cd pppd; $(MAKE) -f Makefile.NeXT clean)
46         (cd NeXT; $(MAKE) clean)
50 NEXTTOP = \
51         README.NeXT                             \
52         ${NULL}
54 NEXTPOSIX = \
55         libposix/Makefile.NeXT                  \
56         libposix/libposix.c                     \
57         ${NULL}
59 NEXTPPPD = \
60         pppd/Makefile.NeXT                      \
61         pppd/sys-NeXT.c                         \
62         ${NULL}
64 NEXTNET = \
65         net/if_ppp.h                            \
66         net/ppp_defs.h                          \
67         ${NULL}
69 NEXTSTATS = \
70         pppstats/Makefile.NeXT                  \
71         ${NULL}
73 #       pppstats/pppstats.c                     
76 NEXTCHAT = \
77         chat/Makefile.NeXT                      \
78         chat/chat.c.3.2                         \
79         ${NULL}
81 NEXTLKS = \
82         NeXT/ChangeLog.rtf                      \
83         NeXT/INSTALL                            \
84         NeXT/Load_Commands.sect                 \
85         NeXT/Makefile                           \
86         NeXT/Makefile.top                       \
87         NeXT/NeXT_Version.h                     \
88         NeXT/TODO.NeXT                          \
89         NeXT/Unload_Commands.sect               \
90         NeXT/bsd-comp.c                         \
91         NeXT/if_ppp.c                           \
92         NeXT/if_pppvar.h                        \
93         NeXT/inlines.h                          \
94         NeXT/linedisc.h                         \
95         NeXT/nbq.h                              \
96         NeXT/netbuf.h                           \
97         NeXT/ppp_tty.c                          \
98         NeXT/spl.h                              \
99         NeXT/vjcompress.c                       \
100         ${NULL}
102 NEXTHPPA = \
103         NeXT/hppa/README.hppa                   \
104         NeXT/hppa/hppaSerialPatch.tar.gz        \
105         ${NULL}
107 NEXTMACH = \
108         NeXT/mach/features.h                    \
109         ${NULL}
112 NEXTEXAMP = \
113         NeXT/Examples/NXHosting_with_PPP        \
114         NeXT/Examples/Persistent_Connection     \
115         NeXT/Examples/README                    \
116         NeXT/Examples/chap-secrets.example      \
117         NeXT/Examples/flow-control-hints        \
118         NeXT/Examples/ip-down.example           \
119         NeXT/Examples/ip-up.example             \
120         NeXT/Examples/options.example           \
121         NeXT/Examples/pap-secrets.example       \
122         NeXT/Examples/ppp_multiple_hosts.tar.gz \
123         NeXT/Examples/pppdown                   \
124         NeXT/Examples/pppkill.c                 \
125         NeXT/Examples/pppup.annex               \
126         NeXT/Examples/pppup.direct              \
127         NeXT/Examples/pppup.portmaster          \
128         NeXT/Examples/pppup.remote              \
129         NeXT/Examples/pppup.zyxel               \
130         NeXT/Examples/redial.sh                 \
131         ${NULL}
133 NEXTPORT = \
134            ${NEXTTOP}                   \
135            ${NEXTPOSIX}                 \
136            ${NEXTPPPD}                  \
137            ${NEXTNET}                   \
138            ${NEXTSTATS}                 \
139            ${NEXTCHAT}                  \
140            ${NEXTLKS}                   \
141            ${NEXTHPPA}                  \
142            ${NEXTMACH}                  \
143            ${NEXTEXAMP}                 \
144            ${NULL}
148 #  The idea is to make for easy distribution of new port material.
149 #  Just make sure all relevant files appear in the lists above,
150 #  then:
151 #    1) Update the file ./NeXT_Version with a new number
152 #    2) go to the top level directory and type 'make portdist'.
153 #       You should get a nice tared/compressed file that is ready for
154 #       the archive. 
157 portdist: 
158         echo NeXT-ppp2.3.11-`sed -e '/version_string/!d' \
159              -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q ./NeXT/NeXT_Version.h` > .fname
160         rm -rf `cat .fname`
161         mkdir `cat .fname`
162         mkdir `cat .fname`/libposix
163         mkdir `cat .fname`/pppd
164         mkdir `cat .fname`/net
165         mkdir `cat .fname`/chat
166         mkdir `cat .fname`/NeXT
167         mkdir `cat .fname`/NeXT/hppa
168         mkdir `cat .fname`/NeXT/mach
169         mkdir `cat .fname`/NeXT/Examples
170         mkdir `cat .fname`/pppstats
171         -ln $(NEXTTOP) `cat .fname`
172         -ln $(NEXTPOSIX) `cat .fname`/libposix
173         -ln $(NEXTPPPD) `cat .fname`/pppd
174         -ln $(NEXTNET) `cat .fname`/net
175         -ln $(NEXTCHAT) `cat .fname`/chat
176         -ln $(NEXTLKS) `cat .fname`/NeXT
177         -ln $(NEXTHPPA) `cat .fname`/NeXT/hppa
178         -ln $(NEXTMACH) `cat .fname`/NeXT/mach
179         -ln $(NEXTEXAMP) `cat .fname`/NeXT/Examples
180         -ln $(NEXTSTATS) `cat .fname`/pppstats
181         for file in $(NEXTPORT); do \
182                 test -r `cat .fname`/$$file || cp -p $$file `cat .fname`; \
183         done
184         (cd `cat .fname`;tar chf - '.' | gzip --best > ../`cat ../.fname`.tar.gz)
185         rm -rf `cat .fname` .fname
187 .PHONY: dialppp portdist