Commit | Line | Data |
---|---|---|
7c8b73a9 GM |
1 | # |
2 | # Copyright (c) 1987 Regents of the University of California. | |
897ce52e | 3 | # All rights reserved. |
7c8b73a9 | 4 | # |
897ce52e KB |
5 | # Redistribution and use in source and binary forms are permitted |
6 | # provided that this notice is preserved and that due credit is given | |
7 | # to the University of California at Berkeley. The name of the University | |
8 | # may not be used to endorse or promote products derived from this | |
9 | # software without specific prior written permission. This software | |
10 | # is provided ``as is'' without express or implied warranty. | |
11 | # | |
12 | # @(#)Makefile 1.7 (Berkeley) %G% | |
7c8b73a9 GM |
13 | # |
14 | CFLAGS= -O | |
15 | LIBC= /lib/libc.a | |
16 | SRCS= commands.c main.c network.c ring.c sys_bsd.c sys_dos.c \ | |
17 | telnet.c terminal.c tn3270.c utilities.c | |
18 | OBJS= commands.o main.o network.o ring.o sys_bsd.o sys_dos.o \ | |
19 | telnet.o terminal.o tn3270.o utilities.o | |
20 | ||
21 | all: telnet | |
22 | ||
23 | telnet: ${OBJS} ${LIBC} | |
24 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
25 | ||
26 | clean: FRC | |
27 | rm -f ${OBJS} core telnet | |
28 | ||
29 | depend: FRC | |
30 | mkdep ${CFLAGS} ${SRCS} | |
31 | ||
32 | install: FRC | |
33 | install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/ucb/telnet | |
34 | ||
35 | lint: FRC | |
36 | lint ${CFLAGS} ${SRCS} | |
37 | ||
38 | tags: FRC | |
39 | ctags ${SRCS} | |
40 | ||
41 | FRC: | |
42 | ||
43 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
44 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
45 | ||
46 | commands.o: commands.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
47 | commands.o: /usr/include/netinet/in.h /usr/include/signal.h | |
48 | commands.o: /usr/include/machine/trap.h /usr/include/netdb.h | |
49 | commands.o: /usr/include/ctype.h /usr/include/arpa/telnet.h externs.h | |
50 | commands.o: /usr/include/stdio.h /usr/include/setjmp.h defines.h types.h | |
51 | main.o: main.c externs.h /usr/include/stdio.h /usr/include/setjmp.h defines.h | |
52 | network.o: network.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
53 | network.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/errno.h | |
54 | network.o: /usr/include/arpa/telnet.h defines.h externs.h /usr/include/stdio.h | |
55 | network.o: /usr/include/setjmp.h | |
56 | sys_bsd.o: sys_bsd.c /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h | |
57 | sys_bsd.o: /usr/include/sys/ttydev.h /usr/include/sys/time.h | |
58 | sys_bsd.o: /usr/include/time.h /usr/include/signal.h | |
59 | sys_bsd.o: /usr/include/machine/trap.h defines.h externs.h /usr/include/stdio.h | |
60 | sys_bsd.o: /usr/include/setjmp.h types.h | |
61 | sys_dos.o: sys_dos.c | |
62 | telnet.o: telnet.c /usr/include/sys/types.h /usr/include/sys/time.h | |
63 | telnet.o: /usr/include/time.h /usr/include/sys/socket.h | |
64 | telnet.o: /usr/include/netinet/in.h /usr/include/curses.h /usr/include/stdio.h | |
65 | telnet.o: /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
66 | telnet.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
67 | telnet.o: /usr/include/arpa/telnet.h /usr/include/arpa/inet.h | |
68 | telnet.o: /usr/include/ctype.h /usr/include/errno.h /usr/include/netdb.h | |
69 | telnet.o: /usr/include/strings.h defines.h externs.h /usr/include/stdio.h | |
70 | telnet.o: /usr/include/setjmp.h types.h general.h | |
71 | terminal.o: terminal.c /usr/include/arpa/telnet.h externs.h | |
72 | terminal.o: /usr/include/stdio.h /usr/include/setjmp.h types.h | |
73 | tn3270.o: tn3270.c | |
74 | utilities.o: utilities.c /usr/include/arpa/telnet.h /usr/include/ctype.h | |
75 | utilities.o: externs.h /usr/include/stdio.h /usr/include/setjmp.h | |
76 | ||
77 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |