c281bc3a2e45d239754dee0978ced1840b9eb93e
[ppp.git] / NeXT / Makefile.top
1
2 # ppp top level makefile for NeXT systems
3 #
4 # $Id: Makefile.top,v 1.1 1995/12/18 03:29:52 paulus Exp $
5 #
6
7 BINDIR = /usr/local/ppp/bin
8 MANDIR = /usr/local/ppp/man
9 ETCDIR = /etc/ppp
10 #ARCHFLAGS = -arch i386 -arch m68k -arch hppa -arch sparc
11 #ARCHFLAGS = -arch i386 -arch m68k
12 #ARCHFLAGS = -arch i386
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/ipcp.c                             \
47         pppd/ipcp.h                             \
48         pppd/options.c                          \
49         pppd/sys-NeXT.c                         \
50         ${NULL}
51
52 NEXTNET = \
53         ${NULL}
54
55
56 #
57 # Currently not supported
58 #
59 NEXTPPPEXC = \
60         pppexclude/Makefile.NeXT                \
61         pppexclude/pppipexclude.8               \
62         pppexclude/pppipexclude.c               \
63         ${NULL}
64
65 NEXTSTATS = \
66         pppstats/Makefile.NeXT                  \
67         ${NULL}
68
69 NEXTCHAT = \
70         chat/Makefile.NeXT                      \
71         chat/chat.c.3.2                         \
72         ${NULL}
73
74 NEXTLKS = \
75         NeXT/INSTALL                            \
76         NeXT/Load_Commands.sect                 \
77         NeXT/Makefile                           \
78         NeXT/Makefile.top                       \
79         NeXT/NeXT_Version                       \
80         NeXT/README.NeXT                        \
81         NeXT/TODO.NeXT                          \
82         NeXT/Unload_Commands.sect               \
83         NeXT/bsd-comp.c                         \
84         NeXT/if_ppp.c                           \
85         NeXT/if_pppvar.h                        \
86         NeXT/inlines.h                          \
87         NeXT/linedisc.h                         \
88         NeXT/nbq.h                              \
89         NeXT/netbuf.h                           \
90         NeXT/ppp_tty.c                          \
91         NeXT/random.c                           \
92         NeXT/random.h                           \
93         NeXT/spl.h                              \
94         NeXT/vjcompress.c                       \
95         ${NULL}
96
97 NEXTHPPA = \
98         NeXT/hppa/README.hppa                   \
99         NeXT/hppa/hppaSerialPatch.tar.gz        \
100         $(NULL}
101
102 NEXTMACH = \
103         NeXT/mach/features.h                    \
104         $(NULL}
105
106
107 NEXTBPF = \
108         NeXT/bpf/Load_Commands.sect     \
109         NeXT/bpf/Makefile               \
110         NeXT/bpf/NeXT_Support.c         \
111         NeXT/bpf/README.NeXT            \
112         NeXT/bpf/Unload_Commands.sect   \
113         NeXT/bpf/bpf.4                  \
114         NeXT/bpf/bpf.c                  \
115         NeXT/bpf/bpf.h                  \
116         NeXT/bpf/bpf_compat.h           \
117         NeXT/bpf/bpf_filter.c           \
118         NeXT/bpf/bpfdesc.h              \
119         NeXT/bpf/netbuf.h               \
120         NeXT/bpf/promisc.c              \
121         NeXT/bpf/spl.h                  \
122         ${NULL}
123
124 NEXTEXAMP = \
125         Examples/NXHosting_with_PPP     \
126         Examples/Persistent_Connection  \
127         Examples/README                 \
128         Examples/flow-control-hints     \
129         Examples/ip-down.example        \
130         Examples/ip-up.example          \
131         Examples/options                \
132         Examples/pdial                  \
133         Examples/ppp_multiple_hosts.tar.gz      \
134         Examples/pppdown                \
135         Examples/pppkill.c              \
136         Examples/pppup.annex            \
137         Examples/pppup.direct           \
138         Examples/pppup.portmaster       \
139         Examples/pppup.remote           \
140         Examples/pppup.zyxel            \
141         Examples/rc.ppp                 \
142         Examples/redial.sh              \
143         ${NULL}
144
145
146 NEXTPORT = \
147            ${NEXTTOP}                   \
148            ${NEXTPPPD}                  \
149            ${NEXTSTATS}                 \
150            ${NEXTCHAT}                  \
151            ${NEXTLKS}                   \
152            ${NEXTHPPA}                  \
153            ${NEXTMACH}                  \
154            ${NEXTBPF}                   \
155            ${NEXTEXAMP}                 \
156            ${NULL}
157
158
159
160 #
161 #  The idea is to make for easy distribution of new port material.
162 #  Just make sure all relevant files appear in the lists above,
163 #  then:
164 #    1) Update the file ./NeXT_Version with a new number
165 #    2) go to the top level directory and type 'make portdist'.
166 #       You should get a nice tared/compressed file that is ready for
167 #       the archive. 
168 #
169
170
171 portdist: 
172         echo NeXT-ppp2.2-`sed -e '/version_string/!d' \
173              -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q ./NeXT/NeXT_Version` > .fname
174         rm -rf `cat .fname`
175         mkdir `cat .fname`
176         mkdir `cat .fname`/pppd
177         mkdir `cat .fname`/chat
178         mkdir `cat .fname`/NeXT
179         mkdir `cat .fname`/NeXT/hppa
180         mkdir `cat .fname`/NeXT/mach
181         mkdir `cat .fname`/NeXT/bpf
182         mkdir `cat .fname`/pppstats
183         mkdir `cat .fname`/Examples
184         -ln $(NEXTTOP) `cat .fname`
185         -ln $(NEXTPPPD) `cat .fname`/pppd
186         -ln $(NEXTCHAT) `cat .fname`/chat
187         -ln $(NEXTLKS) `cat .fname`/NeXT
188         -ln $(NEXTHPPA) `cat .fname`/NeXT/hppa
189         -ln $(NEXTMACH) `cat .fname`/NeXT/mach
190         -ln $(NEXTBPF) `cat .fname`/NeXT/bpf
191         -ln $(NEXTSTATS) `cat .fname`/pppstats
192         -ln $(NEXTEXAMP) `cat .fname`/Examples
193         for file in $(NEXTPORT); do \
194                 test -r `cat .fname`/$$file || cp -p $$file `cat .fname`; \
195         done
196         (cd `cat .fname`;tar chf - '.' | gzip --best > ../`cat ../.fname`.tar.gz)
197         rm -rf `cat .fname` .fname
198
199 .PHONY: dialppp portdist