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.13 (Berkeley) 05/11/89 18# 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} 27LIBC= /lib/libc.a 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 31 32ALLHC= ${SRCS} \ 33 Source/defines.h Source/externs.h Source/fdset.h Source/general.h \ 34 Source/ring.h Source/types.h 35 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 45 rm -f ${OBJS} core errs l.errs telnet 46 47cleandir: clean 48 rm -f ${MAN} tags .depend 49 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 58depend: FRC ${SRCS} 59 mkdep ${CFLAGS} `make clist` 60 61install: FRC 62 install -s -o bin -g bin -m 755 telnet ${DESTDIR}/usr/bin 63 64lint: FRC ${SRCS} 65 lint ${CFLAGS} `make clist` 66 67tags: FRC ${SRCS} 68 ctags `make hclist` 69 70FRC: 71