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