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 | # | |
2b596e04 | 12 | # @(#)Makefile 1.8 (Berkeley) %G% |
7c8b73a9 | 13 | # |
2b596e04 GM |
14 | |
15 | # The following is the telnet makefile. The sources are down one level | |
16 | # in directory "Source" because the sources are shared between telnet | |
17 | # and tn3270. | |
18 | ||
19 | VPATH = Source | |
20 | INCLUDES= -ISource | |
21 | CFLAGS= -O ${INCLUDES} | |
7c8b73a9 | 22 | LIBC= /lib/libc.a |
2b596e04 GM |
23 | SRCS= commands.c main.c network.c ring.c \ |
24 | sys_bsd.c sys_dos.c telnet.c terminal.c \ | |
25 | tn3270.c utilities.c | |
7c8b73a9 GM |
26 | OBJS= commands.o main.o network.o ring.o sys_bsd.o sys_dos.o \ |
27 | telnet.o terminal.o tn3270.o utilities.o | |
28 | ||
29 | all: telnet | |
30 | ||
31 | telnet: ${OBJS} ${LIBC} | |
32 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
33 | ||
34 | clean: FRC | |
35 | rm -f ${OBJS} core telnet | |
36 | ||
2b596e04 | 37 | depend: FRC ${SRCS} |
7c8b73a9 GM |
38 | mkdep ${CFLAGS} ${SRCS} |
39 | ||
40 | install: FRC | |
41 | install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/ucb/telnet | |
42 | ||
43 | lint: FRC | |
44 | lint ${CFLAGS} ${SRCS} | |
45 | ||
46 | tags: FRC | |
47 | ctags ${SRCS} | |
48 | ||
49 | FRC: | |
50 | ||
51 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
52 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
53 | ||
2b596e04 GM |
54 | commands.o: Source/commands.c /usr/include/sys/types.h |
55 | commands.o: /usr/include/sys/socket.h /usr/include/netinet/in.h | |
56 | commands.o: /usr/include/signal.h /usr/include/machine/trap.h | |
57 | commands.o: /usr/include/netdb.h /usr/include/ctype.h | |
58 | commands.o: /usr/include/arpa/telnet.h Source/ring.h Source/externs.h | |
59 | commands.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h | |
60 | commands.o: Source/types.h | |
61 | main.o: Source/main.c /usr/include/sys/types.h Source/ring.h Source/externs.h | |
62 | main.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h | |
63 | network.o: Source/network.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
7c8b73a9 | 64 | network.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/errno.h |
2b596e04 GM |
65 | network.o: /usr/include/arpa/telnet.h Source/ring.h Source/defines.h |
66 | network.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h | |
67 | network.o: Source/fdset.h | |
68 | ring.o: Source/ring.c /usr/include/stdio.h /usr/include/errno.h | |
69 | ring.o: /usr/include/sys/types.h /usr/include/sys/ioctl.h | |
70 | ring.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
71 | ring.o: /usr/include/sys/socket.h Source/ring.h Source/general.h | |
72 | sys_bsd.o: Source/sys_bsd.c /usr/include/sys/ioctl.h | |
73 | sys_bsd.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
74 | sys_bsd.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h | |
75 | sys_bsd.o: /usr/include/sys/socket.h /usr/include/signal.h | |
76 | sys_bsd.o: /usr/include/machine/trap.h /usr/include/errno.h Source/ring.h | |
77 | sys_bsd.o: Source/fdset.h Source/defines.h Source/externs.h | |
78 | sys_bsd.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h | |
79 | sys_dos.o: Source/sys_dos.c | |
80 | telnet.o: Source/telnet.c /usr/include/sys/types.h /usr/include/curses.h | |
81 | telnet.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
7c8b73a9 | 82 | telnet.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h |
2b596e04 GM |
83 | telnet.o: /usr/include/arpa/telnet.h /usr/include/strings.h Source/ring.h |
84 | telnet.o: Source/defines.h Source/externs.h /usr/include/stdio.h | |
85 | telnet.o: /usr/include/setjmp.h Source/types.h Source/general.h | |
86 | telnet.o: /usr/include/varargs.h | |
87 | terminal.o: Source/terminal.c /usr/include/arpa/telnet.h | |
88 | terminal.o: /usr/include/sys/types.h Source/ring.h Source/externs.h | |
89 | terminal.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h | |
90 | tn3270.o: Source/tn3270.c Source/fdset.h | |
91 | utilities.o: Source/utilities.c /usr/include/arpa/telnet.h | |
92 | utilities.o: /usr/include/sys/types.h /usr/include/ctype.h Source/ring.h | |
93 | utilities.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h | |
7c8b73a9 GM |
94 | |
95 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |