Commit | Line | Data |
---|---|---|
d0aeaf5a | 1 | # |
51a16129 | 2 | # Copyright (c) 1987 Regents of the University of California. |
f9ac90b4 | 3 | # All rights reserved. |
d0aeaf5a | 4 | # |
f9ac90b4 | 5 | # Redistribution and use in source and binary forms are permitted |
b36fc510 KB |
6 | # provided that the above copyright notice and this paragraph are |
7 | # duplicated in all such forms and that any documentation, | |
8 | # advertising materials, and other materials related to such | |
9 | # distribution and use acknowledge that the software was developed | |
10 | # by the University of California, Berkeley. The name of the | |
11 | # University may not be used to endorse or promote products derived | |
12 | # from this software without specific prior written permission. | |
13 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR | |
14 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED | |
15 | # WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. | |
f9ac90b4 | 16 | # |
381444a9 | 17 | # @(#)Makefile 5.8 (Berkeley) %G% |
771a3d9d | 18 | # |
51a16129 KB |
19 | CFLAGS= -O |
20 | LIBC= /lib/libc.a | |
4fa2ac2d | 21 | SRCS= talk.c get_names.c display.c io.c ctl.c init_disp.c \ |
771a3d9d | 22 | msgs.c get_addrs.c ctl_transact.c invite.c look_up.c |
51a16129 KB |
23 | OBJS= talk.o get_names.o display.o io.o ctl.o init_disp.o \ |
24 | msgs.o get_addrs.o ctl_transact.o invite.o look_up.o | |
25 | ||
26 | all: talk | |
27 | ||
28 | talk: ${OBJS} ${LIBC} | |
29 | ${CC} -o $@ ${CFLAGS} ${OBJS} -lcurses -ltermlib | |
f82cf5c1 | 30 | |
51a16129 KB |
31 | clean: FRC |
32 | rm -f ${OBJS} core talk | |
f82cf5c1 | 33 | |
51a16129 KB |
34 | depend: FRC |
35 | mkdep ${CFLAGS} ${SRCS} | |
f82cf5c1 | 36 | |
51a16129 | 37 | install: FRC |
381444a9 | 38 | install -s -o bin -g bin -m 755 talk ${DESTDIR}/usr/ucb/talk |
f82cf5c1 | 39 | |
51a16129 KB |
40 | lint: FRC |
41 | lint ${CFLAGS} ${SRCS} | |
f82cf5c1 | 42 | |
51a16129 KB |
43 | tags: FRC |
44 | ctags ${SRCS} | |
4fa2ac2d | 45 | |
51a16129 | 46 | FRC: |
4fa2ac2d | 47 | |
51a16129 KB |
48 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
49 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
4fa2ac2d | 50 | |
f9ac90b4 KB |
51 | talk.o: talk.c talk.h /usr/include/curses.h /usr/include/stdio.h |
52 | talk.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
53 | talk.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h | |
51a16129 | 54 | talk.o: /usr/include/sys/ttydev.h /usr/include/utmp.h |
f9ac90b4 KB |
55 | get_names.o: get_names.c talk.h /usr/include/curses.h /usr/include/stdio.h |
56 | get_names.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
57 | get_names.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h | |
51a16129 KB |
58 | get_names.o: /usr/include/sys/ttydev.h /usr/include/utmp.h |
59 | get_names.o: /usr/include/sys/param.h /usr/include/sys/types.h | |
f9ac90b4 KB |
60 | get_names.o: /usr/include/signal.h /usr/include/machine/trap.h |
61 | get_names.o: /usr/include/machine/machparam.h /usr/include/machine/endian.h | |
51a16129 | 62 | get_names.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h |
f9ac90b4 KB |
63 | get_names.o: /usr/include/sys/socket.h /usr/include/pwd.h |
64 | display.o: display.c talk.h /usr/include/curses.h /usr/include/stdio.h | |
65 | display.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
66 | display.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h | |
51a16129 | 67 | display.o: /usr/include/sys/ttydev.h /usr/include/utmp.h |
f9ac90b4 KB |
68 | io.o: io.c talk.h /usr/include/curses.h /usr/include/stdio.h |
69 | io.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
70 | io.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h | |
71 | io.o: /usr/include/utmp.h /usr/include/stdio.h /usr/include/errno.h | |
72 | io.o: /usr/include/sys/time.h /usr/include/time.h | |
73 | ctl.o: ctl.c talk_ctl.h /usr/include/sys/types.h /usr/include/protocols/talkd.h | |
51a16129 | 74 | ctl.o: /usr/include/sys/types.h /usr/include/sys/socket.h |
f9ac90b4 KB |
75 | ctl.o: /usr/include/netinet/in.h talk.h /usr/include/curses.h |
76 | ctl.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
77 | ctl.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h | |
51a16129 | 78 | ctl.o: /usr/include/sys/ttydev.h /usr/include/utmp.h /usr/include/errno.h |
f9ac90b4 KB |
79 | init_disp.o: init_disp.c talk.h /usr/include/curses.h /usr/include/stdio.h |
80 | init_disp.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
81 | init_disp.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydefaults.h | |
51a16129 | 82 | init_disp.o: /usr/include/sys/ttydev.h /usr/include/utmp.h |
f9ac90b4 KB |
83 | init_disp.o: /usr/include/signal.h /usr/include/machine/trap.h |
84 | msgs.o: msgs.c /usr/include/signal.h /usr/include/machine/trap.h | |
85 | msgs.o: /usr/include/stdio.h /usr/include/sys/time.h /usr/include/time.h talk.h | |
51a16129 KB |
86 | msgs.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h |
87 | msgs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
f9ac90b4 KB |
88 | msgs.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h |
89 | msgs.o: /usr/include/utmp.h | |
90 | get_addrs.o: get_addrs.c talk_ctl.h /usr/include/sys/types.h | |
91 | get_addrs.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h | |
92 | get_addrs.o: /usr/include/sys/socket.h /usr/include/netinet/in.h talk.h | |
51a16129 KB |
93 | get_addrs.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h |
94 | get_addrs.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
f9ac90b4 KB |
95 | get_addrs.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h |
96 | get_addrs.o: /usr/include/utmp.h /usr/include/errno.h /usr/include/netdb.h | |
97 | ctl_transact.o: ctl_transact.c talk_ctl.h /usr/include/sys/types.h | |
98 | ctl_transact.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h | |
99 | ctl_transact.o: /usr/include/sys/socket.h /usr/include/netinet/in.h talk.h | |
51a16129 KB |
100 | ctl_transact.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h |
101 | ctl_transact.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
f9ac90b4 KB |
102 | ctl_transact.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h |
103 | ctl_transact.o: /usr/include/utmp.h /usr/include/errno.h | |
104 | ctl_transact.o: /usr/include/sys/time.h /usr/include/time.h | |
105 | invite.o: invite.c talk_ctl.h /usr/include/sys/types.h | |
106 | invite.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h | |
107 | invite.o: /usr/include/sys/socket.h /usr/include/netinet/in.h talk.h | |
51a16129 KB |
108 | invite.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h |
109 | invite.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
f9ac90b4 KB |
110 | invite.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h |
111 | invite.o: /usr/include/utmp.h /usr/include/errno.h /usr/include/sys/time.h | |
112 | invite.o: /usr/include/time.h /usr/include/signal.h /usr/include/machine/trap.h | |
51a16129 | 113 | invite.o: /usr/include/setjmp.h |
f9ac90b4 KB |
114 | look_up.o: look_up.c talk_ctl.h /usr/include/sys/types.h |
115 | look_up.o: /usr/include/protocols/talkd.h /usr/include/sys/types.h | |
116 | look_up.o: /usr/include/sys/socket.h /usr/include/netinet/in.h talk.h | |
51a16129 KB |
117 | look_up.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h |
118 | look_up.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
f9ac90b4 KB |
119 | look_up.o: /usr/include/sys/ttydefaults.h /usr/include/sys/ttydev.h |
120 | look_up.o: /usr/include/utmp.h /usr/include/errno.h | |
f82cf5c1 | 121 | |
51a16129 | 122 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |