|
|
1.1 root 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) 6/6/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:
43: DEFINES= -DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO
44:
45:
46: VPATH = ${.CURDIR}/../../telnet
47: XINCLUDES= -I${.CURDIR}/../../telnet -I${.CURDIR}
48: INCLUDES=
49: XDEFINES = -DTN3270
50: OPTIMIZE= -O
51: CFLAGS = ${OPTIMIZE} ${INCLUDES} ${DEFINES}
52: XCFLAGS= ${XINCLUDES} ${XDEFINES}
53: LD = ld
54: LDFLAGS = -r
55: PRINT = print
56: ACTION = sccs tell
57: LIBC= /usr/lib/libc.a
58: ALLH= defines.h externs.h fdset.h general.h ring.h types.h
59: SRCS= commands.c main.c network.c ring.c \
60: sys_bsd.c telnet.c terminal.c \
61: tn3270.c utilities.c
62: ALLHC= ${ALLH} ${SRCS}
63: ALLPRINT = ${ALLHC}
64: ALLSOURCE= ${ALLHC} Makefile Makefile_ultrix
65: OBJS= 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:
71: telprog.o: ${OBJS} ${LIBC}
72: ${LD} ${LDFLAGS} -o $@ ${OBJS}
73:
74: clean: FRC
75: rm -f telprog.o ${OBJS} core telnet
76:
77: depend: FRC ${SRCS}
78: mkdep ${CFLAGS} ${SRCS}
79:
80: lint: FRC ${SRCS}
81: lint ${CFLAGS} ${SRCS}
82:
83: tags: FRC ${ALLHC}
84: ctags ${ALLHC}
85:
86: print: FRC ${ALLPRINT}
87: ${PRINT} ${ALLPRINT}
88:
89: action: FRC
90: ${ACTION}
91:
92: clist: FRC ${SRCS}
93: @for i in ${SRCS} ; \
94: do (echo ${DIRPATH}$$i); done
95:
96: hclist: FRC ${ALLHC}
97: @for i in ${ALLHC} ; \
98: do (echo ${DIRPATH}$$i); done
99:
100: sourcelist: FRC ${ALLSOURCE}
101: @for i in ${ALLSOURCE} ../../telnet/Makefile ; \
102: do (echo ${DIRPATH}$$i); done
103:
104: FRC:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.