fix comment
[unix-history] / usr / src / usr.bin / uucp / Makefile
CommitLineData
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#
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=
11cfcb47
SL
34# for make depend
35UNDEF= -uNDIR -uUNET -uSYSIII -uUNAME -uCCWHOAMI -uGETMYHNAME -uDATAKIT
11ece1e5
SL
36
37all: ${ALL}
38
39uucp: uucp.o uulib.a
40 ${CC} -o uucp ${LDFLAGS} uucp.o uulib.a
41
42uux: uux.o uulib.a
43 ${CC} -o uux ${LDFLAGS} uux.o uulib.a
44
45uuxqt: uuxqt.o uulib.a
46 ${CC} -o uuxqt ${LDFLAGS} uuxqt.o uulib.a ${LIBS}
47
48uucico: 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
52uulog: uulog.o uulib.a
53 ${CC} -o uulog ${LDFLAGS} uulog.o uulib.a
54
55uuclean: uuclean.o uulib.a
56 ${CC} -o uuclean ${LDFLAGS} uuclean.o uulib.a
57
58uuname: uuname.o uulib.a
59 ${CC} -o uuname ${LDFLAGS} uuname.o uulib.a
60
61uupoll: uupoll.o uulib.a
62 ${CC} -o uupoll ${LDFLAGS} uupoll.o uulib.a
63
64uusnap: uusnap.o uulib.a
65 ${CC} -o uusnap ${LDFLAGS} uusnap.o uulib.a ${LIBS}
66
67uuencode: uuencode.o uulib.a
68 ${CC} -o uuencode ${LDFLAGS} uuencode.o uulib.a
69
70uudecode: uudecode.o uulib.a
71 ${CC} -o uudecode ${LDFLAGS} uudecode.o uulib.a
72
73uusend: 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.
78mkdirs:
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
102uulib.a: ${COMMON}
103 rm -f $@
104 ar cr $@ `lorder ${COMMON} | tsort`
105 ranlib $@
106
107install: 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
138clean:
139 rm -f *.o ${ALL} uulib.a
140
141depend:
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
162anlwrk.o: anlwrk.c
163anlwrk.o: uucp.h
164anlwrk.o: /usr/include/sys/types.h
165anlwrk.o: /usr/include/sys/stat.h
11cfcb47 166anlwrk.o: /usr/include/sys/dir.h
11ece1e5
SL
167anyread.o: anyread.c
168anyread.o: uucp.h
169anyread.o: /usr/include/sys/types.h
170anyread.o: /usr/include/sys/stat.h
171assert.o: assert.c
172assert.o: uucp.h
11cfcb47 173assert.o: /usr/include/sys/time.h
11ece1e5
SL
174assert.o: /usr/include/sys/types.h
175assert.o: /usr/include/errno.h
176cfgets.o: cfgets.c
177cfgets.o: /usr/include/stdio.h
178chkpth.o: chkpth.c
179chkpth.o: uucp.h
180chkpth.o: /usr/include/sys/types.h
181chkpth.o: /usr/include/sys/stat.h
182cico.o: cico.c
183cico.o: uucp.h
184cico.o: /usr/include/signal.h
185cico.o: /usr/include/setjmp.h
186cico.o: /usr/include/sys/types.h
11ece1e5
SL
187cico.o: /usr/include/sgtty.h
188cntrl.o: cntrl.c
189cntrl.o: uucp.h
190cntrl.o: /usr/include/sys/types.h
191cntrl.o: /usr/include/sys/stat.h
192condevs.o: condevs.c
193condevs.o: /usr/include/sys/types.h
194condevs.o: /usr/include/errno.h
195condevs.o: /usr/include/setjmp.h
196condevs.o: /usr/include/signal.h
197condevs.o: /usr/include/sgtty.h
198condevs.o: uucp.h
11cfcb47 199condevs.o: /usr/include/sys/time.h
11ece1e5
SL
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
11cfcb47 207conn.o: /usr/include/sys/time.h
11ece1e5 208conn.o: /usr/include/errno.h
11ece1e5
SL
209conn.o: /usr/include/sgtty.h
210cpmv.o: cpmv.c
211cpmv.o: uucp.h
212cpmv.o: /usr/include/sys/types.h
213cpmv.o: /usr/include/sys/stat.h
214expfile.o: expfile.c
215expfile.o: uucp.h
216expfile.o: /usr/include/sys/types.h
217expfile.o: /usr/include/sys/stat.h
218gename.o: gename.c
219gename.o: uucp.h
220getargs.o: getargs.c
221getargs.o: /usr/include/stdio.h
222getopt.o: getopt.c
223getopt.o: /usr/include/stdio.h
224getprm.o: getprm.c
225getprm.o: /usr/include/stdio.h
226getpw.o: getpw.c
11cfcb47 227getpw.o: /usr/include/stdio.h
11ece1e5
SL
228getpwinfo.o: getpwinfo.c
229getpwinfo.o: uucp.h
230getpwinfo.o: /usr/include/pwd.h
231gio.o: gio.c
232gio.o: pk.p
233gio.o: /usr/include/sys/types.h
234gio.o: pk.h
235gio.o: /usr/include/setjmp.h
236gio.o: uucp.h
237gnamef.o: gnamef.c
238gnamef.o: uucp.h
239gnamef.o: /usr/include/sys/types.h
11cfcb47 240gnamef.o: /usr/include/sys/dir.h
11ece1e5
SL
241gnsys.o: gnsys.c
242gnsys.o: uucp.h
243gnsys.o: /usr/include/sys/types.h
11cfcb47 244gnsys.o: /usr/include/sys/dir.h
11ece1e5
SL
245gnxseq.o: gnxseq.c
246gnxseq.o: uucp.h
247gnxseq.o: /usr/include/sys/types.h
11cfcb47 248gnxseq.o: /usr/include/sys/time.h
11ece1e5
SL
249gwd.o: gwd.c
250gwd.o: uucp.h
251gwd.o: /usr/include/signal.h
252imsg.o: imsg.c
253imsg.o: uucp.h
254index.o: index.c
255index.o: /usr/include/stdio.h
256ioctl.o: ioctl.c
257ioctl.o: uucp.h
258ioctl.o: /usr/include/sgtty.h
259lastpart.o: lastpart.c
260logent.o: logent.c
261logent.o: uucp.h
262logent.o: /usr/include/sys/types.h
11cfcb47 263logent.o: /usr/include/sys/time.h
11ece1e5
SL
264logent.o: /usr/include/sgtty.h
265mailst.o: mailst.c
266mailst.o: uucp.h
267pk0.o: pk0.c
268pk0.o: /usr/include/stdio.h
11ece1e5
SL
269pk0.o: pk.p
270pk0.o: /usr/include/sys/param.h
271pk0.o: pk.h
272pk0.o: /usr/include/sys/buf.h
273pk1.o: pk1.c
274pk1.o: /usr/include/stdio.h
11ece1e5
SL
275pk1.o: pk.p
276pk1.o: /usr/include/sys/param.h
277pk1.o: pk.h
278pk1.o: /usr/include/sys/buf.h
279pk1.o: /usr/include/setjmp.h
280pk1.o: /usr/include/signal.h
281pkon.o: pkon.c
282prefix.o: prefix.c
283sdmail.o: sdmail.c
284sdmail.o: uucp.h
285sdmail.o: /usr/include/pwd.h
286setline.o: setline.c
287setline.o: uucp.h
11ece1e5
SL
288shio.o: shio.c
289shio.o: uucp.h
290shio.o: /usr/include/signal.h
291subdir.o: subdir.c
292subdir.o: uucp.h
293sysacct.o: sysacct.c
294sysacct.o: /usr/include/sys/types.h
295systat.o: systat.c
296systat.o: uucp.h
297systat.o: /usr/include/sys/types.h
298ulockf.o: ulockf.c
299ulockf.o: uucp.h
300ulockf.o: /usr/include/sys/types.h
301ulockf.o: /usr/include/sys/stat.h
302uuclean.o: uuclean.c
303uuclean.o: uucp.h
304uuclean.o: /usr/include/signal.h
305uuclean.o: /usr/include/pwd.h
306uuclean.o: /usr/include/sys/types.h
307uuclean.o: /usr/include/sys/stat.h
11cfcb47 308uuclean.o: /usr/include/sys/dir.h
11ece1e5
SL
309uucp.o: uucp.c
310uucp.o: uucp.h
311uucp.o: /usr/include/sys/types.h
312uucp.o: /usr/include/sys/stat.h
313uucpdefs.o: uucpdefs.c
314uucpdefs.o: uucp.h
315uucpname.o: uucpname.c
316uucpname.o: uucp.h
317uucpname.o: /usr/include/sys/types.h
318uucpname.o: /usr/include/sys/stat.h
11ece1e5
SL
319uudecode.o: uudecode.c
320uudecode.o: /usr/include/stdio.h
321uudecode.o: /usr/include/pwd.h
322uudecode.o: /usr/include/sys/types.h
323uudecode.o: /usr/include/sys/stat.h
324uuencode.o: uuencode.c
325uuencode.o: /usr/include/stdio.h
326uuencode.o: /usr/include/sys/types.h
327uuencode.o: /usr/include/sys/stat.h
328uulog.o: uulog.c
329uulog.o: uucp.h
330uuname.o: uuname.c
331uuname.o: uucp.h
332uuname.o: /usr/include/signal.h
333uupoll.o: uupoll.c
334uupoll.o: uucp.h
335uusend.o: uusend.c
336uusend.o: /usr/include/stdio.h
337uusend.o: /usr/include/pwd.h
338uusend.o: /usr/include/sys/types.h
339uusend.o: /usr/include/sys/stat.h
340uusnap.o: uusnap.c
341uusnap.o: uucp.h
342uusnap.o: /usr/include/sys/types.h
343uusnap.o: /usr/include/sys/stat.h
11cfcb47 344uusnap.o: /usr/include/sys/dir.h
11ece1e5
SL
345uux.o: uux.c
346uux.o: uucp.h
347uuxqt.o: uuxqt.c
348uuxqt.o: uucp.h
349uuxqt.o: /usr/include/sys/types.h
350uuxqt.o: /usr/include/sys/stat.h
11cfcb47 351uuxqt.o: /usr/include/sys/dir.h
11ece1e5
SL
352versys.o: versys.c
353versys.o: uucp.h
354xqt.o: xqt.c
355xqt.o: uucp.h
356xqt.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