| 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 this notice is preserved and that due credit is given |
| 7 | # to the University of California at Berkeley. The name of the University |
| 8 | # may not be used to endorse or promote products derived from this |
| 9 | # software without specific prior written permission. This software |
| 10 | # is provided ``as is'' without express or implied warranty. |
| 11 | # |
| 12 | # @(#)Makefile 1.10 (Berkeley) %G% |
| 13 | # |
| 14 | |
| 15 | # The following is the telnet makefile. The sources are down one level |
| 16 | # in directory "Source" because the sources are shared between telnet |
| 17 | # and tn3270. |
| 18 | |
| 19 | VPATH = Source |
| 20 | INCLUDES= -ISource |
| 21 | CFLAGS= -O ${INCLUDES} |
| 22 | LIBC= /lib/libc.a |
| 23 | SRCS= commands.c main.c network.c ring.c \ |
| 24 | sys_bsd.c sys_dos.c telnet.c terminal.c \ |
| 25 | tn3270.c utilities.c |
| 26 | |
| 27 | ALLHC= ${SRCS} \ |
| 28 | Source/defines.h Source/externs.h Source/fdset.h Source/general.h \ |
| 29 | Source/ring.h Source/types.h |
| 30 | |
| 31 | OBJS= commands.o main.o network.o ring.o sys_bsd.o sys_dos.o \ |
| 32 | telnet.o terminal.o tn3270.o utilities.o |
| 33 | |
| 34 | all: telnet |
| 35 | |
| 36 | telnet: ${OBJS} ${LIBC} |
| 37 | ${CC} -o $@ ${CFLAGS} ${OBJS} |
| 38 | |
| 39 | clean: FRC |
| 40 | rm -f ${OBJS} core errs l.errs tags telnet |
| 41 | |
| 42 | clist: FRC ${SRCS} |
| 43 | @for i in ${SRCS} ; \ |
| 44 | do (echo ${DIRPATH}$$i); done |
| 45 | |
| 46 | hclist: FRC ${ALLHC} |
| 47 | @for i in ${ALLHC} ; \ |
| 48 | do (echo ${DIRPATH}$$i); done |
| 49 | |
| 50 | depend: FRC ${SRCS} |
| 51 | mkdep ${CFLAGS} `make clist` |
| 52 | |
| 53 | install: FRC |
| 54 | install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/ucb/telnet |
| 55 | |
| 56 | lint: FRC ${SRCS} |
| 57 | lint ${CFLAGS} `make clist` |
| 58 | |
| 59 | tags: FRC ${SRCS} |
| 60 | ctags `make hclist` |
| 61 | |
| 62 | FRC: |
| 63 | |
| 64 | # DO NOT DELETE THIS LINE -- mkdep uses it. |
| 65 | # DO NOT PUT ANYTHING AFTER THIS LINE, IT WILL GO AWAY. |
| 66 | |
| 67 | commands.o: Source/commands.c /usr/include/sys/types.h |
| 68 | commands.o: /usr/include/sys/socket.h /usr/include/netinet/in.h |
| 69 | commands.o: /usr/include/signal.h /usr/include/machine/trap.h |
| 70 | commands.o: /usr/include/netdb.h /usr/include/ctype.h |
| 71 | commands.o: /usr/include/arpa/telnet.h Source/ring.h Source/externs.h |
| 72 | commands.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h |
| 73 | commands.o: Source/types.h |
| 74 | main.o: Source/main.c /usr/include/sys/types.h Source/ring.h Source/externs.h |
| 75 | main.o: /usr/include/stdio.h /usr/include/setjmp.h Source/defines.h |
| 76 | network.o: Source/network.c /usr/include/sys/types.h /usr/include/sys/socket.h |
| 77 | network.o: /usr/include/sys/time.h /usr/include/time.h /usr/include/errno.h |
| 78 | network.o: /usr/include/arpa/telnet.h Source/ring.h Source/defines.h |
| 79 | network.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h |
| 80 | network.o: Source/fdset.h |
| 81 | ring.o: Source/ring.c /usr/include/stdio.h /usr/include/errno.h |
| 82 | ring.o: /usr/include/sys/types.h /usr/include/sys/ioctl.h |
| 83 | ring.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h |
| 84 | ring.o: /usr/include/sys/socket.h Source/ring.h Source/general.h |
| 85 | sys_bsd.o: Source/sys_bsd.c /usr/include/sys/ioctl.h |
| 86 | sys_bsd.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h |
| 87 | sys_bsd.o: /usr/include/sys/types.h /usr/include/sys/time.h /usr/include/time.h |
| 88 | sys_bsd.o: /usr/include/sys/socket.h /usr/include/signal.h |
| 89 | sys_bsd.o: /usr/include/machine/trap.h /usr/include/errno.h Source/ring.h |
| 90 | sys_bsd.o: Source/fdset.h Source/defines.h Source/externs.h |
| 91 | sys_bsd.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h |
| 92 | sys_dos.o: Source/sys_dos.c |
| 93 | telnet.o: Source/telnet.c /usr/include/sys/types.h /usr/include/curses.h |
| 94 | telnet.o: /usr/include/stdio.h /usr/include/sgtty.h /usr/include/sys/ioctl.h |
| 95 | telnet.o: /usr/include/sys/ttychars.h /usr/include/sys/ttydev.h |
| 96 | telnet.o: /usr/include/arpa/telnet.h /usr/include/strings.h Source/ring.h |
| 97 | telnet.o: Source/defines.h Source/externs.h /usr/include/stdio.h |
| 98 | telnet.o: /usr/include/setjmp.h Source/types.h Source/general.h |
| 99 | telnet.o: /usr/include/varargs.h |
| 100 | terminal.o: Source/terminal.c /usr/include/arpa/telnet.h |
| 101 | terminal.o: /usr/include/sys/types.h Source/ring.h Source/externs.h |
| 102 | terminal.o: /usr/include/stdio.h /usr/include/setjmp.h Source/types.h |
| 103 | tn3270.o: Source/tn3270.c Source/fdset.h |
| 104 | utilities.o: Source/utilities.c /usr/include/arpa/telnet.h |
| 105 | utilities.o: /usr/include/sys/types.h /usr/include/ctype.h Source/ring.h |
| 106 | utilities.o: Source/externs.h /usr/include/stdio.h /usr/include/setjmp.h |
| 107 | |
| 108 | # IF YOU PUT ANYTHING HERE IT WILL GO AWAY |