xref: /original-bsd/usr.bin/tn3270/telnet/Makefile (revision 2ce9ec30)
1# Copyright (c) 1987 Regents of the University of California.
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms are permitted
5# provided that this notice is preserved and that due credit is given
6# to the University of California at Berkeley. The name of the University
7# may not be used to endorse or promote products derived from this
8# software without specific prior written permission. This software
9# is provided ``as is'' without express or implied warranty.
10#
11#	@(#)Makefile	1.5 (Berkeley) 06/04/88
12#
13
14# The following is the telnet makefile for tn3270, using the shared telnet
15# sources.
16
17VPATH	=	../../telnet/Source
18XINCLUDES=	-I../../telnet/Source
19INCLUDES=	-I.
20XDEFINES	=	-DTN3270
21OPTIMIZE=	-O
22CFLAGS	=	${OPTIMIZE} ${INCLUDES} ${DEFINES}
23XCFLAGS=	${XINCLUDES} ${XDEFINES}
24LD	=	ld
25LDFLAGS	=	-r
26PRINT	= print
27ACTION = sccs tell
28LIBC=	/lib/libc.a
29ALLH=	defines.h externs.h fdset.h general.h ring.h types.h
30SRCS=	commands.c main.c network.c ring.c \
31	sys_bsd.c sys_dos.c telnet.c terminal.c \
32	tn3270.c utilities.c
33ALLHC=		${ALLH} ${SRCS}
34ALLPRINT =	${ALLHC}
35ALLSOURCE=	${ALLHC} Makefile Makefile_ultrix
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
39.c.o:
40	${CC} -c ${CFLAGS} ${XCFLAGS} $<
41
42telprog.o:	${OBJS} ${LIBC}
43	${LD} ${LDFLAGS} -o $@ ${OBJS}
44
45clean: FRC
46	rm -f telprog.o ${OBJS} core telnet
47
48depend: FRC ${SRCS}
49	mkdep ${CFLAGS} ${SRCS}
50
51lint: FRC ${SRCS}
52	lint ${CFLAGS} ${SRCS}
53
54tags: FRC ${ALLHC}
55	ctags ${ALLHC}
56
57print:	FRC ${ALLPRINT}
58	${PRINT} ${ALLPRINT}
59
60action: FRC
61	${ACTION}
62
63clist:	FRC ${SRCS}
64	@for i in ${SRCS} ; \
65		do (echo ${DIRPATH}$$i); done
66
67hclist:	FRC ${ALLHC}
68	@for i in ${ALLHC} ; \
69		do (echo ${DIRPATH}$$i); done
70
71sourcelist:	FRC ${ALLSOURCE}
72	@for i in ${ALLSOURCE} ../../telnet/Makefile ; \
73		do (echo ${DIRPATH}$$i); done
74
75FRC:
76
77# DO NOT DELETE THIS LINE -- mkdep uses it.
78# DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY.
79
80commands.o: ../../telnet/Source/commands.c /usr/include/sys/types.h
81commands.o: /usr/include/sys/socket.h /usr/include/netinet/in.h
82commands.o: /usr/include/signal.h /usr/include/machine/trap.h
83commands.o: /usr/include/netdb.h /usr/include/ctype.h
84commands.o: /usr/include/arpa/telnet.h ../../telnet/Source/ring.h
85commands.o: ../../telnet/Source/externs.h /usr/include/stdio.h
86commands.o: /usr/include/setjmp.h ../../telnet/Source/defines.h
87commands.o: ../../telnet/Source/types.h
88main.o: ../../telnet/Source/main.c /usr/include/sys/types.h
89main.o: ../../telnet/Source/ring.h ../../telnet/Source/externs.h
90main.o: /usr/include/stdio.h /usr/include/setjmp.h
91main.o: ../../telnet/Source/defines.h
92network.o: ../../telnet/Source/network.c /usr/include/sys/types.h
93network.o: /usr/include/sys/socket.h /usr/include/sys/time.h
94network.o: /usr/include/time.h /usr/include/errno.h /usr/include/arpa/telnet.h
95network.o: ../../telnet/Source/ring.h ../../telnet/Source/defines.h
96network.o: ../../telnet/Source/externs.h /usr/include/stdio.h
97network.o: /usr/include/setjmp.h ../../telnet/Source/fdset.h
98ring.o: ../../telnet/Source/ring.c /usr/include/stdio.h /usr/include/errno.h
99ring.o: /usr/include/sys/types.h /usr/include/sys/ioctl.h
100ring.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
101ring.o: /usr/include/sys/socket.h ../../telnet/Source/ring.h
102ring.o: ../../telnet/Source/general.h
103sys_bsd.o: ../../telnet/Source/sys_bsd.c /usr/include/sys/ioctl.h
104sys_bsd.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h
105sys_bsd.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h
106sys_bsd.o: /usr/include/sys/socket.h /usr/include/signal.h
107sys_bsd.o: /usr/include/machine/trap.h /usr/include/errno.h
108sys_bsd.o: ../../telnet/Source/ring.h ../../telnet/Source/fdset.h
109sys_bsd.o: ../../telnet/Source/defines.h ../../telnet/Source/externs.h
110sys_bsd.o: /usr/include/stdio.h /usr/include/setjmp.h
111sys_bsd.o: ../../telnet/Source/types.h
112sys_dos.o: ../../telnet/Source/sys_dos.c
113telnet.o: ../../telnet/Source/telnet.c /usr/include/sys/types.h
114telnet.o: /usr/include/curses.h /usr/include/stdio.h /usr/include/sgtty.h
115telnet.o: /usr/include/sys/ioctl.h /usr/include/sys/ttychars.h
116telnet.o: /usr/include/sys/ttydev.h /usr/include/arpa/telnet.h
117telnet.o: /usr/include/strings.h ../../telnet/Source/ring.h
118telnet.o: ../../telnet/Source/defines.h ../../telnet/Source/externs.h
119telnet.o: /usr/include/stdio.h /usr/include/setjmp.h
120telnet.o: ../../telnet/Source/types.h ../../telnet/Source/general.h
121telnet.o: /usr/include/varargs.h
122terminal.o: ../../telnet/Source/terminal.c /usr/include/arpa/telnet.h
123terminal.o: /usr/include/sys/types.h ../../telnet/Source/ring.h
124terminal.o: ../../telnet/Source/externs.h /usr/include/stdio.h
125terminal.o: /usr/include/setjmp.h ../../telnet/Source/types.h
126tn3270.o: ../../telnet/Source/tn3270.c ../../telnet/Source/fdset.h
127utilities.o: ../../telnet/Source/utilities.c /usr/include/arpa/telnet.h
128utilities.o: /usr/include/sys/types.h /usr/include/ctype.h
129utilities.o: ../../telnet/Source/ring.h ../../telnet/Source/externs.h
130utilities.o: /usr/include/stdio.h /usr/include/setjmp.h
131
132# IF YOU PUT ANYTHING HERE IT WILL GO AWAY
133