does better without the includes
[ppp.git] / NeXT / Makefile.top
1 # ppp top level makefile for NeXT systems
2 #
3 # $Id: Makefile.top,v 1.5 1999/03/02 05:27:24 paulus Exp $
4 #
5
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 =
12
13 #
14 # It is not suggested that you change any values from here
15 # on.
16 #
17 BINDIR = /usr/local/ppp/bin
18 MANDIR = /usr/local/ppp/man
19 ETCDIR = /etc/ppp
20
21
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
28
29
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
39
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)
47
48
49
50 NEXTTOP = \
51         README.NeXT                             \
52         ${NULL}
53
54 NEXTPOSIX = \
55         libposix/Makefile.NeXT                  \
56         libposix/libposix.c                     \
57         ${NULL}
58
59 NEXTPPPD = \
60         pppd/Makefile.NeXT                      \
61         pppd/sys-NeXT.c                         \
62         ${NULL}
63
64 NEXTNET = \
65         net/if_ppp.h                            \
66         net/ppp_defs.h                          \
67         ${NULL}
68
69 NEXTSTATS = \
70         pppstats/Makefile.NeXT                  \
71         ${NULL}
72
73 #       pppstats/pppstats.c                     
74
75
76 NEXTCHAT = \
77         chat/Makefile.NeXT                      \
78         chat/chat.c.3.2                         \
79         ${NULL}
80
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}
101
102 NEXTHPPA = \
103         NeXT/hppa/README.hppa                   \
104         NeXT/hppa/hppaSerialPatch.tar.gz        \
105         ${NULL}
106
107 NEXTMACH = \
108         NeXT/mach/features.h                    \
109         ${NULL}
110
111
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}
132
133 NEXTPORT = \
134            ${NEXTTOP}                   \
135            ${NEXTPOSIX}                 \
136            ${NEXTPPPD}                  \
137            ${NEXTNET}                   \
138            ${NEXTSTATS}                 \
139            ${NEXTCHAT}                  \
140            ${NEXTLKS}                   \
141            ${NEXTHPPA}                  \
142            ${NEXTMACH}                  \
143            ${NEXTEXAMP}                 \
144            ${NULL}
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.6-`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
186
187 .PHONY: dialppp portdist