Commit | Line | Data |
---|---|---|
11cfcb47 | 1 | # Makefile 5.2 83/07/02 |
11ece1e5 SL |
2 | # |
3 | # This version expects the 4.2BSD directory reading routines to | |
4 | # located in libc.a. If they aren't, augment LIBS. Also, LIBS | |
5 | # can be set to reference other object modules and libraries needed | |
6 | # by uucico, such as -lunet (needed when UNET is defined). | |
7 | # | |
8 | # Common object files are assembled into a library {uulib.a} | |
9 | # | |
10 | ALL= uucp uux uuxqt uucico uulog uuclean uuname uupoll uusnap \ | |
11 | uuencode uudecode uusend | |
12 | # Common object files placed in uulib.a | |
13 | COMMON= anlwrk.o anyread.o assert.o cfgets.o chkpth.o \ | |
14 | cpmv.o expfile.o gename.o getargs.o getopt.o getprm.o \ | |
15 | getpw.o getpwinfo.o gio.o gnamef.o gnxseq.o gwd.o imsg.o \ | |
16 | index.o lastpart.o logent.o mailst.o pk0.o pk1.o prefix.o \ | |
17 | sdmail.o setline.o shio.o subdir.o sysacct.o systat.o ulockf.o \ | |
18 | uucpname.o versys.o xqt.o uucpdefs.o | |
19 | DESTDIR= | |
20 | OWNER= uucp | |
21 | GROUP= daemon | |
22 | CFLAGS= -O | |
23 | LDFLAGS= | |
24 | LIBS= | |
25 | LIBDIR= /usr/lib/uucp | |
26 | BIN= /usr/bin | |
27 | PUBDIR= /usr/spool/uucppublic | |
28 | SPOOL= /usr/spool/uucp | |
29 | XQTDIR= /usr/spool/uucp/XTMP | |
30 | # The six subdirs {not counting XTMP}. The order of the D. files is crucial! | |
31 | SUBDIRS=C. D.`uuname -l`X D.`uuname -l` D. X. TM. | |
32 | PKON= pkon.o | |
33 | IOCTL= | |
11cfcb47 SL |
34 | # for make depend |
35 | UNDEF= -uNDIR -uUNET -uSYSIII -uUNAME -uCCWHOAMI -uGETMYHNAME -uDATAKIT | |
11ece1e5 SL |
36 | |
37 | all: ${ALL} | |
38 | ||
39 | uucp: uucp.o uulib.a | |
40 | ${CC} -o uucp ${LDFLAGS} uucp.o uulib.a | |
41 | ||
42 | uux: uux.o uulib.a | |
43 | ${CC} -o uux ${LDFLAGS} uux.o uulib.a | |
44 | ||
45 | uuxqt: uuxqt.o uulib.a | |
46 | ${CC} -o uuxqt ${LDFLAGS} uuxqt.o uulib.a ${LIBS} | |
47 | ||
48 | uucico: cico.o cntrl.o conn.o condevs.o gnsys.o ${IOCTL} ${PKON} uulib.a | |
49 | ${CC} -o uucico ${LDFLAGS} cico.o cntrl.o conn.o condevs.o \ | |
50 | gnsys.o ${IOCTL} ${PKON} ${LIBS} | |
51 | ||
52 | uulog: uulog.o uulib.a | |
53 | ${CC} -o uulog ${LDFLAGS} uulog.o uulib.a | |
54 | ||
55 | uuclean: uuclean.o uulib.a | |
56 | ${CC} -o uuclean ${LDFLAGS} uuclean.o uulib.a | |
57 | ||
58 | uuname: uuname.o uulib.a | |
59 | ${CC} -o uuname ${LDFLAGS} uuname.o uulib.a | |
60 | ||
61 | uupoll: uupoll.o uulib.a | |
62 | ${CC} -o uupoll ${LDFLAGS} uupoll.o uulib.a | |
63 | ||
64 | uusnap: uusnap.o uulib.a | |
65 | ${CC} -o uusnap ${LDFLAGS} uusnap.o uulib.a ${LIBS} | |
66 | ||
67 | uuencode: uuencode.o uulib.a | |
68 | ${CC} -o uuencode ${LDFLAGS} uuencode.o uulib.a | |
69 | ||
70 | uudecode: uudecode.o uulib.a | |
71 | ${CC} -o uudecode ${LDFLAGS} uudecode.o uulib.a | |
72 | ||
73 | uusend: uusend.o uulib.a | |
74 | ${CC} -o uusend ${LDFLAGS} uusend.o uulib.a | |
75 | ||
76 | # Note: mode 700 on ${LIBDIR} would be safer. | |
77 | # Also, L.sys etc should be 600. | |
78 | mkdirs: | |
79 | -mkdir ${DESTDIR}/${LIBDIR} | |
80 | chmod 755 ${DESTDIR}/${LIBDIR} | |
81 | chown ${OWNER} ${DESTDIR}/${LIBDIR} | |
82 | chgrp ${GROUP} ${DESTDIR}/${LIBDIR} | |
83 | -mkdir ${DESTDIR}/${SPOOL} | |
84 | chmod 755 ${DESTDIR}/${SPOOL} | |
85 | chown ${OWNER} ${DESTDIR}/${SPOOL} | |
86 | chgrp ${GROUP} ${DESTDIR}/${SPOOL} | |
87 | -mkdir ${DESTDIR}/${PUBDIR} | |
88 | chmod 777 ${DESTDIR}/${PUBDIR} | |
89 | chown ${OWNER} ${DESTDIR}/${PUBDIR} | |
90 | chgrp ${GROUP} ${DESTDIR}/${PUBDIR} | |
91 | -mkdir ${DESTDIR}/${XQTDIR} | |
92 | chmod 755 ${DESTDIR}/${XQTDIR} | |
93 | chown ${OWNER} ${DESTDIR}/${XQTDIR} | |
94 | chgrp ${GROUP} ${DESTDIR}/${XQTDIR} | |
95 | cd ${DESTDIR}/${SPOOL}; for i in ${SUBDIRS}; do \ | |
96 | mkdir $$i; \ | |
11cfcb47 | 97 | chown ${OWNER} $$i; chgrp ${GROUP} $$i; chmod 755 $$i; \ |
11ece1e5 SL |
98 | done |
99 | ||
100 | # The lorder...tsort below is for systems w/o ranlib | |
101 | # But it doesnt hurt to use it. Ignore the spurious "cycle" messages | |
102 | uulib.a: ${COMMON} | |
103 | rm -f $@ | |
104 | ar cr $@ `lorder ${COMMON} | tsort` | |
105 | ranlib $@ | |
106 | ||
107 | install: all | |
108 | chown ${OWNER} ${DESTDIR}/${LIBDIR} | |
109 | chgrp ${GROUP} ${DESTDIR}/${LIBDIR} | |
110 | chmod 755 ${DESTDIR}/${LIBDIR} | |
111 | install -s -m 6111 -o ${OWNER} -g ${GROUP} uucp ${DESTDIR}/${BIN}/uucp | |
112 | install -s -m 6111 -o ${OWNER} -g ${GROUP} uux ${DESTDIR}/${BIN}/uux | |
113 | : chmod u+t ${BIN}/uux; : this helps PDPs | |
114 | install -s -m 6110 -o ${OWNER} -g ${GROUP} \ | |
115 | uuxqt ${DESTDIR}/${LIBDIR}/uuxqt | |
116 | : chmod u+t ${LIBDIR}/uuxqt; : this helps PDPs | |
117 | install -s -m 6111 -o ${OWNER} -g ${GROUP} \ | |
118 | uucico ${DESTDIR}/${LIBDIR}/uucico | |
119 | : chmod u+t ${LIBDIR}/uucico; : this helps PDPs if uucico is pure | |
120 | install -s -m 6111 -o ${OWNER} -g ${GROUP} uulog ${DESTDIR}/${BIN}/uulog | |
121 | install -s -m 6111 -o ${OWNER} -g ${GROUP} \ | |
122 | uuclean ${DESTDIR}/${LIBDIR}/uuclean | |
123 | install -s -m 6111 -o ${OWNER} -g ${GROUP} \ | |
124 | uuname ${DESTDIR}/${BIN}/uuname | |
125 | install -s -m 6111 -o ${OWNER} -g ${GROUP} \ | |
126 | uupoll ${DESTDIR}/${BIN}/uupoll | |
127 | install -s -m 6111 -o ${OWNER} -g ${GROUP} \ | |
128 | uusnap ${DESTDIR}/${BIN}/uusnap | |
129 | install -s -m 6111 -o ${OWNER} -g ${GROUP} \ | |
130 | uuencode ${DESTDIR}/${BIN}/uuencode | |
131 | install -s -m 6111 -o ${OWNER} -g ${GROUP} \ | |
132 | uudecode ${DESTDIR}/${BIN}/uudecode | |
133 | install -s -m 6111 -o ${OWNER} -g ${GROUP} \ | |
134 | uusend ${DESTDIR}/${BIN}/uusend | |
135 | rm -f ${DESTDIR}/${BIN}/ruusend | |
136 | ln ${DESTDIR}/${BIN}/uusend ${DESTDIR}/${BIN}/ruusend | |
137 | ||
138 | clean: | |
139 | rm -f *.o ${ALL} uulib.a | |
140 | ||
141 | depend: | |
142 | for i in *.c; do \ | |
143 | (echo `basename $$i .c`.o: $$i >>makedep; \ | |
11cfcb47 | 144 | unifdef ${UNDEF} $$i | \ |
11ece1e5 SL |
145 | /bin/grep '^#[ ]*include' | sed \ |
146 | -e '/\.\.\/h/d' \ | |
147 | -e 's,<\(.*\)>,"/usr/include/\1",' \ | |
148 | -e 's/^[^"]*"\([^"]*\)".*/'"$$i"': \1/' \ | |
149 | -e 's/\.c/.o/' >>makedep); done | |
150 | echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep | |
151 | echo '$$r makedep' >>eddep | |
152 | echo 'w' >>eddep | |
153 | cp Makefile Makefile.bak | |
154 | ed - Makefile < eddep | |
155 | rm eddep makedep | |
156 | echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile | |
157 | echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile | |
158 | echo '# see make depend above' >> Makefile | |
159 | ||
160 | # DO NOT DELETE THIS LINE -- make depend uses it | |
161 | # DEPENDENCIES MUST END AT END OF FILE | |
162 | anlwrk.o: anlwrk.c | |
163 | anlwrk.o: uucp.h | |
164 | anlwrk.o: /usr/include/sys/types.h | |
165 | anlwrk.o: /usr/include/sys/stat.h | |
11cfcb47 | 166 | anlwrk.o: /usr/include/sys/dir.h |
11ece1e5 SL |
167 | anyread.o: anyread.c |
168 | anyread.o: uucp.h | |
169 | anyread.o: /usr/include/sys/types.h | |
170 | anyread.o: /usr/include/sys/stat.h | |
171 | assert.o: assert.c | |
172 | assert.o: uucp.h | |
11cfcb47 | 173 | assert.o: /usr/include/sys/time.h |
11ece1e5 SL |
174 | assert.o: /usr/include/sys/types.h |
175 | assert.o: /usr/include/errno.h | |
176 | cfgets.o: cfgets.c | |
177 | cfgets.o: /usr/include/stdio.h | |
178 | chkpth.o: chkpth.c | |
179 | chkpth.o: uucp.h | |
180 | chkpth.o: /usr/include/sys/types.h | |
181 | chkpth.o: /usr/include/sys/stat.h | |
182 | cico.o: cico.c | |
183 | cico.o: uucp.h | |
184 | cico.o: /usr/include/signal.h | |
185 | cico.o: /usr/include/setjmp.h | |
186 | cico.o: /usr/include/sys/types.h | |
11ece1e5 SL |
187 | cico.o: /usr/include/sgtty.h |
188 | cntrl.o: cntrl.c | |
189 | cntrl.o: uucp.h | |
190 | cntrl.o: /usr/include/sys/types.h | |
191 | cntrl.o: /usr/include/sys/stat.h | |
192 | condevs.o: condevs.c | |
193 | condevs.o: /usr/include/sys/types.h | |
194 | condevs.o: /usr/include/errno.h | |
195 | condevs.o: /usr/include/setjmp.h | |
196 | condevs.o: /usr/include/signal.h | |
197 | condevs.o: /usr/include/sgtty.h | |
198 | condevs.o: uucp.h | |
11cfcb47 | 199 | condevs.o: /usr/include/sys/time.h |
11ece1e5 SL |
200 | condevs.o: /usr/include/sys/timeb.h |
201 | conn.o: conn.c | |
202 | conn.o: uucp.h | |
203 | conn.o: /usr/include/signal.h | |
204 | conn.o: /usr/include/setjmp.h | |
205 | conn.o: /usr/include/ctype.h | |
206 | conn.o: /usr/include/sys/types.h | |
11cfcb47 | 207 | conn.o: /usr/include/sys/time.h |
11ece1e5 | 208 | conn.o: /usr/include/errno.h |
11ece1e5 SL |
209 | conn.o: /usr/include/sgtty.h |
210 | cpmv.o: cpmv.c | |
211 | cpmv.o: uucp.h | |
212 | cpmv.o: /usr/include/sys/types.h | |
213 | cpmv.o: /usr/include/sys/stat.h | |
214 | expfile.o: expfile.c | |
215 | expfile.o: uucp.h | |
216 | expfile.o: /usr/include/sys/types.h | |
217 | expfile.o: /usr/include/sys/stat.h | |
218 | gename.o: gename.c | |
219 | gename.o: uucp.h | |
220 | getargs.o: getargs.c | |
221 | getargs.o: /usr/include/stdio.h | |
222 | getopt.o: getopt.c | |
223 | getopt.o: /usr/include/stdio.h | |
224 | getprm.o: getprm.c | |
225 | getprm.o: /usr/include/stdio.h | |
226 | getpw.o: getpw.c | |
11cfcb47 | 227 | getpw.o: /usr/include/stdio.h |
11ece1e5 SL |
228 | getpwinfo.o: getpwinfo.c |
229 | getpwinfo.o: uucp.h | |
230 | getpwinfo.o: /usr/include/pwd.h | |
231 | gio.o: gio.c | |
232 | gio.o: pk.p | |
233 | gio.o: /usr/include/sys/types.h | |
234 | gio.o: pk.h | |
235 | gio.o: /usr/include/setjmp.h | |
236 | gio.o: uucp.h | |
237 | gnamef.o: gnamef.c | |
238 | gnamef.o: uucp.h | |
239 | gnamef.o: /usr/include/sys/types.h | |
11cfcb47 | 240 | gnamef.o: /usr/include/sys/dir.h |
11ece1e5 SL |
241 | gnsys.o: gnsys.c |
242 | gnsys.o: uucp.h | |
243 | gnsys.o: /usr/include/sys/types.h | |
11cfcb47 | 244 | gnsys.o: /usr/include/sys/dir.h |
11ece1e5 SL |
245 | gnxseq.o: gnxseq.c |
246 | gnxseq.o: uucp.h | |
247 | gnxseq.o: /usr/include/sys/types.h | |
11cfcb47 | 248 | gnxseq.o: /usr/include/sys/time.h |
11ece1e5 SL |
249 | gwd.o: gwd.c |
250 | gwd.o: uucp.h | |
251 | gwd.o: /usr/include/signal.h | |
252 | imsg.o: imsg.c | |
253 | imsg.o: uucp.h | |
254 | index.o: index.c | |
255 | index.o: /usr/include/stdio.h | |
256 | ioctl.o: ioctl.c | |
257 | ioctl.o: uucp.h | |
258 | ioctl.o: /usr/include/sgtty.h | |
259 | lastpart.o: lastpart.c | |
260 | logent.o: logent.c | |
261 | logent.o: uucp.h | |
262 | logent.o: /usr/include/sys/types.h | |
11cfcb47 | 263 | logent.o: /usr/include/sys/time.h |
11ece1e5 SL |
264 | logent.o: /usr/include/sgtty.h |
265 | mailst.o: mailst.c | |
266 | mailst.o: uucp.h | |
267 | pk0.o: pk0.c | |
268 | pk0.o: /usr/include/stdio.h | |
11ece1e5 SL |
269 | pk0.o: pk.p |
270 | pk0.o: /usr/include/sys/param.h | |
271 | pk0.o: pk.h | |
272 | pk0.o: /usr/include/sys/buf.h | |
273 | pk1.o: pk1.c | |
274 | pk1.o: /usr/include/stdio.h | |
11ece1e5 SL |
275 | pk1.o: pk.p |
276 | pk1.o: /usr/include/sys/param.h | |
277 | pk1.o: pk.h | |
278 | pk1.o: /usr/include/sys/buf.h | |
279 | pk1.o: /usr/include/setjmp.h | |
280 | pk1.o: /usr/include/signal.h | |
281 | pkon.o: pkon.c | |
282 | prefix.o: prefix.c | |
283 | sdmail.o: sdmail.c | |
284 | sdmail.o: uucp.h | |
285 | sdmail.o: /usr/include/pwd.h | |
286 | setline.o: setline.c | |
287 | setline.o: uucp.h | |
11ece1e5 SL |
288 | shio.o: shio.c |
289 | shio.o: uucp.h | |
290 | shio.o: /usr/include/signal.h | |
291 | subdir.o: subdir.c | |
292 | subdir.o: uucp.h | |
293 | sysacct.o: sysacct.c | |
294 | sysacct.o: /usr/include/sys/types.h | |
295 | systat.o: systat.c | |
296 | systat.o: uucp.h | |
297 | systat.o: /usr/include/sys/types.h | |
298 | ulockf.o: ulockf.c | |
299 | ulockf.o: uucp.h | |
300 | ulockf.o: /usr/include/sys/types.h | |
301 | ulockf.o: /usr/include/sys/stat.h | |
302 | uuclean.o: uuclean.c | |
303 | uuclean.o: uucp.h | |
304 | uuclean.o: /usr/include/signal.h | |
305 | uuclean.o: /usr/include/pwd.h | |
306 | uuclean.o: /usr/include/sys/types.h | |
307 | uuclean.o: /usr/include/sys/stat.h | |
11cfcb47 | 308 | uuclean.o: /usr/include/sys/dir.h |
11ece1e5 SL |
309 | uucp.o: uucp.c |
310 | uucp.o: uucp.h | |
311 | uucp.o: /usr/include/sys/types.h | |
312 | uucp.o: /usr/include/sys/stat.h | |
313 | uucpdefs.o: uucpdefs.c | |
314 | uucpdefs.o: uucp.h | |
315 | uucpname.o: uucpname.c | |
316 | uucpname.o: uucp.h | |
317 | uucpname.o: /usr/include/sys/types.h | |
318 | uucpname.o: /usr/include/sys/stat.h | |
11ece1e5 SL |
319 | uudecode.o: uudecode.c |
320 | uudecode.o: /usr/include/stdio.h | |
321 | uudecode.o: /usr/include/pwd.h | |
322 | uudecode.o: /usr/include/sys/types.h | |
323 | uudecode.o: /usr/include/sys/stat.h | |
324 | uuencode.o: uuencode.c | |
325 | uuencode.o: /usr/include/stdio.h | |
326 | uuencode.o: /usr/include/sys/types.h | |
327 | uuencode.o: /usr/include/sys/stat.h | |
328 | uulog.o: uulog.c | |
329 | uulog.o: uucp.h | |
330 | uuname.o: uuname.c | |
331 | uuname.o: uucp.h | |
332 | uuname.o: /usr/include/signal.h | |
333 | uupoll.o: uupoll.c | |
334 | uupoll.o: uucp.h | |
335 | uusend.o: uusend.c | |
336 | uusend.o: /usr/include/stdio.h | |
337 | uusend.o: /usr/include/pwd.h | |
338 | uusend.o: /usr/include/sys/types.h | |
339 | uusend.o: /usr/include/sys/stat.h | |
340 | uusnap.o: uusnap.c | |
341 | uusnap.o: uucp.h | |
342 | uusnap.o: /usr/include/sys/types.h | |
343 | uusnap.o: /usr/include/sys/stat.h | |
11cfcb47 | 344 | uusnap.o: /usr/include/sys/dir.h |
11ece1e5 SL |
345 | uux.o: uux.c |
346 | uux.o: uucp.h | |
347 | uuxqt.o: uuxqt.c | |
348 | uuxqt.o: uucp.h | |
349 | uuxqt.o: /usr/include/sys/types.h | |
350 | uuxqt.o: /usr/include/sys/stat.h | |
11cfcb47 | 351 | uuxqt.o: /usr/include/sys/dir.h |
11ece1e5 SL |
352 | versys.o: versys.c |
353 | versys.o: uucp.h | |
354 | xqt.o: xqt.c | |
355 | xqt.o: uucp.h | |
356 | xqt.o: /usr/include/signal.h | |
357 | # DEPENDENCIES MUST END AT END OF FILE | |
358 | # IF YOU PUT STUFF HERE IT WILL GO AWAY | |
359 | # see make depend above |