Add diclaimer of copyright to _osname() manual page.
[unix-history] / usr.bin / tn3270 / telnet / Makefile
CommitLineData
15637ed4
RG
1# @(#)Makefile 4.5 (Berkeley) 4/26/91
2
3# The following is the telnet makefile for tn3270, using the shared telnet
4# sources.
5
6#
7# TERMCAP Define this if your system is termcap based,
8# otherwise a terminfo based system is assumed.
9#
10# SRCRT Includes code to allow you to specify source routes.
11# Format is:
12# [!]@hop1@hop2...[@|:]dst
13# Leading ! means strict source route.
14#
15# NOSTRNCASECMP Define this if you do not have strncasecmp() in
16# your C libarary.
17#
18# USE_TERMIO Define this if you have System V termio structures.
19# What is here is how things are on Cray computers.
20#
21# KLUDGELINEMODE Define this to get the kludged up version of linemode
22# that was in 4.3BSD. This is a good thing to have
23# around for talking to older systems.
24#
25
26DEFINES= -DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO
27
28
29VPATH = ${.CURDIR}/../../telnet
30XINCLUDES= -I${.CURDIR}/../../telnet -I${.CURDIR}
31INCLUDES=
32XDEFINES = -DTN3270
33OPTIMIZE= -O
34CFLAGS = ${OPTIMIZE} ${INCLUDES} ${DEFINES}
35XCFLAGS= ${XINCLUDES} ${XDEFINES}
36LD = ld
37LDFLAGS = -r
38PRINT = print
39ACTION = sccs tell
40LIBC= /usr/lib/libc.a
41ALLH= defines.h externs.h fdset.h general.h ring.h types.h
42SRCS= commands.c main.c network.c ring.c \
43 sys_bsd.c telnet.c terminal.c \
44 tn3270.c utilities.c
45ALLHC= ${ALLH} ${SRCS}
46ALLPRINT = ${ALLHC}
47ALLSOURCE= ${ALLHC} Makefile Makefile_ultrix
48OBJS= commands.o main.o network.o ring.o sys_bsd.o \
49 telnet.o terminal.o tn3270.o utilities.o
50
51.c.o:
52 ${CC} -c ${CFLAGS} ${XCFLAGS} $<
53
54telprog.o: ${OBJS} ${LIBC}
55 ${LD} ${LDFLAGS} -o $@ ${OBJS}
56
57clean: FRC
58 rm -f telprog.o ${OBJS} core telnet
59
60depend: FRC ${SRCS}
61 mkdep ${CFLAGS} ${SRCS}
62
63lint: FRC ${SRCS}
64 lint ${CFLAGS} ${SRCS}
65
66tags: FRC ${ALLHC}
67 ctags ${ALLHC}
68
69print: FRC ${ALLPRINT}
70 ${PRINT} ${ALLPRINT}
71
72action: FRC
73 ${ACTION}
74
75clist: FRC ${SRCS}
76 @for i in ${SRCS} ; \
77 do (echo ${DIRPATH}$$i); done
78
79hclist: FRC ${ALLHC}
80 @for i in ${ALLHC} ; \
81 do (echo ${DIRPATH}$$i); done
82
83sourcelist: FRC ${ALLSOURCE}
84 @for i in ${ALLSOURCE} ../../telnet/Makefile ; \
85 do (echo ${DIRPATH}$$i); done
86
87FRC: