Keep track of each side's idea of what the state of each option is.
[unix-history] / usr / src / usr.bin / telnet / Makefile
CommitLineData
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
24VPATH = Source
25INCLUDES= -ISource
26CFLAGS= -O ${INCLUDES}
7c8b73a9 27LIBC= /lib/libc.a
2b596e04
GM
28SRCS= 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
32ALLHC= ${SRCS} \
33 Source/defines.h Source/externs.h Source/fdset.h Source/general.h \
34 Source/ring.h Source/types.h
35
7c8b73a9
GM
36OBJS= commands.o main.o network.o ring.o sys_bsd.o sys_dos.o \
37 telnet.o terminal.o tn3270.o utilities.o
38
39all: telnet
40
41telnet: ${OBJS} ${LIBC}
42 ${CC} -o $@ ${CFLAGS} ${OBJS}
43
44clean: FRC
f15b9bd0
KB
45 rm -f ${OBJS} core errs l.errs telnet
46
47cleandir: clean
48 rm -f ${MAN} tags .depend
7c8b73a9 49
7c0cbe78
GM
50clist: FRC ${SRCS}
51 @for i in ${SRCS} ; \
52 do (echo ${DIRPATH}$$i); done
53
54hclist: FRC ${ALLHC}
55 @for i in ${ALLHC} ; \
56 do (echo ${DIRPATH}$$i); done
57
2b596e04 58depend: FRC ${SRCS}
7c0cbe78 59 mkdep ${CFLAGS} `make clist`
7c8b73a9
GM
60
61install: FRC
62 install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/ucb/telnet
63
7c0cbe78
GM
64lint: FRC ${SRCS}
65 lint ${CFLAGS} `make clist`
7c8b73a9 66
7c0cbe78
GM
67tags: FRC ${SRCS}
68 ctags `make hclist`
7c8b73a9
GM
69
70FRC:
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
75commands.o: Source/commands.c /usr/include/sys/types.h
76commands.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
77commands.o: /usr/include/signal.h /usr/include/machine/trap.h
78commands.o: /usr/include/netdb.h /usr/include/ctype.h
79commands.o: /usr/include/arpa/telnet.h Source/ring.h Source/externs.h
80commands.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h
81commands.o: Source/types.h
82main.o: Source/main.c /usr/include/sys/types.h Source/ring.h Source/externs.h
83main.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h
84network.o: Source/network.c /usr/include/sys/types.h /usr/include/sys/socket.h
7c8b73a9 85network.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/errno.h
2b596e04
GM
86network.o: /usr/include/arpa/telnet.h Source/ring.h Source/defines.h
87network.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h
88network.o: Source/fdset.h
89ring.o: Source/ring.c /usr/include/stdio.h /usr/include/errno.h
90ring.o: /usr/include/sys/types.h /usr/include/sys/ioctl.h
91ring.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
92ring.o: /usr/include/sys/socket.h Source/ring.h Source/general.h
93sys_bsd.o: Source/sys_bsd.c /usr/include/sys/ioctl.h
94sys_bsd.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
95sys_bsd.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
96sys_bsd.o: /usr/include/sys/socket.h /usr/include/signal.h
97sys_bsd.o: /usr/include/machine/trap.h /usr/include/errno.h Source/ring.h
98sys_bsd.o: Source/fdset.h Source/defines.h Source/externs.h
99sys_bsd.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h
100sys_dos.o: Source/sys_dos.c
101telnet.o: Source/telnet.c /usr/include/sys/types.h /usr/include/curses.h
102telnet.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
7c8b73a9 103telnet.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
2b596e04
GM
104telnet.o: /usr/include/arpa/telnet.h /usr/include/strings.h Source/ring.h
105telnet.o: Source/defines.h Source/externs.h /usr/include/stdio.h
106telnet.o: /usr/include/setjmp.h Source/types.h Source/general.h
107telnet.o: /usr/include/varargs.h
108terminal.o: Source/terminal.c /usr/include/arpa/telnet.h
109terminal.o: /usr/include/sys/types.h Source/ring.h Source/externs.h
110terminal.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h
111tn3270.o: Source/tn3270.c Source/fdset.h
112utilities.o: Source/utilities.c /usr/include/arpa/telnet.h
113utilities.o: /usr/include/sys/types.h /usr/include/ctype.h Source/ring.h
114utilities.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