|
|
1.1 root 1: #
2: # Copyright (c) 1988 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 this notice is preserved and that due credit is given
7: # to the University of California at Berkeley. The name of the University
8: # may not be used to endorse or promote products derived from this
9: # software without specific prior written permission. This software
10: # is provided ``as is'' without express or implied warranty.
11: #
12: # @(#)makefile 3.2 (Berkeley) 3/28/88
13: #
14: # msdos versus unix defines
15: O = .o
16: #PC_O = .obj
17:
18: X =
19: #PC_X = .exe
20:
21: L =
22: #PC_L = -link
23:
24: CC = cc
25: #PC_CC = cl
26:
27: MV = mv
28: #PC_MV = rename
29:
30: RM = rm -f
31: #PC_RM= erase
32:
33: LINT_ARGS =
34: #PC_LINT_ARGS = -DLINT_ARGS
35:
36: DEBUG_FLAGS = -g
37: #PC_DEBUG_FLAGS = -Zi -Od
38:
39: AR = ar
40: AR1 = cr
41: AR2 =
42: AR3 =
43: #PC_AR = lib
44: #PC_AR1 =
45: #PC_AR2 = +
46: #PC_AR3 = ";"
47:
48: RANLIB = ranlib
49: #PC_RANLIB = echo "Done with "
50:
51: PRINT = print
52:
53: DEFINES = ${LINT_ARGS}
54:
55: INCLUDES = -I.
56:
57: OPTIMIZE = -O
58: OPTIMIZE = ${DEBUG_FLAGS}
59:
60: CFLAGS = $(OPTIMIZE) $(INCLUDES) $(DEFINES)
61:
62: # Lint flags
63: LINTFLAGS = -hbxaz
64:
65: ALLH = spint.h termout.ext video.h
66:
67: ALLC = spintc.c system.c termout.c
68:
69: ALLASM = spintasm.asm support.asm
70:
71: ALLO = spintasm$O spintc$O support$O system$O termout$O
72:
73: ALLPRINT = ${ALLH} ${ALLASM} ${ALLC}
74:
75: ALLSOURCE = ${ALLPRINT} makefile makefile.mak
76:
77: .c.obj:
78: ${CC} ${CFLAGS} -c $<
79:
80: syslib.a: $(ALLO)
81: ${RM} $@
82: for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
83: ${RANLIB} $@
84:
85: clean:
86: for i in $(ALLO) errs makefile.bak syslib.a; \
87: do (${RM} $$i); done
88:
89: sccsclean:
90: -sccs clean
91: -sccs get makefile
92:
93: sourcelist: ${ALLSOURCE}
94: @for i in ${ALLSOURCE}; \
95: do (echo ${DIRPATH}$$i); done
96:
97: print:
98: ${PRINT} ${ALLPRINT}
99:
100: tags: ${ALLC} ${ALLH}
101: ctags -t ${ALLC} ${ALLH}
102:
103: action:
104: ${ACTION}
105:
106: lint:
107: lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} -DTN3270 \
108: ${TNMAIN} ${MOSTC} -lcurses
109: lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${MSMAIN} map3270.c -lcurses
110:
111: .DEFAULT:
112: sccs get $<
113:
114: depend:
115: grep '^#include' ${ALLC} ${ALLH} | grep -v '<' | \
116: sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
117: -e 's/\.c/$$O/' | \
118: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
119: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
120: else rec = rec " " $$2 } } \
121: END { print rec } ' > makedep
122: echo '$$r makedep' >>eddep
123: echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
124: echo '$$r makedep' >>eddep
125: echo 'w' >>eddep
126: -rm -f makefile.bak
127: cp makefile makefile.bak
128: ed - makefile < eddep
129: rm eddep makedep
130:
131: # DO NOT DELETE THIS LINE
132:
133: spintc$O: ../general/general.h spint.h
134: system$O: ../general/general.h ../ctlr/api.h spint.h ../general/globals.h
135: termout$O: ../general/general.h ../telnet.ext ../api/disp_asc.h
136: termout$O: ../ascii/map3270.ext ../ctlr/hostctlr.h ../ctlr/inbound.ext
137: termout$O: ../ctlr/oia.h ../ctlr/options.ext ../ctlr/outbound.ext
138: termout$O: ../ctlr/screen.h ../general/globals.h video.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.