use herror
[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#
16b6eaa3 17# @(#)Makefile 1.11 (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
437044fe 45 rm -f ${OBJS} core errs l.errs tags telnet
7c8b73a9 46
7c0cbe78
GM
47clist: FRC ${SRCS}
48 @for i in ${SRCS} ; \
49 do (echo ${DIRPATH}$$i); done
50
51hclist: FRC ${ALLHC}
52 @for i in ${ALLHC} ; \
53 do (echo ${DIRPATH}$$i); done
54
2b596e04 55depend: FRC ${SRCS}
7c0cbe78 56 mkdep ${CFLAGS} `make clist`
7c8b73a9
GM
57
58install: FRC
59 install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/ucb/telnet
60
7c0cbe78
GM
61lint: FRC ${SRCS}
62 lint ${CFLAGS} `make clist`
7c8b73a9 63
7c0cbe78
GM
64tags: FRC ${SRCS}
65 ctags `make hclist`
7c8b73a9
GM
66
67FRC:
68
69# DO NOT DELETE THIS LINE -- mkdep uses it.
70# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
71
2b596e04
GM
72commands.o: Source/commands.c /usr/include/sys/types.h
73commands.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
74commands.o: /usr/include/signal.h /usr/include/machine/trap.h
75commands.o: /usr/include/netdb.h /usr/include/ctype.h
76commands.o: /usr/include/arpa/telnet.h Source/ring.h Source/externs.h
77commands.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h
78commands.o: Source/types.h
79main.o: Source/main.c /usr/include/sys/types.h Source/ring.h Source/externs.h
80main.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h
81network.o: Source/network.c /usr/include/sys/types.h /usr/include/sys/socket.h
7c8b73a9 82network.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/errno.h
2b596e04
GM
83network.o: /usr/include/arpa/telnet.h Source/ring.h Source/defines.h
84network.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h
85network.o: Source/fdset.h
86ring.o: Source/ring.c /usr/include/stdio.h /usr/include/errno.h
87ring.o: /usr/include/sys/types.h /usr/include/sys/ioctl.h
88ring.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
89ring.o: /usr/include/sys/socket.h Source/ring.h Source/general.h
90sys_bsd.o: Source/sys_bsd.c /usr/include/sys/ioctl.h
91sys_bsd.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
92sys_bsd.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
93sys_bsd.o: /usr/include/sys/socket.h /usr/include/signal.h
94sys_bsd.o: /usr/include/machine/trap.h /usr/include/errno.h Source/ring.h
95sys_bsd.o: Source/fdset.h Source/defines.h Source/externs.h
96sys_bsd.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h
97sys_dos.o: Source/sys_dos.c
98telnet.o: Source/telnet.c /usr/include/sys/types.h /usr/include/curses.h
99telnet.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h
7c8b73a9 100telnet.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
2b596e04
GM
101telnet.o: /usr/include/arpa/telnet.h /usr/include/strings.h Source/ring.h
102telnet.o: Source/defines.h Source/externs.h /usr/include/stdio.h
103telnet.o: /usr/include/setjmp.h Source/types.h Source/general.h
104telnet.o: /usr/include/varargs.h
105terminal.o: Source/terminal.c /usr/include/arpa/telnet.h
106terminal.o: /usr/include/sys/types.h Source/ring.h Source/externs.h
107terminal.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h
108tn3270.o: Source/tn3270.c Source/fdset.h
109utilities.o: Source/utilities.c /usr/include/arpa/telnet.h
110utilities.o: /usr/include/sys/types.h /usr/include/ctype.h Source/ring.h
111utilities.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h
7c8b73a9
GM
112
113# IF YOU PUT ANYTHING HERE IT WILL GO AWAY