|
|
1.1 root 1: #ident "@(#)ctrans:src/makefile 1.3.7.20"
2: ###############################################################################
3: # Copyright (c) 1984 AT&T
4: # All Rights Reserved
5: #
6: # THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T
7: #
8: # The copyright notice above does not evidence any
9: # actual or intended publication of such source code.
10: #
11: ###############################################################################
12: CC = CC
13:
14: #The ANSI_OUT option has been replaced by the +a1 and +a0 compilation options
15:
16: #for systems which only recognize identifiers of up to 31 characters
17: #setting DENSE to -DDENSE causes cfront to generate internal names
18: #of 31 characters or less
19: DENSE=
20:
21: # The use of RETBUG is nolonger needed with version 2.0 and has been removed.
22: # RETBUG was used in 1.* Translator versions to circumvent a C compiler bug.
23:
24: CCFLAGS=-DFDOTRIGHT -O -I.
25:
26: # top level makefile modifies the following
27: MPMACRO = PATCH
28: MPFILE = patch
29:
30: OFILES = alloc.o dcl.o dcl2.o dcl3.o dcl4.o del.o doprint.o \
31: error.o expand.o \
32: expr.o expr2.o expr3.o find.o hash.o lalex.o lex.o main.o \
33: norm.o norm2.o print.o print2.o print_self.o \
34: repr.o simpl.o simpl2.o \
35: size.o table.o typ.o typ2.o y.tab.o tree_walk.o \
36: tree_copy.o template.o dump_tree.o discrim.o
37:
38:
39: cfront: $(OFILES)
40: $(CC) -o cfront $(CCFLAGS) $(OFILES)
41:
42: ##############################################################################
43: # TBD: delete before cutting tape; these construct are non-standard
44:
45: cfront_c = alloc.c dcl.c dcl2.c dcl3.c dcl4.c del.c doprint.c \
46: error.c expand.c \
47: expr.c expr2.c expr3.c find.c hash.c lalex.c lex.c main.c \
48: norm.c norm2.c print.c print2.c print_self.c \
49: repr.c simpl.c simpl2.c \
50: size.c table.c typ.c typ2.c y.tab.c tree_walk.c \
51: tree_copy.c template.c dump_tree.c discrimination.c
52:
53: depend:
54: rm -f .new_depend
55: touch .new_depend
56: for s in $(cfront_c) ; do \
57: echo $$s; \
58: $(CC) -M $(CCFLAGS) $$s >> .new_depend;done
59: mv .new_depend .depend
60: ##############################################################################
61:
62:
63: cfront.h: token.h typedef.h
64:
65: y.tab.c: gram.y
66: yacc gram.y
67:
68: alloc.o: alloc.c cfront.h
69: $(CC) $(CCFLAGS) -c alloc.c
70:
71: dcl.o: dcl.c cfront.h size.h
72: $(CC) $(CCFLAGS) -c dcl.c
73:
74: dcl2.o: dcl2.c cfront.h size.h
75: $(CC) $(CCFLAGS) -c dcl2.c
76:
77: dcl3.o: dcl3.c cfront.h size.h
78: $(CC) $(CCFLAGS) -c dcl3.c
79:
80: dcl4.o: dcl4.c cfront.h size.h
81: $(CC) $(CCFLAGS) -c dcl4.c
82:
83: del.o: del.c cfront.h
84: $(CC) $(CCFLAGS) -c del.c
85:
86: discrim.o: discrim.c cfront.h
87: $(CC) $(CCFLAGS) -c discrim.c
88:
89: doprint.o: doprint.c
90: $(CC) $(CCFLAGS) -c doprint.c
91:
92: dump_tree.o: dump_tree.c cfront.h
93: $(CC) $(CCFLAGS) -c dump_tree.c
94:
95: error.o: error.c cfront.h size.h
96: $(CC) $(CCFLAGS) -c error.c
97:
98: expand.o: expand.c cfront.h
99: $(CC) $(CCFLAGS) -c expand.c
100:
101: expr.o: expr.c cfront.h size.h
102: $(CC) $(CCFLAGS) -c expr.c
103:
104: expr2.o: expr2.c cfront.h size.h
105: $(CC) $(CCFLAGS) -c expr2.c
106:
107: expr3.o: expr3.c cfront.h size.h
108: $(CC) $(CCFLAGS) -c expr3.c
109:
110: find.o: find.c cfront.h
111: $(CC) $(CCFLAGS) -c find.c
112:
113: hash.o: hash.c hash.H
114: $(CC) $(CCFLAGS) -c hash.c
115:
116: lalex.o:lalex.c cfront.h yystype.h tqueue.h
117: $(CC) $(CCFLAGS) -c lalex.c
118:
119: lex.o: lex.c cfront.h size.h tqueue.h yystype.h
120: $(CC) $(CCFLAGS) -c lex.c
121:
122: # main depends on this makefile to force recompilation
123: # when going from patch to munch
124: main.o: main.c cfront.h makefile
125: $(CC) -D$(MPMACRO) $(DENSE) $(CCFLAGS) -c main.c
126:
127: norm.o: norm.c cfront.h size.h
128: $(CC) $(CCFLAGS) -c norm.c
129:
130: norm2.o: norm2.c cfront.h size.h
131: $(CC) $(CCFLAGS) -c norm2.c
132:
133: print.o: print.c cfront.h
134: $(CC) $(CCFLAGS) -c print.c
135:
136: print2.o: print2.c cfront.h
137: $(CC) $(DENSE) $(CCFLAGS) -c print2.c
138:
139: print_self.o: print_self.c
140: $(CC) $(CCFLAGS) -c print_self.c
141:
142: repr.o: repr.c cfront.h
143: $(CC) $(CCFLAGS) -c repr.c
144:
145: simpl.o: simpl.c cfront.h size.h
146: $(CC) $(CCFLAGS) -c simpl.c
147:
148: simpl2.o: simpl2.c cfront.h size.h
149: $(CC) $(CCFLAGS) -c simpl2.c
150:
151: size.o: size.c cfront.h size.h
152: $(CC) $(CCFLAGS) -c size.c
153:
154: table.o: table.c cfront.h
155: $(CC) $(CCFLAGS) -c table.c
156:
157: tree_walk.o: tree_walk.c
158: $(CC) $(CCFLAGS) -c tree_walk.c
159:
160: tree_copy.o: tree_copy.c
161: $(CC) $(CCFLAGS) -c tree_copy.c
162:
163: template.o: template.c
164: $(CC) $(CCFLAGS) -c template.c
165:
166: typ.o: typ.c cfront.h size.h
167: $(CC) $(CCFLAGS) -c typ.c
168:
169: typ2.o: typ2.c cfront.h size.h
170: $(CC) $(CCFLAGS) -c typ2.c
171:
172: y.tab.o: y.tab.c cfront.h size.h
173: $(CC) -DGRAM $(CCFLAGS) -c y.tab.c
174:
175: cpio:
176: ls alloc.c dcl.c dcl2.c dcl3.c dcl4.c del.c error.c expand.c \
177: expr.c expr2.c expr3.c find.c lalex.c lex.c main.c \
178: norm.c norm2.c print.c print2.c repr.c simpl.c simpl2.c \
179: size.c table.c typ.c typ2.c \
180: gram.y \
181: token.h cfront.h size.h tqueue.h typedef.h yystype.h \
182: makefile | cpio -oc > cfront.cpio
183: #include .depend
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.