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