Mercurial > hg > Members > kono > nitros9-code
comparison 3rdparty/packages/uucpbb/src/makefile @ 2027:515da1fd1ca4
c3 makefile
author | boisy |
---|---|
date | Tue, 11 Apr 2006 01:58:34 +0000 |
parents | |
children | e4a0f58a5f9b |
comparison
equal
deleted
inserted
replaced
2026:eb19d87abbd8 | 2027:515da1fd1ca4 |
---|---|
1 include $(NITROS9DIR)/rules.mak | |
2 | |
3 # makefile for OS-9 UUCP package, UUCPbb v2.1 (OS-9/6809) | |
4 # | |
5 # This script requires Shell+ v2.1 (or later) and CC v2.5.0 | |
6 # | |
7 # NOTE: This package must be compiled by the SUPERUSER (user 0) in order | |
8 # for it to work properly. | |
9 | |
10 CC = c3 | |
11 | |
12 # Temporary directory. This device must have at least 120K of free space | |
13 TMP = | |
14 | |
15 # Default device | |
16 DD = /DD | |
17 | |
18 # Uncomment the termlib.l below to add termcap support. | |
19 # NOTE: termlib.l is necessary if using termcap, while sys.l is not currently | |
20 # necessary for compiling | |
21 | |
22 LIB = #-l=/dd/lib/termlib.l \ | |
23 #-l=/dd/lib/cmath63.l -l=/dd/lib/string63.l \ | |
24 #-l=$(DD)/lib/sys.l | |
25 | |
26 # REPLACE m6809 below with m6309 if you are using the 6309 microprocessor | |
27 | |
28 CPU = m6809 | |
29 | |
30 # COMMENT OUT SHELLPLUS if you do NOT use Shell+ v2.1 or later | |
31 | |
32 USHELL = SHELLPLUS | |
33 | |
34 # UNCOMMENT -dTERMCAP to add termcap support. | |
35 # UNCOMMENT -dBSDISH also to add termcap support based on Brad Spencer's | |
36 # port of BSD termcap (available on chestnut.cs.wisc.edu) | |
37 # UNCOMMENT -dDASHOK if kernel is patched to allow the '-' as part of file | |
38 # and directory names. | |
39 # REMOVE -dNEWCLIB if you are NOT using Carl Kreider clib.l replacement | |
40 # 1990 or later. | |
41 # | |
42 # ==IMPORTANT== do NOT remove the '\' at the end of the CFLAGS line. | |
43 | |
44 CFLAGS = -q -o -s -d$(CPU) -dOS9 -d$(USHELL) -dNEWCLIB \ | |
45 #-dTERMCAP #-dBSDISH #-dDASHOK | |
46 OBJS = uucico mailx dotilde rmail rnews uuxqt readnews postnews expire \ | |
47 subscribe unsubscribe uulog uuclean uuencode uudecode uucp chown \ | |
48 whoami fixtext adduser fileserv uuname login cnvrtmail #uusetup | |
49 | |
50 # These modules will not be compiled now by this makefile: | |
51 # uusetup | |
52 | |
53 all: $(OBJS) | |
54 # attr uucico e w r pe -pw pr | |
55 # attr mailx e w r pe -pw pr | |
56 # attr dotilde e w r pe -pw pr | |
57 # attr rmail e w r -pe -pw -pr | |
58 # attr rnews e w r -pe -pw -pr | |
59 # attr uuxqt e w r -pe -pw -pr | |
60 # attr readnews e w r pe -pw pr | |
61 # attr postnews e w r pe -pw pr | |
62 # attr expire e w r -pe -pw -pr | |
63 # attr subscribe e w r pe -pw pr | |
64 # attr unsubscribe e w r pe -pw pr | |
65 # attr uulog e w r pe -pw pr | |
66 # attr uuclean e w r -pe -pw -pr | |
67 # attr uuencode e w r pe -pw pr | |
68 # attr uudecode e w r pe -pw pr | |
69 # attr uucp e w r pe -pw pr | |
70 # attr chown e w r pe -pw pr | |
71 # attr whoami e w r pe -pw pr | |
72 # attr fixtext e w r pe -pw pr | |
73 # attr adduser e w r -pe -pw -pr | |
74 # attr fileserv e w r pe -pw pr | |
75 # attr uuname e w r pe -pw pr | |
76 # attr login e w r pe -pw pr | |
77 # attr cnvrtmail e w r -pe -pw -pr | |
78 # attr uusetup e w r -pe -pw -pr | |
79 | |
80 _UUCICO = uucico.r getopt.r getparam.r findmach.r chksched.r findline.r \ | |
81 findent.r finddev.r connect.r openport.r openuucp.r findwork.r \ | |
82 filexfer.r gproto.r dumpcode.r filemove.r fixperms.r closeuucp.r \ | |
83 parse.r docmd.r gtime.r mfgets.r strdetab.r getenv.r strdup.r \ | |
84 getdirs.r strstr.r pwent.r | |
85 | |
86 uucico: $(_UUCICO) | |
87 $(CC) -f=uucico $(CFLAGS) $(_UUCICO) $(LIB) -m=4k | |
88 | |
89 _MAILX = mail.r recvmail.r sendmail.r getuser.r docmd.r parse.r fixline.r \ | |
90 filemove.r maketemp.r getseq.r getval.r fixperms.r getparam.r \ | |
91 userparam.r t2test.r date822.r gtime.r doalias.r forkshell.r \ | |
92 strdup.r mfgets.r strdetab.r getenv.r termio.r nmload.r getdirs.r \ | |
93 pwent.r | |
94 | |
95 mailx: $(_MAILX) | |
96 $(CC) -f=mailx $(CFLAGS) $(_MAILX) $(LIB) -m=3k | |
97 | |
98 _DOTILDE = dotilde.r docmd.r fixline.r parse.r forkshell.r getenv.r \ | |
99 mfgets.r strdetab.r strdup.r gtime.r filemove.r termio.r pwent.r | |
100 | |
101 dotilde: $(_DOTILDE) | |
102 $(CC) -f=dotilde $(CFLAGS) $(_DOTILDE) $(LIB) -m=2k | |
103 | |
104 _RMAIL = rmail.r getline.r getuser.r validuser.r setuser.r parse.r genseq.r \ | |
105 findent.r getparam.r getval.r maketemp.r gtime.r fixperms.r \ | |
106 date822.r filemove.r doalias.r mfgets.r getenv.r strdup.r getdirs.r \ | |
107 termio.r docmd.r pwent.r | |
108 | |
109 rmail: $(_RMAIL) | |
110 $(CC) -f=rmail $(CFLAGS) $(_RMAIL) $(LIB) -m=4k | |
111 | |
112 _RNEWS = rnews.r getline.r groups.r procbatch.r mbuf.r xatol.r getdirs.r \ | |
113 getparam.r parse.r strdup.r mfgets.r openarts.r makepath.r strupr.r \ | |
114 procart.r getopt.r fixref.r gtime.r log.r getenv.r | |
115 | |
116 rnews: $(_RNEWS) | |
117 $(CC) -f=rnews $(CFLAGS) $(_RNEWS) $(LIB) -m=5k -e=21 | |
118 | |
119 _UUXQT = uuxqt.r findxwork.r getline.r parse.r docmd.r gtime.r filemove.r \ | |
120 mfgets.r getopt.r strdetab.r strdup.r getdirs.r strupr.r nmload.r \ | |
121 getenv.r | |
122 | |
123 uuxqt: $(_UUXQT) | |
124 $(CC) -f=uuxqt $(CFLAGS) $(_UUXQT) $(LIB) -m=3k | |
125 | |
126 _READNEWS = readnews.r getuser.r makepath.r parse.r filemove.r fixline.r \ | |
127 docmd.r newsutils.r getval.r getparam.r userparam.r gtime.r \ | |
128 t2test.r forkshell.r mfgets.r strupr.r strdetab.r getenv.r strdup.r \ | |
129 getdirs.r termio.r pwent.r | |
130 | |
131 readnews: $(_READNEWS) | |
132 $(CC) -f=readnews $(CFLAGS) $(_READNEWS) $(LIB) -m=4k | |
133 | |
134 _POSTNEWS = postnews.r getuser.r maketemp.r getseq.r findent.r \ | |
135 getsys.r docmd.r fixline.r filemove.r genseq.r getparam.r \ | |
136 userparam.r parse.r t2test.r fixperms.r gtime.r date822.r mfgets.r \ | |
137 strdetab.r getenv.r strdup.r getdirs.r getopt.r termio.r nmload.r \ | |
138 pwent.r | |
139 | |
140 postnews: $(_POSTNEWS) | |
141 $(CC) -f=postnews $(CFLAGS) $(_POSTNEWS) $(LIB) -m=4k | |
142 | |
143 _EXPIRE = expire.r expgroup.r makepath.r parse.r newsutils.r gtime.r \ | |
144 filemove.r strupr.r mfgets.r strdetab.r strdup.r getdirs.r getopt.r \ | |
145 getenv.r | |
146 | |
147 expire: $(_EXPIRE) | |
148 $(CC) -f=expire $(CFLAGS) $(_EXPIRE) $(LIB) -m=2k | |
149 | |
150 _SUBSCRIBE = subscribe.r filemove.r mfgets.r getenv.r pwent.r strdup.r | |
151 | |
152 subscribe: $(_SUBSCRIBE) | |
153 $(CC) -f=subscribe $(CFLAGS) $(_SUBSCRIBE) $(LIB) -m=1k | |
154 | |
155 _UNSUBSCRIBE = unsubscribe.r filemove.r mfgets.r getenv.r pwent.r strdup.r | |
156 | |
157 unsubscribe: $(_UNSUBSCRIBE) | |
158 $(CC) -f=unsubscribe $(CFLAGS) $(_UNSUBSCRIBE) $(LIB) -m=1k | |
159 | |
160 _UULOG = uulog.r getopt.r getenv.r strdup.r mfgets.r | |
161 | |
162 uulog: $(_UULOG) | |
163 $(CC) -f=uulog $(CFLAGS) $(_UULOG) $(LIB) -m=1k | |
164 | |
165 _UUCLEAN = uuclean.r getparam.r parse.r docmd.r maketemp.r mfgets.r \ | |
166 gtime.r filemove.r date822.r setuser.r getval.r getenv.r \ | |
167 strdup.r getdirs.r getopt.r pwent.r | |
168 | |
169 uuclean: $(_UUCLEAN) | |
170 $(CC) -f=uuclean $(CFLAGS) $(_UUCLEAN) $(LIB) -m=4k | |
171 | |
172 _UUSTAT = uustat.r | |
173 | |
174 uustat: $(_UUSTAT) | |
175 $(CC) -f=uustat $(CFLAGS) $(_UUSTAT) $(LIB) -m=1k | |
176 | |
177 _UUCP = uucp.r getuser.r getparam.r parse.r genseq.r fixperms.r maketemp.r \ | |
178 docmd.r mfgets.r gtime.r getenv.r strdup.r getdirs.r pwent.r | |
179 | |
180 uucp: $(_UUCP) | |
181 $(CC) -f=uucp $(CFLAGS) $(_UUCP) $(LIB) -m=2k | |
182 | |
183 _UUDECODE = uudecode.r | |
184 | |
185 uudecode: $(_UUDECODE) | |
186 $(CC) -f=uudecode $(CFLAGS) $(_UUDECODE) $(LIB) -m=1k | |
187 | |
188 _UUENCODE = uuencode.r | |
189 | |
190 uuencode: $(_UUENCODE) | |
191 $(CC) -f=uuencode $(CFLAGS) $(_UUENCODE) $(LIB) -m=1k | |
192 | |
193 _CHOWN = chown.r pwent.r | |
194 | |
195 chown: $(_CHOWN) | |
196 $(CC) -f=chown $(CFLAGS) $(_CHOWN) $(LIB) | |
197 | |
198 _WHOAMI = whoami.r pwent.r | |
199 | |
200 whoami: $(_WHOAMI) | |
201 $(CC) -f=whoami $(CFLAGS) $(_WHOAMI) $(LIB) -m=1k | |
202 | |
203 _FIXTEXT = fixtext.r fixline.r strdetab.r mfgets.r | |
204 | |
205 fixtext: $(_FIXTEXT) | |
206 $(CC) -f=fixtext $(CFLAGS) $(_FIXTEXT) $(LIB) | |
207 | |
208 _CNVRTMAIL = cnvrtmail.r docmd.r fixperms.r gtime.r strupr.r getval.r \ | |
209 mfgets.r filemove.r getenv.r parse.r pwent.r strdup.r | |
210 | |
211 cnvrtmail: $(_CNVRTMAIL) | |
212 $(CC) -f=cnvrtmail $(CFLAGS) $(_CNVRTMAIL) $(LIB) -m=4k | |
213 | |
214 _LOGIN = login.r parse.r fixperms.r pwent.r getenv.r strdup.r | |
215 | |
216 login: $(_LOGIN) | |
217 $(CC) -f=login $(CFLAGS) $(_LOGIN) $(LIB) -m=1k | |
218 | |
219 _ADDUSER = adduser.r strdetab.r getenv.r strdup.r termio.r mfgets.r pwent.r | |
220 | |
221 adduser: $(_ADDUSER) | |
222 $(CC) -f=adduser $(CFLAGS) $(_ADDUSER) $(LIB) -m=1k | |
223 | |
224 _UUSETUP = uusetup.r getdevices.r parse.r strupr.r mfgets.r termio.r | |
225 | |
226 uusetup: $(_UUSETUP) | |
227 $(CC) -f=uusetup $(CFLAGS) $(_UUSETUP) $(LIB) -m=1k | |
228 | |
229 _FILESERV = fileserv.r getparam.r getdirs.r strdup.r mfgets.r getval.r \ | |
230 maketemp.r filemove.r docmd.r gtime.r date822.r getseq.r fixperms.r \ | |
231 parse.r getenv.r | |
232 | |
233 fileserv: $(_FILESERV) | |
234 $(CC) -f=fileserv $(CFLAGS) $(_FILESERV) $(LIB) -m=3k | |
235 | |
236 _UUNAME = uuname.r parse.r mfgets.r | |
237 | |
238 uuname: $(_UUNAME) | |
239 $(CC) -f=uuname $(CFLAGS) $(_UUNAME) $(LIB) | |
240 | |
241 clean: | |
242 $(RM) *.r $(OBJS) | |
243 | |
244 # | |
245 # Dependencies between .c and .h files | |
246 # | |
247 uucico.r: uucico.c uucp.h proto.h os_misc.h uucico.h | |
248 findmach.r: findmach.c uucp.h proto.h os_misc.h uucico.h | |
249 findline.r: findline.c uucp.h proto.h os_misc.h | |
250 findent.r: findent.c uucp.h proto.h os_misc.h | |
251 chksched.r: chksched.c uucp.h proto.h os_misc.h uucico.h | |
252 finddev.r: finddev.c uucp.h proto.h os_misc.h | |
253 openport.r: openport.c uucp.h proto.h os_misc.h uucico.h | |
254 openuucp.r: openuucp.c uucp.h proto.h os_misc.h uucico.h | |
255 gproto.r: gproto.c uucp.h proto.h os_misc.h uucico.h | |
256 dumpcode.r: dumpcode.c uucp.h proto.h os_misc.h | |
257 closeuucp.r: closeuucp.c uucp.h proto.h os_misc.h uucico.h | |
258 connect.r: connect.c uucp.h proto.h os_misc.h uucico.h | |
259 findwork.r: findwork.c uucp.h proto.h os_misc.h uucico.h | |
260 filexfer.r: filexfer.c uucp.h proto.h os_misc.h uucico.h | |
261 docmd.r: docmd.c uucp.h proto.h os_misc.h | |
262 getsys.r: getsys.c uucp.h proto.h os_misc.h | |
263 getparam.r: getparam.c uucp.h proto.h os_misc.h uucico.h | |
264 getopt.r: getopt.c getopt.h | |
265 dotilde.r: dotilde.c uucp.h proto.h os_misc.h | |
266 userparam.r: userparam.c uucp.h proto.h os_misc.h | |
267 doalias.r: doalias.c uucp.h proto.h os_misc.h | |
268 mail.r: mail.c uucp.h proto.h os_misc.h mail.h | |
269 recvmail.r: recvmail.c uucp.h proto.h os_misc.h mail.h | |
270 sendmail.r: sendmail.c uucp.h proto.h os_misc.h mail.h | |
271 mailx.r: mail.c uucp.h proto.h os_misc.h mail.h | |
272 recvmail.r: recvmail.c uucp.h proto.h os_misc.h mail.h | |
273 rmail.r: rmail.c uucp.h proto.h os_misc.h | |
274 genseq.r: genseq.c uucp.h proto.h os_misc.h | |
275 rnews.r: rnews.c uucp.h proto.h os_misc.h rnews.h mbuf.h getopt.h | |
276 groups.r: groups.c uucp.h proto.h os_misc.h rnews.h mbuf.h | |
277 procbatch.r: procbatch.c uucp.h proto.h os_misc.h rnews.h mbuf.h | |
278 xatol.r: xatol.c | |
279 mbuf.r: mbuf.c mbuf.h | |
280 openarts.r: openarts.c uucp.h proto.h os_misc.h rnews.h mbuf.h | |
281 procart.r: procart.c uucp.h proto.h os_misc.h rnews.h mbuf.h | |
282 fixref.r: fixref.c | |
283 log.r: log.c uucp.h proto.h os_misc.h | |
284 validuser.r: validuser.c uucp.h proto.h os_misc.h | |
285 uuxqt.r: uuxqt.c uucp.h proto.h os_misc.h | |
286 findxwork.r: findxwork.c uucp.h proto.h os_misc.h | |
287 readnews.r: readnews.c uucp.h proto.h os_misc.h | |
288 newsutils.r: newsutils.c uucp.h proto.h os_misc.h | |
289 postnews.r: postnews.c uucp.h proto.h os_misc.h | |
290 expire.r: expire.c uucp.h proto.h os_misc.h | |
291 expgroup.r: expgroup.c uucp.h proto.h os_misc.h | |
292 subscribe.r: subscribe.c uucp.h proto.h os_misc.h | |
293 unsubscribe.r: unsubscribe.c uucp.h proto.h os_misc.h | |
294 uulog.r: uulog.c uucp.h proto.h os_misc.h | |
295 uuclean.r: uuclean.c uucp.h proto.h os_misc.h | |
296 uustat.r: uustat.c uucp.h proto.h os_misc.h | |
297 uucp.r: uucp.c uucp.h proto.h os_misc.h | |
298 cnvrtmail.r: cnvrtmail.c uucp.h proto.h os_misc.h | |
299 login.r: login.c uucp.h proto.h os_misc.h | |
300 chown.r: chown.c uucp.h proto.h os_misc.h | |
301 adduser.r: adduser.c uucp.h proto.h os_misc.h | |
302 uusetup.r: uusetup.c uucp.h proto.h os_misc.h uusetup.h | |
303 getdevices.r: getdevices.c uucp.h proto.h os_misc.h uusetup.h | |
304 getenv.r: getenv.c uucp.h proto.h os_misc.h | |
305 getseq.r: getseq.c uucp.h proto.h os_misc.h | |
306 maketemp.r: maketemp.c uucp.h proto.h os_misc.h | |
307 forkhsell.r: forkshell.c uucp.h proto.h os_misc.h | |
308 setuser.r: setuser.c uucp.h proto.h os_misc.h | |
309 filemove.r: filemove.c uucp.h proto.h os_misc.h | |
310 fixpath.r: fixpath.c uucp.h proto.h os_misc.h | |
311 makepath.r: makepath.c uucp.h proto.h os_misc.h | |
312 getdirs.r: getdirs.c uucp.h proto.h os_misc.h | |
313 fixline.r: fixline.c uucp.h proto.h os_misc.h | |
314 getenv.r: getenv.c uucp.h proto.h os_misc.h | |
315 fileserv.r: fileserv.c uucp.h proto.h os_misc.h | |
316 osk.r: osk.c uucp.h proto.h os_misc.h | |
317 pwent.r: pwent.c uucp.h proto.h os_misc.h | |
318 uuname.r: uuname.c uucp.h proto.h os_misc.h | |
319 parse.r: parse.c uucp.h proto.h os_misc.h |