Commit | Line | Data |
---|---|---|
7c8b73a9 GM |
1 | # |
2 | # Copyright (c) 1987 Regents of the University of California. | |
897ce52e | 3 | # All rights reserved. |
7c8b73a9 | 4 | # |
897ce52e | 5 | # Redistribution and use in source and binary forms are permitted |
16b6eaa3 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. | |
897ce52e | 16 | # |
f15b9bd0 | 17 | # @(#)Makefile 1.12 (Berkeley) %G% |
7c8b73a9 | 18 | # |
2b596e04 GM |
19 | |
20 | # The following is the telnet makefile. The sources are down one level | |
21 | # in directory "Source" because the sources are shared between telnet | |
22 | # and tn3270. | |
23 | ||
24 | VPATH = Source | |
25 | INCLUDES= -ISource | |
26 | CFLAGS= -O ${INCLUDES} | |
7c8b73a9 | 27 | LIBC= /lib/libc.a |
2b596e04 GM |
28 | SRCS= commands.c main.c network.c ring.c \ |
29 | sys_bsd.c sys_dos.c telnet.c terminal.c \ | |
30 | tn3270.c utilities.c | |
7c0cbe78 GM |
31 | |
32 | ALLHC= ${SRCS} \ | |
33 | Source/defines.h Source/externs.h Source/fdset.h Source/general.h \ | |
34 | Source/ring.h Source/types.h | |
35 | ||
7c8b73a9 GM |
36 | OBJS= commands.o main.o network.o ring.o sys_bsd.o sys_dos.o \ |
37 | telnet.o terminal.o tn3270.o utilities.o | |
38 | ||
39 | all: telnet | |
40 | ||
41 | telnet: ${OBJS} ${LIBC} | |
42 | ${CC} -o $@ ${CFLAGS} ${OBJS} | |
43 | ||
44 | clean: FRC | |
f15b9bd0 KB |
45 | rm -f ${OBJS} core errs l.errs telnet |
46 | ||
47 | cleandir: clean | |
48 | rm -f ${MAN} tags .depend | |
7c8b73a9 | 49 | |
7c0cbe78 GM |
50 | clist: FRC ${SRCS} |
51 | @for i in ${SRCS} ; \ | |
52 | do (echo ${DIRPATH}$$i); done | |
53 | ||
54 | hclist: FRC ${ALLHC} | |
55 | @for i in ${ALLHC} ; \ | |
56 | do (echo ${DIRPATH}$$i); done | |
57 | ||
2b596e04 | 58 | depend: FRC ${SRCS} |
7c0cbe78 | 59 | mkdep ${CFLAGS} `make clist` |
7c8b73a9 GM |
60 | |
61 | install: FRC | |
62 | install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/ucb/telnet | |
63 | ||
7c0cbe78 GM |
64 | lint: FRC ${SRCS} |
65 | lint ${CFLAGS} `make clist` | |
7c8b73a9 | 66 | |
7c0cbe78 GM |
67 | tags: FRC ${SRCS} |
68 | ctags `make hclist` | |
7c8b73a9 GM |
69 | |
70 | FRC: | |
71 | ||
72 | # DO NOT DELETE THIS LINE -- mkdep uses it. | |
73 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. | |
74 | ||
2b596e04 GM |
75 | commands.o: Source/commands.c /usr/include/sys/types.h |
76 | commands.o: /usr/include/sys/socket.h /usr/include/netinet/in.h | |
77 | commands.o: /usr/include/signal.h /usr/include/machine/trap.h | |
78 | commands.o: /usr/include/netdb.h /usr/include/ctype.h | |
79 | commands.o: /usr/include/arpa/telnet.h Source/ring.h Source/externs.h | |
80 | commands.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h | |
81 | commands.o: Source/types.h | |
82 | main.o: Source/main.c /usr/include/sys/types.h Source/ring.h Source/externs.h | |
83 | main.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h | |
84 | network.o: Source/network.c /usr/include/sys/types.h /usr/include/sys/socket.h | |
7c8b73a9 | 85 | network.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/errno.h |
2b596e04 GM |
86 | network.o: /usr/include/arpa/telnet.h Source/ring.h Source/defines.h |
87 | network.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h | |
88 | network.o: Source/fdset.h | |
89 | ring.o: Source/ring.c /usr/include/stdio.h /usr/include/errno.h | |
90 | ring.o: /usr/include/sys/types.h /usr/include/sys/ioctl.h | |
91 | ring.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
92 | ring.o: /usr/include/sys/socket.h Source/ring.h Source/general.h | |
93 | sys_bsd.o: Source/sys_bsd.c /usr/include/sys/ioctl.h | |
94 | sys_bsd.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h | |
95 | sys_bsd.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h | |
96 | sys_bsd.o: /usr/include/sys/socket.h /usr/include/signal.h | |
97 | sys_bsd.o: /usr/include/machine/trap.h /usr/include/errno.h Source/ring.h | |
98 | sys_bsd.o: Source/fdset.h Source/defines.h Source/externs.h | |
99 | sys_bsd.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h | |
100 | sys_dos.o: Source/sys_dos.c | |
101 | telnet.o: Source/telnet.c /usr/include/sys/types.h /usr/include/curses.h | |
102 | telnet.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h | |
7c8b73a9 | 103 | telnet.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h |
2b596e04 GM |
104 | telnet.o: /usr/include/arpa/telnet.h /usr/include/strings.h Source/ring.h |
105 | telnet.o: Source/defines.h Source/externs.h /usr/include/stdio.h | |
106 | telnet.o: /usr/include/setjmp.h Source/types.h Source/general.h | |
107 | telnet.o: /usr/include/varargs.h | |
108 | terminal.o: Source/terminal.c /usr/include/arpa/telnet.h | |
109 | terminal.o: /usr/include/sys/types.h Source/ring.h Source/externs.h | |
110 | terminal.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h | |
111 | tn3270.o: Source/tn3270.c Source/fdset.h | |
112 | utilities.o: Source/utilities.c /usr/include/arpa/telnet.h | |
113 | utilities.o: /usr/include/sys/types.h /usr/include/ctype.h Source/ring.h | |
114 | utilities.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h | |
7c8b73a9 GM |
115 | |
116 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |