|
|
1.1 root 1: # variables...
2: O = .obj
3: X = .exe
4: L = -link
5: CC = cl
6: MV = rename
7: RM = erase
8: LINT_ARGS = -DLINT_ARGS
9: DEBUG_FLAGS = -Zi -Od
10: AR = lib
11: AR1 =
12: AR2 = +
13: AR3 = ";"
14: RANLIB = echo "Done with "
15: PRINT = print
16: DEFINES = ${LINT_ARGS}
17: INCLUDES = -I.
18: OPTIMIZE = ${DEBUG_FLAGS}
19: CFLAGS = ${OPTIMIZE} ${INCLUDES} ${DEFINES}
20: LINTFLAGS = -hbxaz
21: KBD = unix.kbd
22: ALLH = map3270.ext state.h termin.ext
23: ALLC = map3270.c mset.c termin.c
24: ALLO = map3270${O} termin${O}
25: ALLPRINT = default.map ${ALLH} ${ALLC}
26: ALLSOURCE = ${ALLPRINT} makefile makefile.mak
27:
28:
29: #targets...
30:
31: .s.o:
32: \lib\cpp -E $< | as -o $@
33:
34: .c.obj:
35: ${CC} ${CFLAGS} -c $<
36:
37: ascii.lib: ${ALLO}
38: ${RM} $@
39: ${AR} ${AR1} $@ ${AR2} map3270.obj${AR3}
40: cd ${CWD}
41: ${AR} ${AR1} $@ ${AR2} termin.obj${AR3}
42: cd ${CWD}
43:
44:
45: ${RANLIB} $@
46:
47: clean:
48: ${RM} map3270.obj
49: cd ${CWD}
50: ${RM} termin.obj
51: cd ${CWD}
52: ${RM} errs
53: cd ${CWD}
54: ${RM} makefile.bak
55: cd ${CWD}
56: ${RM} ascii.lib
57: cd ${CWD}
58:
59:
60:
61: sccsclean:
62: -sccs clean
63: -sccs get makefile
64:
65: sourcelist: ${ALLSOURCE}
66: echo ${DIRPATH}default.map
67: cd ${CWD}
68: echo ${DIRPATH}map3270.ext
69: cd ${CWD}
70: echo ${DIRPATH}state.h
71: cd ${CWD}
72: echo ${DIRPATH}termin.ext
73: cd ${CWD}
74: echo ${DIRPATH}map3270.c
75: cd ${CWD}
76: echo ${DIRPATH}mset.c
77: cd ${CWD}
78: echo ${DIRPATH}termin.c
79: cd ${CWD}
80: echo ${DIRPATH}makefile
81: cd ${CWD}
82: echo ${DIRPATH}makefile.mak
83: cd ${CWD}
84:
85:
86:
87: print:
88: ${PRINT} ${ALLPRINT}
89:
90: tags: ${ALLC} ${ALLH}
91: ctags -t ${ALLC} ${ALLH}
92:
93: action:
94: ${ACTION}
95:
96: lint:
97: lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${ALLC}
98:
99: .DEFAULT:
100: sccs get $<
101:
102: depend:
103: grep '^#include' ${ALLC} | grep -v '<' | sed -e 's\:[^"]*"\([^"]*\)".*\: \1\' -e 's\\.c\$$O\' | awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
104: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
105: else rec = rec " " $$2 } } \
106: END { print rec } ' > makedep
107: echo '$$r makedep' >>eddep
108: echo '\^# DO NOT DELETE THIS LINE\+1,$$d' >eddep
109: echo '$$r makedep' >>eddep
110: echo 'w' >>eddep
111: -rm -f makefile.bak
112: cp makefile makefile.bak
113: ed - makefile < eddep
114: rm eddep makedep
115:
116: map3270${O}: state.h ..\general\globals.h map3270.ext default.map
117:
118:
119: mset${O}: ..\ctlr\function.h state.h ..\api\astosc.h ..\general\globals.h map3270.ext
120:
121:
122: termin${O}: ..\general\general.h ..\ctlr\function.h ..\ctlr\inbound.ext ..\ctlr\outbound.ext ..\telnet.ext termin.ext ..\api\astosc.h state.h ..\general\globals.h
123:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.