updates from Steve Perkins
[ppp.git] / NeXT / Makefile.top
1
2 # ppp top level makefile for NeXT systems
3 #
4 # $Id: Makefile.top,v 1.2 1997/04/30 05:39:28 paulus Exp $
5 #
6
7 BINDIR = /usr/local/ppp/bin
8 MANDIR = /usr/local/ppp/man
9 ETCDIR = /etc/ppp
10
11 #ARCHFLAGS = -arch i386 -arch m68k -arch hppa -arch sparc
12 #ARCHFLAGS = -arch i386 -arch m68k
13 ARCHFLAGS =
14
15 all:
16         cd chat; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
17         cd pppstats; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
18         cd pppd; $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" all
19         cd NeXT; $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" all
20
21 install: 
22         cd chat; \
23         $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
24         cd pppstats; \
25         $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
26         cd pppd; \
27         $(MAKE) -f Makefile.NeXT ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) MANDIR=$(MANDIR) install
28         cd NeXT; \
29         $(MAKE) ARCHFLAGS="$(ARCHFLAGS)" BINDIR=$(BINDIR) ETCDIR=$(ETCDIR) install
30
31 clean: 
32         rm -f *~
33         (cd chat; $(MAKE) -f Makefile.NeXT clean)
34         (cd pppstats; $(MAKE) -f Makefile.NeXT clean)
35         (cd pppd; $(MAKE) -f Makefile.NeXT clean)
36         (cd NeXT; $(MAKE) clean)
37
38
39
40 NEXTTOP = \
41         README.NeXT                             \
42         ${NULL}
43
44 NEXTPPPD = \
45         pppd/Makefile.NeXT                      \
46         pppd/sys-NeXT.c                         \
47         ${NULL}
48
49 NEXTNET = \
50         net/if_ppp.h                            \
51         ${NULL}
52
53 NEXTSTATS = \
54         pppstats/Makefile.NeXT                  \
55         pppstats/pppstats.c                     \
56         ${NULL}
57
58 NEXTCHAT = \
59         chat/Makefile.NeXT                      \
60         chat/chat.c.3.2                         \
61         ${NULL}
62
63 NEXTLKS = \
64         NeXT/ChangeLog.rtf                      \
65         NeXT/INSTALL                            \
66         NeXT/Load_Commands.sect                 \
67         NeXT/MailBug.app.tar.gz                 \
68         NeXT/Makefile                           \
69         NeXT/Makefile.top                       \
70         NeXT/NeXT_Version                       \
71         NeXT/TODO.NeXT                          \
72         NeXT/Unload_Commands.sect               \
73         NeXT/bsd-comp.c                         \
74         NeXT/if_ppp.c                           \
75         NeXT/if_pppvar.h                        \
76         NeXT/inlines.h                          \
77         NeXT/linedisc.h                         \
78         NeXT/nbq.c                              \
79         NeXT/nbq.h                              \
80         NeXT/netbuf.h                           \
81         NeXT/ppp_tty.c                          \
82         NeXT/spl.h                              \
83         NeXT/vjcompress.c                       \
84         ${NULL}
85
86 NEXTHPPA = \
87         NeXT/hppa/README.hppa                   \
88         NeXT/hppa/hppaSerialPatch.tar.gz        \
89         ${NULL}
90
91 NEXTMACH = \
92         NeXT/mach/features.h                    \
93         ${NULL}
94
95
96 NEXTBPF = \
97         NeXT/bpf/Load_Commands.sect             \
98         NeXT/bpf/Makefile                       \
99         NeXT/bpf/NeXT_Support.c                 \
100         NeXT/bpf/README.NeXT                    \
101         NeXT/bpf/Unload_Commands.sect           \
102         NeXT/bpf/bpf.4                          \
103         NeXT/bpf/bpf.c                          \
104         NeXT/bpf/bpf.h                          \
105         NeXT/bpf/bpf_compat.h                   \
106         NeXT/bpf/bpf_filter.c                   \
107         NeXT/bpf/bpfdesc.h                      \
108         NeXT/bpf/netbuf.h                       \
109         NeXT/bpf/promisc.c                      \
110         NeXT/bpf/spl.h                          \
111         ${NULL}
112
113 NEXTEXAMP = \
114         NeXT/Examples/Persistent_Connection     \
115         NeXT/Examples/README                    \
116         NeXT/Examples/flow-control-hints        \
117         NeXT/Examples/ip-down.example           \
118         NeXT/Examples/ip-up.example             \
119         NeXT/Examples/options                   \
120         NeXT/Examples/ppp_multiple_hosts.tar.gz \
121         NeXT/Examples/pppdown                   \
122         NeXT/Examples/pppkill.c                 \
123         NeXT/Examples/pppup.annex               \
124         NeXT/Examples/pppup.direct              \
125         NeXT/Examples/pppup.portmaster          \
126         NeXT/Examples/pppup.remote              \
127         NeXT/Examples/pppup.zyxel               \
128         NeXT/Examples/rc.ppp                    \
129         NeXT/Examples/redial.sh                 \
130         ${NULL}
131
132 NEXTPORT = \
133            ${NEXTTOP}                   \
134            ${NEXTPPPD}                  \
135            ${NEXTNET}                   \
136            ${NEXTSTATS}                 \
137            ${NEXTCHAT}                  \
138            ${NEXTLKS}                   \
139            ${NEXTHPPA}                  \
140            ${NEXTMACH}                  \
141            ${NEXTBPF}                   \
142            ${NEXTEXAMP}                 \
143            ${NULL}
144
145
146
147 #
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. 
155 #
156
157 portdist: 
158         echo NeXT-ppp2.3-`sed -e '/version_string/!d' \
159              -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q ./NeXT/NeXT_Version` > .fname
160         rm -rf `cat .fname`
161         mkdir `cat .fname`
162         mkdir `cat .fname`/pppd
163         mkdir `cat .fname`/net
164         mkdir `cat .fname`/chat
165         mkdir `cat .fname`/NeXT
166         mkdir `cat .fname`/NeXT/hppa
167         mkdir `cat .fname`/NeXT/mach
168         mkdir `cat .fname`/NeXT/bpf
169         mkdir `cat .fname`/NeXT/Examples
170         mkdir `cat .fname`/pppstats
171         -ln $(NEXTTOP) `cat .fname`
172         -ln $(NEXTPPPD) `cat .fname`/pppd
173         -ln $(NEXTNET) `cat .fname`/net
174         -ln $(NEXTCHAT) `cat .fname`/chat
175         -ln $(NEXTLKS) `cat .fname`/NeXT
176         -ln $(NEXTHPPA) `cat .fname`/NeXT/hppa
177         -ln $(NEXTMACH) `cat .fname`/NeXT/mach
178         -ln $(NEXTBPF) `cat .fname`/NeXT/bpf
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
186
187 .PHONY: dialppp portdist