4 # Created by Klaus K"ampf, kkaempf@progis.de
11 # With or withou haifa scheduler ?
20 CFLAGS=/define=("HAVE_CONFIG_H=1","USE_COLLECT2" $(HAIFA))
21 LIBS=,gnu_cc_library:libgcc.olb/lib,sys$$library:vaxcrtl.olb/lib,gnu_cc_library:crt0.obj
23 CFLAGS=/define=("HAVE_CONFIG_H=1","USE_COLLECT2" $(HAIFA))
24 LIBS=,gnu_cc_library:libgcc.olb/lib,sys$$library:vaxcrtl.olb/lib
30 CFLAGS=/names=as_is/float=ieee/noopt/debug/define=("HAVE_CONFIG_H=1","USE_COLLECT2" $(HAIFA))\
31 /warning=disable=(missingreturn,implicitfunc,ptrmismatch,undefescap,longextern,duptypespec)
33 CFLAGS=/noopt/debug/define=("HAVE_CONFIG_H=1","USE_COLLECT2" $(HAIFA))
36 LIBS=,sys$$library:vaxcrtl.olb/lib
40 BISON_FLAGS= /Yacc/Define/Verbose
41 RENAME= rename/New_Version
42 LINK = link #/noshare/nosysshr
46 echo = write sys$$output
48 CINCL1 = /Incl=([],[.config])
49 CINCL2 = /Incl=([],[.ginclude],[.config])
50 CINCL_SUB = /Incl=([],[-],[-.ginclude],[-.config])
51 CINCL_CP= /Incl=([],[.config],[.cp],[.cp.inc])
53 MDFILE = [.config.$(ARCH)]$(ARCH).md
61 GENOBJS=[]rtl.obj,obstack.obj
63 INDEPOBJS= []toplev.obj,version.obj,tree.obj,print-tree.obj,stor-layout.obj,\
64 fold-const.obj,function.obj,stmt.obj,except.obj,expr.obj,calls.obj,expmed.obj,\
65 explow.obj,optabs.obj,varasm.obj,rtl.obj,print-rtl.obj,rtlanal.obj,\
66 emit-rtl.obj,genrtl.obj,real.obj,regmove.obj,dbxout.obj,sdbout.obj,dwarfout.obj,\
67 dwarf2out.obj,xcoffout.obj,bitmap.obj,alias.obj,\
68 integrate.obj,jump.obj,cse.obj,loop.obj,unroll.obj,flow.obj,stupid.obj,\
69 combine.obj,regclass.obj,local-alloc.obj,global.obj,reload.obj,\
70 reload1.obj,caller-save.obj,insn-peep.obj,reorg.obj,$(SCHED).obj,\
71 final.obj,recog.obj,reg-stack.obj,insn-opinit.obj,insn-recog.obj,\
72 insn-extract.obj,insn-output.obj,insn-emit.obj,\
73 profile.obj,insn-attrtab.obj,\
74 aux-output.obj,getpwd.obj,convert.obj
76 CC1OBJS=[]c-parse.obj,c-lang.obj,c-lex.obj,c-pragma.obj,c-decl.obj,\
77 c-typeck.obj,c-convert.obj,c-aux-info.obj,c-common.obj,c-iterate.obj,\
82 # list copied from cc1plus-objs.opt
84 CC1PLUSOBJS=[.cp]call.obj,[.cp]decl2.obj,\
85 [.cp]except.obj,[.cp]pt.obj,\
86 [.cp]spew.obj,[.cp]xref.obj,[.cp]class.obj,\
87 [.cp]expr.obj,[.cp]lex.obj,\
88 [.cp]ptree.obj,[.cp]tree.obj,[.cp]cvt.obj,\
89 [.cp]errfn.obj,[.cp]rtti.obj,[.cp]method.obj,\
90 [.cp]search.obj,[.cp]typeck.obj,[.cp]decl.obj,\
91 [.cp]error.obj,[.cp]friend.obj,[.cp]init.obj,[.cp]parse.obj,\
92 [.cp]sig.obj,[.cp]typeck2.obj,[.cp]repo.obj,\
95 []c-common.obj,[]c-pragma.obj
97 CCCPOBJS=[]cccp.obj,cexp.obj,version.obj,prefix.obj
101 LIBIBERTY = [-.libiberty]libiberty.olb
103 CXX_LIB2FUNCS = [.cp]tinfo.obj,[.cp]tinfo2.obj,\
104 [.cp]new.obj,[.cp]new1.obj,[.cp]new2.obj,[.cp]exception.obj
107 $(CC) $(CFLAGS) $(CINCL1) $</obj=$@
110 $(CC)/plus/CPP="-nostdinc++" $(CFLAGS) $(CINCL_CP) $</obj=$@
112 INSN_INCLUDES=insn-attr.h insn-codes.h insn-config.h insn-flags.h
118 all: cpp.exe cc1.exe float.h limits.h libgcc2.olb
120 allplus: cc1plus.exe libgccplus.olb
122 libplus: libgccplus.olb
124 cc1.exe: $(CC1OBJS) $(ALLOCA) $(INDEPOBJS)
125 $(LINK)$(LFLAGS)/exe=$@ version.opt/opt,cc1-objs.opt/Opt,independent.opt/Opt$(ALLOCA)$(LIBS)
127 cpp.exe: $(CCCPOBJS) $(ALLOCA)
128 $(LINK)$(LFLAGS)/exe=$@ $(CCCPOBJS),version.opt/opt$(ALLOCA)$(LIBS)
130 cc1plus.exe: $(CC1PLUSOBJS) $(ALLOCA) $(INDEPOBJS)
131 $(LINK)$(LFLAGS)/exe=$@ version.opt/opt,cc1plus-objs.opt/Opt,independent.opt/Opt$(ALLOCA)$(LIBS)
133 gcc.exe: gcc.obj version.obj choose-temp.obj pexecute.obj prefix.obj obstack.obj
134 $(LINK)$(LFLAGS)/exe=$@ $^$(ALLOCA)$(LIBS)
136 install: cpp.exe cc1.exe gcc.exe libgcc2.olb
137 $(CP) $^ GNU_CC_LIBRARY
139 installplus: cc1plus.exe libgccplus.olb
140 $(CP) $^ GNU_CC_LIBRARY
143 mcr $(PWD)enquire.exe -f > $@
145 limits.h: enquire.exe
146 mcr $(PWD)enquire.exe -l > $@
148 enquire.exe: enquire.obj
149 $(LINK)$(LFLAGS)/exe=$@ enquire.obj$(ALLOCA)$(LIBS)
154 libgccplus.olb: $(CXX_LIB2FUNCS)
155 lib/create libgccplus $(CXX_LIB2FUNCS)
157 genattr.exe: genattr.obj,$(GENOBJS)$(ALLOCA)
158 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
160 insn-attr.h: genattr.exe $(MDFILE)
161 mcr $(PWD)genattr.exe $(MDFILE) > $@
163 genflags.exe: genflags.obj,$(GENOBJS)$(ALLOCA)
164 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
166 insn-flags.h: genflags.exe $(MDFILE)
167 mcr $(PWD)genflags.exe $(MDFILE) > $@
169 gencodes.exe: gencodes.obj,$(GENOBJS)$(ALLOCA)
170 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
172 insn-codes.h: gencodes.exe $(MDFILE)
173 mcr $(PWD)gencodes.exe $(MDFILE) > $@
175 genconfig.exe: genconfig.obj,$(GENOBJS)$(ALLOCA)
176 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
178 insn-config.h: genconfig.exe $(MDFILE)
179 mcr $(PWD)genconfig.exe $(MDFILE) > $@
181 genpeep.exe: genpeep.obj,$(GENOBJS)$(ALLOCA)
182 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
184 insn-peep.c: genpeep.exe $(MDFILE)
185 mcr $(PWD)genpeep.exe $(MDFILE) > $@
187 genopinit.exe: genopinit.obj,$(GENOBJS)$(ALLOCA)
188 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
190 insn-opinit.c: genopinit.exe $(MDFILE)
191 mcr $(PWD)genopinit.exe $(MDFILE) > $@
193 genrecog.exe: genrecog.obj,$(GENOBJS)$(ALLOCA)
194 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
196 insn-recog.c: genrecog.exe $(MDFILE)
197 mcr $(PWD)genrecog.exe $(MDFILE) > $@
199 genextract.exe: genextract.obj,$(GENOBJS)$(ALLOCA)
200 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
202 insn-extract.c: genextract.exe $(MDFILE)
203 mcr $(PWD)genextract.exe $(MDFILE) > $@
205 genoutput.exe: genoutput.obj,$(GENOBJS)$(ALLOCA)
206 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
208 insn-output.c: genoutput.exe $(MDFILE)
209 mcr $(PWD)genoutput.exe $(MDFILE) > $@
211 genemit.exe: genemit.obj,$(GENOBJS)$(ALLOCA)
212 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
214 insn-emit.c: genemit.exe $(MDFILE)
215 mcr $(PWD)genemit.exe $(MDFILE) > $@
217 genattrtab.exe: genattrtab.obj,rtlanal.obj,$(GENOBJS)$(ALLOCA)
218 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
220 insn-attrtab.c: genattrtab.exe $(MDFILE)
221 mcr $(PWD)genattrtab.exe $(MDFILE) > $@
223 gengenrtl.exe: gengenrtl.obj,obstack.obj,$(ALLOCA)
224 $(LINK) $(LFLAGS)/exe=$@ $^$(LIBS)
226 genrtl.h genrtl.c: gengenrtl.exe
227 mcr $(PWD)gengenrtl.exe genrtl.h genrtl.c
229 cccp.obj: cccp.c config.h
230 aux-output.obj: aux-output.c insn-attr.h insn-flags.h insn-config.h
231 caller-save.obj: caller-save.c insn-config.h
232 calls.obj: calls.c insn-flags.h
233 combine.obj: combine.c insn-attr.h insn-flags.h insn-codes.h insn-config.h
234 cse.obj: cse.c insn-config.h
235 c-decl.obj: c-decl.c expr.h integrate.h insn-codes.h insn-config.h
236 c-lex.obj: c-lex.c genrtl.h
237 c-typeck.obj: c-typeck.c
238 dbxout.obj: dbxout.c insn-config.h
239 dwarfout.obj: dwarfout.c insn-config.h
240 dwarf2out.obj: dwarf2out.c insn-config.h
241 emit-rtl.obj: emit-rtl.c insn-config.h
242 except.obj: except.c insn-flags.h insn-codes.h insn-config.h
243 explow.obj: explow.c insn-flags.h insn-codes.h insn-config.h
244 expmed.obj: expmed.c insn-flags.h insn-codes.h insn-config.h
245 expr.obj: expr.c insn-flags.h insn-config.h
246 final.obj: final.c tm.h insn-attr.h insn-flags.h insn-codes.h insn-config.h
247 flow.obj: flow.c insn-config.h
248 function.obj: function.c insn-flags.h insn-codes.h insn-config.h insn-codes.h insn-config.h
249 genattrtab.obj: genattrtab.c insn-config.h
250 genextract.obj: genextract.c insn-config.h
251 global.obj: global.c insn-config.h
252 integrate.obj: integrate.c integrate.h insn-flags.h insn-config.h
253 jump.obj: jump.c insn-flags.h insn-config.h
254 local-alloc.obj: local-alloc.c insn-config.h
255 loop.obj: loop.c insn-flags.h insn-config.h
256 optabs.obj: optabs.c insn-flags.h insn-codes.h insn-config.h
257 print-rtl.obj: print-rtl.c
258 profile.obj: profile.c insn-flags.h insn-config.h
259 recog.obj: recog.c insn-attr.h insn-flags.h insn-codes.h insn-config.h
260 regclass.obj: regclass.c insn-config.h
261 reg-stack.obj: reg-stack.c insn-config.h
262 reload.obj: reload.c insn-codes.h insn-config.h
263 reload1.obj: reload1.c insn-flags.h insn-codes.h insn-config.h
264 reorg.obj: reorg.c insn-attr.h insn-flags.h insn-config.h
265 sched.obj: sched.c insn-attr.h insn-config.h
266 haifa-sched.obj: haifa-sched.c insn-attr.h insn-config.h
267 stmt.obj: stmt.c insn-flags.h insn-codes.h insn-config.h
268 stor-layout.obj: stor-layout.c
270 toplev.obj: toplev.c insn-attr.h insn-config.h
271 unroll.obj: unroll.c insn-config.h
273 insn-attrtab.obj: insn-attrtab.c insn-attr.h insn-config.h
274 insn-output.obj: insn-output.c insn-attr.h insn-flags.h insn-codes.h
275 insn-emit.obj: insn-emit.c insn-flags.h insn-codes.h insn-config.h
276 insn-opinit.obj: insn-opinit.c insn-flags.h insn-codes.h insn-config.h
277 insn-output.obj: insn-config.h
278 insn-recog.obj: insn-config.h
280 varasm.obj: varasm.c tm.h
281 toplev.obj: toplev.c tm.h
284 $(BISON) $(BISON_FLAGS)/output=$@ $<
286 $(BISON) $(BISON_FLAGS)/output=$@ $<
287 [.cp]parse.c: [.cp]parse.y
288 $(BISON) $(BISON_FLAGS)/output=$@ $<
289 [.cp]parse.h: [.cp]parse.c
290 @$(ECHO) "Must copy YYEMPTY from [.cp]parse.c to [.cp]parse.h"
292 aux-output.c: [.config.$(ARCH)]$(ARCH).c
296 reload.h: insn-config.h
297 integrate.h: insn-config.h
304 $(RM) cccp.obj;,cexp.obj;
313 $(RM) [.cp]tinfo.obj;
314 $(RM) [.cp]tinfo2.obj;
318 $(RM) [.cp]exception.obj;
319 $(RM) libgccplus.olb;
326 $(RM) [.cp]parse.output;*
346 $(RM) genattr.exe;,insn-attr.h;
347 $(RM) genflags.exe;,insn-flags.h;
348 $(RM) gencodes.exe;,insn-codes.h;
349 $(RM) genconfig.exe;,insn-config.h;
350 $(RM) genpeep.exe;,insn-peep.c;
351 $(RM) genopinit.exe;,insn-opinit.c;
352 $(RM) genrecog.exe;,insn-recog.c;
353 $(RM) genextract.exe;,insn-extract.c;
354 $(RM) genoutput.exe;,insn-output.c;
355 $(RM) genemit.exe;,insn-emit.c;
356 $(RM) genattrtab.exe;,insn-attrtab.c;
357 $(RM) gengenrtl.exe;,genrtl.c;,genrtl.h;
362 $(RM) libgccplus.olb;
363 $(RM) enquire.exe;,float.h;,limits.h;
365 # clean everything axpconfig.com creates
367 distclean: clean cleancccp
377 [.cp]call.obj: [.cp]call.c
378 [.cp]decl2.obj: [.cp]decl2.c
379 [.cp]except.obj: [.cp]except.c insn-codes.h insn-flags.h
380 [.cp]pt.obj: [.cp]pt.c
381 [.cp]spew.obj: [.cp]spew.c
382 [.cp]xref.obj: [.cp]xref.c
383 [.cp]class.obj: [.cp]class.c
384 [.cp]expr.obj: [.cp]expr.c insn-codes.h
385 [.cp]lex.obj: [.cp]lex.c [.cp]parse.h
386 [.cp]ptree.obj: [.cp]ptree.c
387 [.cp]tree.obj: [.cp]tree.c
388 [.cp]cvt.obj: [.cp]cvt.c
389 [.cp]errfn.obj: [.cp]errfn.c
390 [.cp]rtti.obj: [.cp]rtti.c
391 [.cp]method.obj: [.cp]method.c insn-codes.h
392 [.cp]search.obj: [.cp]search.c
393 [.cp]typeck.obj: [.cp]typeck.c
394 [.cp]decl.obj: [.cp]decl.c
395 [.cp]error.obj: [.cp]error.c
396 [.cp]friend.obj: [.cp]friend.c
397 [.cp]init.obj: [.cp]init.c
398 [.cp]parse.obj: [.cp]parse.c
399 $(CC) $(CFLAGS) $(CINCL_CP) $^/obj=$@
400 [.cp]sig.obj: [.cp]sig.c
401 [.cp]typeck2.obj: [.cp]typeck2.c
402 [.cp]repo.obj: [.cp]repo.c
403 [.cp]input.obj: [.cp]input.c
406 [.cp]tinfo.obj: [.cp]tinfo.cc
407 [.cp]tinfo2.obj: [.cp]tinfo2.cc
408 [.cp]new.obj: [.cp]new.cc
409 [.cp]new1.obj: [.cp]new1.cc
410 [.cp]new2.obj: [.cp]new2.cc
411 [.cp]exception.obj: [.cp]exception.cc