avoid null ptr deref, from glenn@sun
[unix-history] / usr / src / libexec / talkd / Makefile
CommitLineData
d0aeaf5a
DF
1#
2# Copyright (c) 1983 Regents of the University of California.
3# All rights reserved. The Berkeley software License Agreement
4# specifies the terms and conditions for redistribution.
5#
4eb6f392 6# @(#)Makefile 5.4 (Berkeley) %G%
771a3d9d 7#
f82cf5c1 8DESTDIR=
595cdd5e
KM
9OBJS= talkd.o announce.o process.o table.o print.o
10SRCS= talkd.c announce.c process.c table.c print.c
f82cf5c1
MK
11CFLAGS= -O
12
595cdd5e 13all: talkd
f82cf5c1 14
595cdd5e
KM
15talkd: ${OBJS}
16 cc ${CFLAGS} -o talkd ${OBJS}
f82cf5c1 17
595cdd5e 18install: talkd
4eb6f392 19 install -s talkd ${DESTDIR}/etc/ntalkd
f82cf5c1 20
f82cf5c1 21clean:
595cdd5e 22 rm -f ${OBJS} errs core a.out talkd
f82cf5c1 23
595cdd5e
KM
24tags: ${SRCS}
25 ctags ${SOURCE}
91d646c5
KM
26
27depend: ${SRCS}
28 for i in ${SRCS}; do \
29 cc -M $$i | sed 's/\.o//' | \
30 awk ' { if ($$1 != prev) \
31 { if (rec != "") print rec; rec = $$0; prev = $$1; } \
32 else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
33 else rec = rec " " $$2 } } \
34 END { print rec } ' >> makedep; done
35 echo '/^# DO NOT DELETE THIS LINE/+2,$$d' >eddep
36 echo '$$r makedep' >>eddep
37 echo 'w' >>eddep
38 cp Makefile Makefile.bak
39 ed - Makefile < eddep
40 rm eddep makedep
41 echo '# DEPENDENCIES MUST END AT END OF FILE' >> Makefile
42 echo '# IF YOU PUT STUFF HERE IT WILL GO AWAY' >> Makefile
43 echo '# see make depend above' >> Makefile
44
45# DO NOT DELETE THIS LINE -- make depend uses it
46
47talkd: talkd.c /usr/include/stdio.h /usr/include/errno.h /usr/include/signal.h
48talkd: /usr/include/syslog.h /usr/include/protocols/talkd.h
49talkd: /usr/include/sys/types.h /usr/include/sys/socket.h
50announce: announce.c /usr/include/sys/types.h /usr/include/sys/stat.h
51announce: /usr/include/sgtty.h /usr/include/sys/ioctl.h
52announce: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
53announce: /usr/include/sys/ioctl.h /usr/include/sys/time.h /usr/include/time.h
54announce: /usr/include/stdio.h /usr/include/sys/wait.h /usr/include/errno.h
55announce: /usr/include/syslog.h /usr/include/protocols/talkd.h
56announce: /usr/include/sys/types.h /usr/include/sys/socket.h
57process: process.c /usr/include/sys/types.h /usr/include/sys/stat.h
58process: /usr/include/stdio.h /usr/include/syslog.h /usr/include/netdb.h
59process: /usr/include/netinet/in.h /usr/include/protocols/talkd.h
60process: /usr/include/sys/types.h /usr/include/sys/socket.h /usr/include/utmp.h
61table: table.c /usr/include/stdio.h /usr/include/sys/time.h /usr/include/time.h
62table: /usr/include/syslog.h /usr/include/protocols/talkd.h
63table: /usr/include/sys/types.h /usr/include/sys/socket.h
64print: print.c /usr/include/stdio.h /usr/include/syslog.h
65print: /usr/include/protocols/talkd.h /usr/include/sys/types.h
66print: /usr/include/sys/socket.h
67# DEPENDENCIES MUST END AT END OF FILE
68# IF YOU PUT STUFF HERE IT WILL GO AWAY
69# see make depend above