Commit | Line | Data |
---|---|---|
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 | 8 | DESTDIR= |
595cdd5e KM |
9 | OBJS= talkd.o announce.o process.o table.o print.o |
10 | SRCS= talkd.c announce.c process.c table.c print.c | |
f82cf5c1 MK |
11 | CFLAGS= -O |
12 | ||
595cdd5e | 13 | all: talkd |
f82cf5c1 | 14 | |
595cdd5e KM |
15 | talkd: ${OBJS} |
16 | cc ${CFLAGS} -o talkd ${OBJS} | |
f82cf5c1 | 17 | |
595cdd5e | 18 | install: talkd |
4eb6f392 | 19 | install -s talkd ${DESTDIR}/etc/ntalkd |
f82cf5c1 | 20 | |
f82cf5c1 | 21 | clean: |
595cdd5e | 22 | rm -f ${OBJS} errs core a.out talkd |
f82cf5c1 | 23 | |
595cdd5e KM |
24 | tags: ${SRCS} |
25 | ctags ${SOURCE} | |
91d646c5 KM |
26 | |
27 | depend: ${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 | ||
47 | talkd: talkd.c /usr/include/stdio.h /usr/include/errno.h /usr/include/signal.h | |
48 | talkd: /usr/include/syslog.h /usr/include/protocols/talkd.h | |
49 | talkd: /usr/include/sys/types.h /usr/include/sys/socket.h | |
50 | announce: announce.c /usr/include/sys/types.h /usr/include/sys/stat.h | |
51 | announce: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
52 | announce: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
53 | announce: /usr/include/sys/ioctl.h /usr/include/sys/time.h /usr/include/time.h | |
54 | announce: /usr/include/stdio.h /usr/include/sys/wait.h /usr/include/errno.h | |
55 | announce: /usr/include/syslog.h /usr/include/protocols/talkd.h | |
56 | announce: /usr/include/sys/types.h /usr/include/sys/socket.h | |
57 | process: process.c /usr/include/sys/types.h /usr/include/sys/stat.h | |
58 | process: /usr/include/stdio.h /usr/include/syslog.h /usr/include/netdb.h | |
59 | process: /usr/include/netinet/in.h /usr/include/protocols/talkd.h | |
60 | process: /usr/include/sys/types.h /usr/include/sys/socket.h /usr/include/utmp.h | |
61 | table: table.c /usr/include/stdio.h /usr/include/sys/time.h /usr/include/time.h | |
62 | table: /usr/include/syslog.h /usr/include/protocols/talkd.h | |
63 | table: /usr/include/sys/types.h /usr/include/sys/socket.h | |
64 | print: print.c /usr/include/stdio.h /usr/include/syslog.h | |
65 | print: /usr/include/protocols/talkd.h /usr/include/sys/types.h | |
66 | print: /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 |