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