Commit | Line | Data |
---|---|---|
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 | ||
26 | DEFINES= -DTERMCAP -DSRCRT -DKLUDGELINEMODE -DUSE_TERMIO | |
27 | ||
28 | ||
29 | VPATH = ${.CURDIR}/../../telnet | |
30 | XINCLUDES= -I${.CURDIR}/../../telnet -I${.CURDIR} | |
31 | INCLUDES= | |
32 | XDEFINES = -DTN3270 | |
33 | OPTIMIZE= -O | |
34 | CFLAGS = ${OPTIMIZE} ${INCLUDES} ${DEFINES} | |
35 | XCFLAGS= ${XINCLUDES} ${XDEFINES} | |
36 | LD = ld | |
37 | LDFLAGS = -r | |
38 | PRINT = print | |
39 | ACTION = sccs tell | |
40 | LIBC= /usr/lib/libc.a | |
41 | ALLH= defines.h externs.h fdset.h general.h ring.h types.h | |
42 | SRCS= commands.c main.c network.c ring.c \ | |
43 | sys_bsd.c telnet.c terminal.c \ | |
44 | tn3270.c utilities.c | |
45 | ALLHC= ${ALLH} ${SRCS} | |
46 | ALLPRINT = ${ALLHC} | |
47 | ALLSOURCE= ${ALLHC} Makefile Makefile_ultrix | |
48 | OBJS= 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 | ||
54 | telprog.o: ${OBJS} ${LIBC} | |
55 | ${LD} ${LDFLAGS} -o $@ ${OBJS} | |
56 | ||
57 | clean: FRC | |
58 | rm -f telprog.o ${OBJS} core telnet | |
59 | ||
60 | depend: FRC ${SRCS} | |
61 | mkdep ${CFLAGS} ${SRCS} | |
62 | ||
63 | lint: FRC ${SRCS} | |
64 | lint ${CFLAGS} ${SRCS} | |
65 | ||
66 | tags: FRC ${ALLHC} | |
67 | ctags ${ALLHC} | |
68 | ||
69 | print: FRC ${ALLPRINT} | |
70 | ${PRINT} ${ALLPRINT} | |
71 | ||
72 | action: FRC | |
73 | ${ACTION} | |
74 | ||
75 | clist: FRC ${SRCS} | |
76 | @for i in ${SRCS} ; \ | |
77 | do (echo ${DIRPATH}$$i); done | |
78 | ||
79 | hclist: FRC ${ALLHC} | |
80 | @for i in ${ALLHC} ; \ | |
81 | do (echo ${DIRPATH}$$i); done | |
82 | ||
83 | sourcelist: FRC ${ALLSOURCE} | |
84 | @for i in ${ALLSOURCE} ../../telnet/Makefile ; \ | |
85 | do (echo ${DIRPATH}$$i); done | |
86 | ||
87 | FRC: |