|
|
1.1 root 1: # Makefile for use on MSDOG. Installed as Makefile by configure.bat.
2: BISON=bison
3: BISONFLAGS=-v
4: LIBDEPS=
5: CPPFLAGS=
6: CPLUS_INPUT=
7:
8: CONFIG_H=
9: RTL = rtl.o
10: RTLANAL=rtlanal.o
11:
12: # Special flags for compiling enquire.
13: ENQUIRE_CFLAGS = -DNO_SC -DNO_MEM -DNO_STDDEF $(GCC_CFLAGS)
14: ENQUIRE_LDFLAGS = $(LDFLAGS)
15:
16: ALL_CFLAGS = -O -D__MSDOS__ -D__GNUDOS__
17: INCLUDES=-Iconfig -I.
18: LDFLAGS=
19:
20: # Always use -I$(srcdir)/config when compiling.
21: .c.o:
22: $(CC) -c $(ALL_CFLAGS) $(INCLUDES) $<
23:
24: # Language-specific object files for C.
25: C_OBJS = c-parse_tab.o c-decl.o c-typeck.o c-lang.o c-convert.o \
26: c-aux-info.o c-common.o dbxout.o
27:
28: # Language-specific object files for Objectionable C.
29: OBJC_OBJS = objc-parse.o objc-actions.o \
30: c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o dbxout.o
31:
32: # Language-specific object files for C++.
33: CPLUS_OBJS = cp-tab.o cp-decl.o cp-decl2.o \
34: cp-typeck.o cp-type2.o cp-tree.o cp-ptree.o \
35: cp-cvt.o cp-search.o cp-lex.o cp-gc.o cp-call.o \
36: cp-class.o cp-init.o cp-method.o cp-except.o \
37: cp-expr.o cp-pt.o cp-edsel.o cp-xref.o c-common.o \
38: cp-dbxout.o $(CPLUS_INPUT)
39:
40: # Language-independent object files.
41: OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
42: function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
43: rtl.o print-rtl.o rtlanal.o sdbout.o dwarfout.o emit-rtl.o insn-emit.o \
44: integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
45: regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o \
46: insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
47: insn-recog.o insn-extract.o insn-output.o \
1.1.1.2 ! root 48: insn-attrtab.o aux-output.o getpwd.o
1.1 root 49:
50: # GEN files are listed separately, so they can be built before doing parallel
51: # makes for cc1 or cc1plus. Otherwise sequent parallel make attempts to load
52: # them before rtl.o is compiled.
53: GEN= genemit genoutput genrecog genextract genflags gencodes genconfig genpeep
54:
55: RTL_H = rtl.h rtl.def machmode.h machmode.def
56: TREE_H = tree.h real.h tree.def machmode.h machmode.def
57: CPLUS_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
58:
59:
60: all : cccp cc1 cc1plus cc1obj
61:
62:
63: # Define the names for selecting languages in LANGUAGES.
64: c: cc1
65: c++: cc1plus
66: objc: cc1obj
67: class-c: cc1obj
68: objective-c: cc1obj
69:
70: compilations: ${OBJS}
71:
72: gcc: gcc.o version.o $(LIBDEPS)
73: gcc $(ALL_CFLAGS) $(LDFLAGS) -o gcc gcc.o version.o
74: # Go via `gccnew' to avoid `file busy' if gcc is `gcc'.
75: # mv -f gccnew gcc
76: # Dump a specs file to make -B./ read these specs over installed ones
77: # gcc -dumpspecs > specs
78:
79: cc1 : $(C_OBJS) $(OBJS) $(LIBDEPS)
80: >cc1.rf $(ALL_CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(LIBS)
81: gcc @cc1.rf
82:
83: cc1plus : $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
84: >cc1plus.rf $(ALL_CFLAGS) $(LDFLAGS) -o cc1plus $(CPLUS_OBJS) $(OBJS) $(LIBS)
85: gcc @cc1plus.rf
86:
87: cc1obj : $(OBJC_OBJS) $(OBJS) $(LIBDEPS)
88: >cc1obj.rf $(ALL_CFLAGS) $(LDFLAGS) -o cc1obj $(OBJC_OBJS) $(OBJS) $(LIBS)
89: gcc @cc1obj.rf
90:
91: float.h : enquire
92: -./enquire -f > float.h
93:
94: # Used to compile enquire with standard cc, but have forgotten why.
95: # Let's try with GCC.
96: enquire: enquire.o gnulib
97: $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ENQUIRE_LDFLAGS) enquire.o -o $@
98: enquire.o: enquire.c cc1 cpp
99: -cp enquire.c . > /dev/null 2>&1
100: $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(CPPFLAGS) $(ENQUIRE_CFLAGS) -I. \
101: -c enquire.c
102:
103: # Compiling object files from source files.
104:
105: # Note that dependencies on obstack.h are not written
106: # because that file is not part of GCC.
107: # Dependencies on gvarargs.h are not written
108: # because all that file does, when not compiling with GCC,
109: # is include the system varargs.h.
110:
111: # C language specific files.
112:
113: c-parse_tab.o : c-parse_tab.c $(TREE_H) c-parse.h c-tree.h input.h flags.h
114: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c c-parse_tab.c
115: c-parse_tab.c : c-parse.y
116: $(BISON) $(BISONFLAGS) c-parse.y -o $@
117:
118: c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-parse.h flags.h
119: c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
120: c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
121: c-aux-info.o : c-aux-info.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
122: c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H)
123:
124: # C++ language specific files.
125:
126: cp-tab.o : cp-tab.c $(CPLUS_TREE_H) flags.h
127: gcc -c $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) \
128: -DPARSE_OUTPUT=\"$(PWD)/cp-tab.output\" \
129: cp-tab.c
130:
131: cp-tab.c cp-tab.h : cp-parse.y
132: @echo expect 29 shift/reduce conflicts and 14 reduce/reduce conflicts
133: $(BISON) $(BISONFLAGS) -d -o cp-tab.c cp-parse.y
134:
135: cp-lex.o : cp-lex.c $(CONFIG_H) $(CPLUS_TREE_H) \
136: cp-tab.h cp-input.c flags.h
137: cp-decl.o : cp-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
138: cp-parse.h cp-decl.h stack.h
139: cp-decl2.o : cp-decl2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
140: cp-parse.h cp-decl.h
141: cp-type2.o : cp-type2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
142: cp-typeck.o : cp-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
143: cp-class.o : cp-class.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h \
144: cp-class.h flags.h
145: cp-call.o : cp-call.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h cp-class.h \
146: flags.h
147: cp-init.o : cp-init.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
148: cp-method.o : cp-method.c $(CONFIG_H) $(CPLUS_TREE_H)
149: cp-cvt.o : cp-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
150: cp-search.o : cp-search.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
151: cp-tree.o : cp-tree.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
152: cp-ptree.o : cp-ptree.c $(CONFIG_H) $(CPLUS_TREE_H)
153: cp-gc.o : cp-gc.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
154: cp-except.o : cp-except.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
155: cp-expr.o : cp-expr.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h \
156: expr.h insn-codes.h
157: cp-edsel.o : cp-edsel.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
158: cp-xref.o : cp-xref.c $(CONFIG_H) $(CPLUS_TREE_H)
159: cp-pt.o : cp-pt.c $(CONFIG_H) $(CPLUS_TREE_H) cp-decl.h cp-tab.h
160:
161: # Objectionable C language specific files.
162:
163: objc-parse.o : objc-parse.c $(TREE_H) c-parse.h \
164: c-tree.h input.h flags.h objc-actions.h
165: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c objc-parse.c
166: objc-parse.c : objc-parse.y
167: $(BISON) $(BISONFLAGS) objc-parse.y -o $@
168:
169: objc-actions.o : objc-actions.c $(TREE_H) c-tree.h c-parse.h \
170: flags.h objc-actions.h
171:
172: # A file used by all variants of C.
173:
174: c-common.o : c-common.c $(TREE_H) c-tree.h c-parse.h flags.h
175:
176: # Language-independent files.
177:
178: gcc.o: gcc.c gvarargs.h obstack.h
1.1.1.2 ! root 179: >gcc.rf $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) \
! 180: -DDEFAULT_TARGET_MACHINE="dos" \
! 181: -DCPP_SPEC="-noprecomp\040-D__MSDOS__\040-D__GO32__"
! 182: gcc @gcc.rf -c gcc.c
1.1 root 183:
184: dumpvers: dumpvers.c
185:
186: version.o: version.c
187: obstack.o: obstack.c
188:
189: tree.o : tree.c $(CONFIG_H) $(TREE_H) gvarargs.h flags.h function.h
190: print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
191: stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
192: fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h
193: toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h insn-attr.h
194:
195: rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
196:
197: rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
198:
199: varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h \
200: insn-codes.h expr.h hard-reg-set.h regs.h
201: function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h \
202: insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
203: recog.h output.h
204: stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h \
205: insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h recog.h
206: expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) gvarargs.h flags.h function.h \
207: insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h typeclass.h
208: calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-flags.h
209: expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
210: insn-flags.h insn-config.h insn-codes.h expr.h recog.h
211: explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
212: insn-config.h expr.h recog.h insn-flags.h insn-codes.h
213: optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
214: insn-flags.h insn-config.h insn-codes.h expr.h recog.h
215: # symout.o : symout.c $(CONFIG_H) $(TREE_H) $(RTL_H) symseg.h gdbfiles.h
216: dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h
217: cp-dbxout.o : cp-dbxout.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h
218: sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h
219: dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h
220:
221: emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) gvarargs.h function.h \
222: regs.h insn-config.h real.h expr.h
1.1.1.2 ! root 223: getpwd.o : getpwd.c $(CONFIG_H)
1.1 root 224:
225: integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
226: insn-flags.h insn-config.h expr.h real.h function.h
227:
228: jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
229: insn-config.h insn-flags.h expr.h real.h
230: stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
231:
232: cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
233: insn-config.h recog.h
234: loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h \
235: insn-config.h insn-flags.h regs.h hard-reg-set.h recog.h expr.h real.h
236: unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h integrate.h regs.h \
237: flags.h expr.h loop.h
238: flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
239: basic-block.h regs.h hard-reg-set.h output.h
240: combine.o : combine.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h \
241: insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
242: basic-block.h recog.h real.h
243: regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
244: basic-block.h regs.h insn-config.h recog.h
245: local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
246: regs.h hard-reg-set.h insn-config.h recog.h output.h
247: global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) flags.h \
248: basic-block.h regs.h hard-reg-set.h insn-config.h output.h
249:
250: reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
251: reload.h recog.h hard-reg-set.h insn-config.h regs.h real.h
252: reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h \
253: reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h basic-block.h \
254: recog.h output.h
255: caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
256: reload.h regs.h hard-reg-set.h insn-config.h basic-block.h recog.h
257: reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
258: basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
259: flags.h output.h
260: sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
261: flags.h insn-config.h insn-attr.h
262: final.o : final.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h regs.h \
263: recog.h conditions.h \
264: insn-config.h insn-attr.h real.h output.h hard-reg-set.h
265: recog.o : recog.c $(CONFIG_H) $(RTL_H) \
266: regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
267: insn-flags.h insn-codes.h real.h
268: reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
269: regs.h hard-reg-set.h flags.h
270:
271: aux-output.o : aux-output.c $(CONFIG_H) \
272: $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
273: insn-flags.h output.h insn-attr.h
274:
275: # Remake cpp and protoize.
276:
277: # Making the preprocessor
278: cpp: cccp
279: -rm -f cpp
280: ln cccp cpp
281: cccp: cccp.o cexp.o version.o $(LIBDEPS)
282: gcc $(ALL_CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
283: cexp.o: cexp.c
284: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c cexp.c
285: cexp.c: cexp.y
286: $(BISON) -o cexp.c cexp.y
287: cccp.o: cccp.c pcp.h version.c
288: >cccp.rf $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) \
289: -DGPLUSPLUS_INCLUDE_DIR="/usr/include" \
290: -DGCC_INCLUDE_DIR="/usr/include" \
291: -c cccp.c
292: gcc @cccp.rf
293:
294: proto: config.status protoize unprotoize SYSCALLS.c.X protoize.1 unprotoize.1
295:
1.1.1.2 ! root 296: protoize: protoize.o getopt.o getopt1.o getpwd.o $(MALLOC)
1.1 root 297: gcc -B./ $(GCC_CFLAGS) $(LDFLAGS) protoize.o getopt.o getopt1.o \
298: $(MALLOC) -o $@
299: protoize.o: protoize.c cc1 cpp getopt.h
300: gcc -B./ -c $(GCC_CFLAGS) $(CPPFLAGS) $(INCLUDES) \
301: -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
302: -DGPLUSPLUS_INCLUDE_DIR=\"$(libsubdir)/g++-include\" \
303: -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
304: -DSTD_PROTO_DIR=\"$(libsubdir)\" \
305: protoize.c -I$(srcdir)
306:
1.1.1.2 ! root 307: unprotoize: unprotoize.o getopt.o getopt1.o getpwd.o $(MALLOC)
1.1 root 308: gcc -B./ $(GCC_CFLAGS) $(LDFLAGS) unprotoize.o getopt.o getopt1.o \
309: $(MALLOC) -o $@
310: unprotoize.o: protoize.c cc1 cpp getopt.h
311: gcc -B./ -c $(GCC_CFLAGS) $(CPPFLAGS) $(INCLUDES) \
312: -DGCC_INCLUDE_DIR=\"$(libsubdir)/include\" \
313: -DGPLUSPLUS_INCLUDE_DIR=\"$(libsubdir)/g++-include\" \
314: -DCROSS_INCLUDE_DIR=\"$(libsubdir)/sys-include\" \
315: -DSTD_PROTO_DIR=\"$(libsubdir)\" \
316: -DUNPROTOIZE protoize.c -I$(srcdir) -o $@
317:
318: getopt.o: getopt.c getopt.h cc1 cpp
319: gcc -B./ -c $(GCC_CFLAGS) $(CPPFLAGS) $(INCLUDES) getopt.c
320: getopt1.o: getopt1.c getopt.h cc1 cpp
321: gcc -B./ -c $(GCC_CFLAGS) $(CPPFLAGS) $(INCLUDES) getopt1.c
322:
323: protoize.1: proto-man ./cpp
324: ./cpp -traditional proto-man \
325: | grep -v '^#' \
326: | awk 'NF > 0 {print}' > protoize.1
327:
328: unprotoize.1: proto-man ./cpp
329: ./cpp -traditional -DUNPRO proto-man \
330: | grep -v '^#' \
331: | awk 'NF > 0 {print}' > unprotoize.1
332:
1.1.1.2 ! root 333: SYSCALLS.c : $(srcdir)/sys-types.h $(srcdir)/sys-protos.h
! 334: cat $(srcdir)/sys-types.h $(srcdir)/sys-protos.h >$@
! 335:
! 336: # This info describes the target machine, so compile with GCC just built.
! 337: SYSCALLS.c.X: SYSCALLS.c $(GCC_PASSES)
! 338: $(GCC_FOR_TARGET) $(GCC_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) \
! 339: -aux-info $@ -S -o /dev/null SYSCALLS.c
1.1 root 340:
341: test-protoize:
342: -rm -f tmp-protoize.*
343: cp protoize.c tmp-protoize.c
344: chmod u+w tmp-protoize.c
345: ./unprotoize -N -c "-B./ -Wall -Wwrite-strings $(CFLAGS)" tmp-protoize.c
346: ./protoize -N -B ./ -c "-B./ -Wall -Wwrite-strings $(CFLAGS)" tmp-protoize.c
347: @echo Expect exactly one one line difference for visit_each_hash_node.
348: -diff protoize.c tmp-protoize.c
349: -rm -f tmp-protoize.*
350:
351: force:
352:
353:
354: # The following pair of rules has this effect:
355: # genconfig is run only if the md has changed since genconfig was last run;
356: # but the file insn-config.h is touched only when its contents actually change.
357:
358: # Each of the other insn-* files is handled by a similar pair of rules.
359:
360: # Each of the insn-*.[ch] rules has a semicolon at the end,
361: # for otherwise the system Make on SunOS 4.1 never tries
362: # to recompile insn-*.o.
363:
1.1.1.2 ! root 364: insn-config.h: tmp-config.h
! 365: tmp-config.h: md genconfig
1.1 root 366: go32 genconfig md > tmp-config.h
367: update tmp-config.h insn-config.h
368:
1.1.1.2 ! root 369: insn-flags.h: tmp-flags.h
! 370: tmp-flags.h: md genflags
1.1 root 371: go32 genflags md > tmp-flags.h
372: update tmp-flags.h insn-flags.h
373:
1.1.1.2 ! root 374: insn-codes.h: tmp-codes.h
! 375: tmp-codes.h: md gencodes
1.1 root 376: go32 gencodes md > tmp-codes.h
377: update tmp-codes.h insn-codes.h
378:
379: insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h real.h output.h \
380: insn-config.h insn-flags.h insn-codes.h
381: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c insn-emit.c
382:
383: insn-emit.c: md genemit
384: go32 genemit md > tmp-emit.c
385: update tmp-emit.c insn-emit.c
386:
387: insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h recog.h \
388: real.h output.h flags.h
389: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c insn-recog.c
390:
1.1.1.2 ! root 391: insn-recog.c: tmp-recog.c
! 392: tmp-recog.c: md genrecog
1.1 root 393: go32 genrecog md > tmp-recog.c
394: update tmp-recog.c insn-recog.c
395:
396: insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H)
397: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c insn-extract.c
398:
1.1.1.2 ! root 399: insn-extract.c: tmp-extract.c
! 400: tmp-extract.c: md genextract
1.1 root 401: go32 genextract md > tmp-extract.c
402: update tmp-extract.c insn-extract.c
403:
404: insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h output.h real.h
405: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c insn-peep.c
406:
1.1.1.2 ! root 407: insn-peep.c: tmp-peep.c
! 408: tmp-peep.c: md genpeep
1.1 root 409: go32 genpeep md > tmp-peep.c
410: update tmp-peep.c insn-peep.c
411:
412: insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
413: insn-attr.h insn-config.h
414: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c insn-attrtab.c
415:
1.1.1.2 ! root 416: insn-attr.h: tmp-attr.h
! 417: tmp-attr.h: md genattr
1.1 root 418: go32 genattr md > tmp-attr.h
419: update tmp-attr.h insn-attr.h
420:
1.1.1.2 ! root 421: insn-attrtab.c: tmp-attrtab.c
! 422: tmp-attrtab.c: md genattrtab
1.1 root 423: go32 genattrtab md > tmp-attrtab.c
424: update tmp-attrtab.c insn-attrtab.c
425:
426: insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h real.h conditions.h \
427: hard-reg-set.h insn-config.h insn-flags.h insn-attr.h output.h recog.h \
428: insn-codes.h
429: gcc $(ALL_CFLAGS) $(CPPFLAGS) $(INCLUDES) -c insn-output.c
430:
1.1.1.2 ! root 431: insn-output.c: tmp-output.c
! 432: tmp-output.c: md genoutput
1.1 root 433: go32 genoutput md > tmp-output.c
434: update tmp-output.c insn-output.c
435:
436: # Compile the programs that generate insn-* from the machine description.
437: # They are compiled with $(CC), and associated libraries,
438: # since they need to run on this machine
439: # even if GCC is being compiled to run on some other machine.
440:
441: # $(CONFIG_H) is omitted from the deps of the gen*.o
442: # because these programs don't really depend on anything
443: # about the target machine. They do depend on config.h itself,
444: # since that describes the host machine.
445:
446: genconfig : genconfig.o $(RTL) $(LIBDEPS)
447: gcc $(CFLAGS) $(LDFLAGS) -o genconfig \
448: genconfig.o $(RTL) $(LIBS)
449:
450: genconfig.o : genconfig.c $(RTL_H) config.h
451: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genconfig.c
452:
453: genflags : genflags.o $(RTL) $(LIBDEPS)
454: gcc $(CFLAGS) $(LDFLAGS) -o genflags \
455: genflags.o $(RTL) $(LIBS)
456:
457: genflags.o : genflags.c $(RTL_H) config.h
458: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genflags.c
459:
460: gencodes : gencodes.o $(RTL) $(LIBDEPS)
461: gcc $(CFLAGS) $(LDFLAGS) -o gencodes \
462: gencodes.o $(RTL) $(LIBS)
463:
464: gencodes.o : gencodes.c $(RTL_H) config.h
465: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) gencodes.c
466:
467: genemit : genemit.o $(RTL) $(LIBDEPS)
468: gcc $(CFLAGS) $(LDFLAGS) -o genemit \
469: genemit.o $(RTL) $(LIBS)
470:
471: genemit.o : genemit.c $(RTL_H) config.h
472: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genemit.c
473:
474: genrecog : genrecog.o $(RTL) $(LIBDEPS)
475: gcc $(CFLAGS) $(LDFLAGS) -o genrecog \
476: genrecog.o $(RTL) $(LIBS)
477:
478: genrecog.o : genrecog.c $(RTL_H) config.h
479: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genrecog.c
480:
481: genextract : genextract.o $(RTL) $(LIBDEPS)
482: gcc $(CFLAGS) $(LDFLAGS) -o genextract \
483: genextract.o $(RTL) $(LIBS)
484:
485: genextract.o : genextract.c $(RTL_H) config.h
486: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genextract.c
487:
488: genpeep : genpeep.o $(RTL) $(LIBDEPS)
489: gcc $(CFLAGS) $(LDFLAGS) -o genpeep \
490: genpeep.o $(RTL) $(LIBS)
491:
492: genpeep.o : genpeep.c $(RTL_H) config.h
493: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genpeep.c
494:
495: genattr : genattr.o $(RTL) $(LIBDEPS)
496: gcc $(CFLAGS) $(LDFLAGS) -o genattr \
497: genattr.o $(RTL) $(LIBS)
498:
499: genattr.o : genattr.c $(RTL_H) config.h
500: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genattr.c
501:
502: genattrtab : genattrtab.o $(RTL) $(RTLANAL) $(LIBDEPS)
503: gcc $(CFLAGS) $(LDFLAGS) -o genattrtab \
504: genattrtab.o $(RTL) $(RTLANAL) $(LIBS)
505:
506: genattrtab.o : genattrtab.c $(RTL_H) config.h insn-config.h
507: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genattrtab.c
508:
509: genoutput : genoutput.o $(RTL) $(LIBDEPS)
510: gcc $(CFLAGS) $(LDFLAGS) -o genoutput \
511: genoutput.o $(RTL) $(LIBS)
512:
513: genoutput.o : genoutput.c $(RTL_H) config.h
514: gcc -c $(CFLAGS) $(CPPFLAGS) $(INCLUDES) genoutput.c
515:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.