|
|
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 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: # %W% (Berkeley) %G%
18: .SUFFIXES: .out .o .c .y .l .s .8 .7 .6 .5 .4 .3 .2 .1 .0
19: # msdos versus unix defines
20: O = .o
21: #PC_O = .obj
22:
23: X =
24: #PC_X = .exe
25:
26: L =
27: #PC_L = -link
28:
29: CC = cc
30: #PC_CC = cl
31:
32: MV = mv
33: #PC_MV = rename
34:
35: RM = rm -f
36: #PC_RM= erase
37:
38: LINT_ARGS =
39: #PC_LINT_ARGS = -DLINT_ARGS
40:
41: DEBUG_FLAGS = -g
42: #PC_DEBUG_FLAGS = -Zi -Od
43:
44: AR = ar
45: AR1 = cr
46: AR2 =
47: AR3 =
48: #PC_AR = lib
49: #PC_AR1 =
50: #PC_AR2 = +
51: #PC_AR3 = ";"
52:
53: RANLIB = ranlib
54: #PC_RANLIB = echo "Done with "
55:
56: CFLAGS = ${DEBUG_FLAGS}
57:
58: PRINT = lpr -p
59:
60: KBD = 3270pc.kbd
61: KBD = unix.kbd
62:
63: ALLC = apilib.c api_bsd.c api_exch.c asc_ebc.c astosc.c dctype.c \
64: disp_asc.c ebc_disp.c
65:
66: ALLH = apilib.h api_exch.h asc_ebc.h astosc.h disp_asc.h dctype.h ebc_disp.h
67:
68:
69: ALLHC= ${ALLH} ${ALLC}
70: ALLPRINT = ${ALLHC}
71:
72: ALLSOURCE = ${ALLPRINT} makefile makefile.mak
73:
74: ALLO = apilib$O api_bsd$O api_exch$O astosc$O asc_ebc$O dctype$O \
75: disp_asc$O ebc_disp$O
76:
77: #.c.obj:
78: # ${CC} ${CFLAGS} -c $<
79:
80: apilib.a: ${ALLO}
81: ${RM} $@
82: for i in ${ALLO}; do (${AR} ${AR1} $@ ${AR2} $$i${AR3}); done
83: ${RANLIB} $@
84:
85: .DEFAULT:
86: sccs get $<
87:
88: clean:
89: for i in ${ALLO} errs apilib.a makefile.bak \
90: disp_out asc_disp.out astosc.out disp_asc.out \
91: test* test$O t1* t1$O t2* t2$O; \
92: do (${RM} $$i); done
93:
94: sccsclean:
95: -sccs clean
96: -sccs get makefile
97:
98: action:
99: ${ACTION}
100:
101: test: apilib.a test$O
102: ${CC} ${CFLAGS} -o $@ test$O apilib.a
103:
104: t1: apilib.a t1$O
105: ${CC} ${CFLAGS} -o $@ t1$O apilib.a
106:
107: t2: apilib.a t2$O
108: ${CC} ${CFLAGS} -o $@ t2$O apilib.a
109:
110: print:
111: ${PRINT} ${ALLPRINT}
112:
113: clist: ${ALLC}
114: @for i in ${ALLC} ; \
115: do (echo ${DIRPATH}$$i); done
116:
117: hclist: ${ALLHC}
118: @for i in ${ALLHC} ; \
119: do (echo ${DIRPATH}$$i); done
120:
121: sourcelist: ${ALLSOURCE}
122: @for i in ${ALLSOURCE}; \
123: do (echo ${DIRPATH}$$i); done
124:
125: astosc.out: ../ctlr/function.h ../ctlr/hostctlr.h ../ctlr/$(KBD)
126: (cd ${.CURDIR}/../tools; make mkastosc$X )
127: ${RM} $@
128: ../tools/mkastosc ${.CURDIR}/../ctlr/hostctlr.h \
129: ${.CURDIR}/../ctlr/function.h < ${.CURDIR}/../ctlr/$(KBD) > $@
130:
131: asc_disp.out: ebc_disp$O
132: (cd ${.CURDIR}/../tools; make mkastods$X )
133: ${RM} $@
134: ../tools/mkastods > $@
135:
136: disp_asc.out: ebc_disp$O
137: (cd ${.CURDIR}/../tools; make mkdstoas$X )
138: ${RM} $@
139: ../tools/mkdstoas > $@
140:
141: depend:
142: grep '^#include' ${ALLC} | grep -v '<' | \
143: sed -e 's/:[^"]*"\([^"]*\)".*/: \1/' \
144: -e 's/\.c/$$O/' | \
145: awk ' { if ($$1 != prev) { print rec; rec = $$0; prev = $$1; } \
146: else { if (length(rec $$2) > 78) { print rec; rec = $$0; } \
147: else rec = rec " " $$2 } } \
148: END { print rec } ' > makedep
149: echo '$$r makedep' >>eddep
150: echo '/^# DO NOT DELETE THIS LINE/+1,$$d' >eddep
151: echo '$$r makedep' >>eddep
152: echo 'w' >>eddep
153: -rm -f makefile.bak
154: cp makefile makefile.bak
155: ed - makefile < eddep
156: rm eddep makedep
157:
158: # DO NOT DELETE THIS LINE
159:
160: apilib$O: ../ctlr/api.h apilib.h
161: api_bsd$O: ../ctlr/api.h api_exch.h
162: api_exch$O: ../general/general.h api_exch.h
163: asc_ebc$O: asc_ebc.h
164: astosc$O: ../general/general.h ../ctlr/function.h astosc.h astosc.out
165: dctype$O: dctype.h
166: disp_asc$O: disp_asc.h asc_disp.out disp_asc.out
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.