|
|
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 = terminal.h termout.ext
66:
67: ALLC = system.c termout.c
68:
69: ALLO = system$O termout$O
70:
71: ALLPRINT = ${ALLH} ${ALLC}
72:
73: ALLSOURCE = ${ALLPRINT} makefile
74:
75: .c.obj:
76: ${CC} ${CFLAGS} -c $<
77:
78: syslib.a: $(ALLO)
79: ${RM} $@
80: for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
81: ${RANLIB} $@
82:
83: clean:
84: for i in $(ALLO) errs makefile.bak syslib.a; \
85: do (${RM} $$i); done
86:
87: sccsclean:
88: -sccs clean
89: -sccs get makefile
90:
91: sourcelist: ${ALLSOURCE}
92: @for i in ${ALLSOURCE}; \
93: do (echo ${DIRPATH}$$i); done
94:
95: print:
96: ${PRINT} ${ALLPRINT}
97:
98: tags: ${ALLC} ${ALLH}
99: ctags -t ${ALLC} ${ALLH}
100:
101: action:
102: ${ACTION}
103:
104: lint:
105: lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} -DTN3270 \
106: ${TNMAIN} ${MOSTC} -lcurses
107: lint ${LINTFLAGS} ${INCLUDES} ${DEFINES} ${MSMAIN} map3270.c -lcurses
108:
109: .DEFAULT:
110: sccs get $<
111:
112: depend:
113: grep '^#include' ${ALLC} ${ALLH} | grep -v '<' | \
114: sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
115: -e 's/\.c/$$O/' | \
116: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
117: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
118: else rec = rec " " $$2 } } \
119: END { print rec } ' > makedep
120: echo '$$r makedep' >>eddep
121: echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
122: echo '$$r makedep' >>eddep
123: echo 'w' >>eddep
124: -rm -f makefile.bak
125: cp makefile makefile.bak
126: ed - makefile < eddep
127: rm eddep makedep
128:
129: # DO NOT DELETE THIS LINE
130:
131: system$O: ../general/general.h ../ctlr/api.h ../api/api_exch.h
132: system$O: ../general/globals.h
133: termout$O: ../general/general.h terminal.h ../telnet.ext ../api/disp_asc.h
134: termout$O: ../ctlr/hostctlr.h ../ctlr/inbound.ext ../ctlr/oia.h
135: termout$O: ../ctlr/options.ext ../ctlr/outbound.ext ../ctlr/screen.h
136: termout$O: ../ascii/map3270.ext ../general/globals.h
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.