home *** CD-ROM | disk | FTP | other *** search
/ GEMini Atari / GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso / files / gnu / gcc_241s / makefile.st < prev    next >
Makefile  |  1993-07-24  |  21KB  |  544 lines

  1. # Makefile for GNU C NATIVE COMPILER for the atariST/TT series hosted
  2. #  on a Sparc host (tested only on Sun)S 4.0.3)
  3. #  NOTE: requires alloca.c from the emacs dist.
  4. #
  5.  
  6. # Makefile for GNU C compiler.
  7. #   Copyright (C) 1987 Free Software Foundation, Inc.
  8.  
  9. #This file is part of GNU CC.
  10.  
  11. #GNU CC is distributed in the hope that it will be useful,
  12. #but WITHOUT ANY WARRANTY.  No author or distributor
  13. #accepts responsibility to anyone for the consequences of using it
  14. #or for whether it serves any particular purpose or works at all,
  15. #unless he says so in writing.  Refer to the GNU CC General Public
  16. #License for full details.
  17.  
  18. #Everyone is granted permission to copy, modify and redistribute
  19. #GNU CC, but only under the conditions described in the
  20. #GNU CC General Public License.   A copy of this license is
  21. #supposed to have been given to you along with GNU CC so you
  22. #can know your rights and responsibilities.  It should be in a
  23. #file named COPYING.  Among other things, the copyright notice
  24. #and this notice must be preserved on all copies.
  25.  
  26. .NOEXPORT: # This tells GNU Make version 3
  27.        # not to put all the variables in the environment.
  28.  
  29.  
  30. CROSSDIR = /net/acae127/home/bammi/atari/cross-gcc
  31. CROSSBIN = $(CROSSDIR)/bin
  32. CROSSLIB = $(CROSSDIR)/lib
  33. CROSSINC = $(CROSSDIR)/include
  34.  
  35. # BASEREL not yet supported. Howard has sent some diffs for baserel
  36. #         but they only work for gcc-cc1 and not gcc-cc1plus. since
  37. #      gcc-cc1plus shares most .o files with gcc-cc1, until that
  38. #         is resolved, baserel is unsupported.
  39. # BASEREL = -mbaserel -mpcrel
  40.  
  41. # ARCHFLAGS    if unset, the default is -m68000 that will work on all STs
  42. #            for the TT set -m68020 -m68881 for the falcon you probably
  43. #        only want -m68020 unless you have the optional co-proc.
  44. #
  45. #        note: the above applies only when you have not changed the
  46. #        TARGET_DEFAULT in tm-atari.h yourself. if you have changed
  47. #        the default then adjust as appro.
  48. # ARCHFLAGS = -m68020 -m68881
  49.  
  50. CC = $(CROSSBIN)/cgcc -pipe
  51. DFLAGS = -DCROSSDIR=\"\"
  52. CFLAGS = $(ARCHFLAGS) $(BASEREL) $(DFLAGS) -O2 -fomit-frame-pointer -I$(CROSSINC) -I./config -I. -Datarist=1
  53. LDFLAGS =  $(ARCHFLAGS) $(BASEREL)
  54.  
  55. # hosts cc (give full path to gcc is hosts gcc is not before . in your PATH)
  56. HOSTCC=gcc
  57. HOSTCFLAGS = $(DFLAGS) -O -I./config -I.
  58. # HOSTLDFLAGS =
  59.  
  60. # OLDCC should not be the GNU C compiler.
  61. OLDCC = cc
  62. BISON = bison
  63. BISONFLAGS=
  64. AR = ar
  65. SHELL = /bin/sh
  66.  
  67. bindir = 
  68. libdir = 
  69.  
  70. # These are what you would need on HPUX:
  71. # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  72. # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
  73. # bites whenever tree.def, rtl.def or machmode.def is included
  74. # (ie., on every source file).
  75. # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700
  76. # For CCLIBFLAGS you might want to specify the switch that
  77. # forces only 68000 instructions to be used.
  78.  
  79. # If you are making gcc for the first time, and if you are compiling it with
  80. # a non-gcc compiler, and if your system doesn't have a working alloca() in any
  81. # of the standard libraries (as is true for HP/UX or Genix),
  82. # then get alloca.c from GNU Emacs and un-comment the following line:
  83. # ALLOCA = alloca.o
  84.  
  85. # If your system has alloca() in /lib/libPW.a, un-comment the following line:
  86. # CLIB= -lPW
  87.   
  88. # If your system's malloc() routine fails for any reason (as it does on
  89. # certain versions of Genix), try getting the files
  90. # malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
  91. # MALLOC = malloc.o
  92.  
  93. # If you are running GCC on an Apollo, you will need this:
  94. # CFLAGS = -g -O -M 3000 -U__STDC__ -DSHORT_ENUM_BUG
  95.  
  96. # Change this to a null string if obstacks are installed in the
  97. # system library.
  98. OBSTACK=obstack.o
  99. OBSTACK1=obstack.oo
  100.  
  101. # Dependency on obstack, alloca, malloc or whatever library facilities
  102. # are not installed in the system libraries.
  103. LIBDEPS= $(OBSTACK)
  104. LIBDEPS1= $(OBSTACK1) $(HOSTALLOCA) $(MALLOC)
  105.  
  106. # How to link with both our special library facilities
  107. # and the system's installed libraries.
  108. LIBS = $(OBSTACK)
  109. LIBS1 = $(OBSTACK1) $(HOSTALLOCA) $(MALLOC) $(MALLOC1) $(CLIB)
  110.  
  111. DIR = ../gcc
  112.  
  113. # Object files of CC1.
  114. # Language-specific object files for C.
  115. C_OBJS = c-parse.o c-lang.o c-lex.o c-pragma.o \
  116.    c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o c-iterate.o
  117.  
  118. # Language-specific object files for C++.
  119. CPLUS_OBJS = cp-parse.o cp-decl.o cp-decl2.o \
  120.    cp-typeck.o cp-type2.o cp-tree.o cp-ptree.o \
  121.    cp-cvt.o cp-search.o cp-lex.o cp-gc.o cp-call.o \
  122.    cp-class.o cp-init.o cp-method.o cp-except.o \
  123.    cp-expr.o cp-pt.o cp-edsel.o cp-xref.o \
  124.    $(CPLUS_INPUT) cp-spew.o c-common.o
  125.  
  126. # Language-independent object files.
  127. OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
  128.  function.o stmt.o expr.o calls.o expmed.o explow.o optabs.o varasm.o \
  129.  rtl.o print-rtl.o rtlanal.o emit-rtl.o real.o \
  130.  dbxout.o sdbout.o dwarfout.o xcoffout.o \
  131.  integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o \
  132.  regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o \
  133.  insn-peep.o reorg.o sched.o final.o recog.o reg-stack.o \
  134.  insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o \
  135.  insn-attrtab.o aux-output.o getpwd.o convert.o $(EXTRA_OBJS)
  136.  
  137. GCC_PASSES=gcc cc1 cpp
  138.  
  139. # Files to be copied away after each stage in building.
  140. STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
  141.  insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
  142.  insn-attr.h insn-attrtab.c insn-opinit.c \
  143.  stamp-flags stamp-config stamp-codes \
  144.  stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
  145.  stamp-attr stamp-attrtab stamp-opinit stamp-proto \
  146.  genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
  147.  genattrtab genattr genopinit \
  148.  $(GCC_PASSES) $(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross cccp \
  149.  cc1plus cc1obj enquire protoize unprotoize specs collect2 $(USE_COLLECT2)
  150.  
  151. # Header files that are made available to programs compiled with gcc.
  152. USER_H = stddef.h stdarg.h assert.h va-*.h limits.h
  153.  
  154. # If you want to recompile everything, just do rm *.o.
  155. # CONFIG_H = config.h tm.h
  156. CONFIG_H =
  157. RTL_H = rtl.h rtl.def machmode.h machmode.def
  158. TREE_H = tree.h real.h tree.def machmode.h machmode.def
  159. CPLUS_TREE_H = $(TREE_H) cp-tree.h cp-tree.def
  160.  
  161. ALL =  gcc.ttp gcc-cc1.ttp gcc-cpp.ttp
  162.  
  163. all : $(ALL)
  164.  
  165. compilations: ${OBJS}
  166.  
  167. gcc.ttp: gcc.o version.o $(LIBDEPS)
  168.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc.ttp gcc.o version.o $(LIBS)
  169.  
  170. gcc.o: gcc.c $(CONFIG_H)
  171.     $(CC) $(CFLAGS) -DDEFAULT_TARGET_MACHINE=\"atariST\" -c gcc.c
  172.  
  173. gcc-cc1.ttp: $(C_OBJS) $(OBJS) $(LIBDEPS)
  174.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1.ttp $(C_OBJS) $(OBJS) $(LIBS)
  175.  
  176. gcc-cc1+.ttp: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
  177.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1+.ttp $(CPLUS_OBJS) $(OBJS) $(LIBS)
  178.  
  179. gcc-cc1o.ttp: $(OBJC_OBJS) $(OBJS) $(LIBDEPS)
  180.     $(CC) $(CFLAGS) $(LDFLAGS) -o gcc-cc1o.ttp $(OBJC_OBJS) $(OBJS) $(LIBS)
  181.  
  182. # C-language specific files.
  183.  
  184. c-parse.o : c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h input.h flags.h
  185.     $(CC) $(CFLAGS) -c c-parse.c
  186. c-parse.c c-parse.h: c-parse.y
  187.     $(BISON) $(BISONFLAGS) -d c-parse.y -o c-parse.c
  188.  
  189. c-parse.y: c-parse.in 
  190.     sed -e "/^ifobjc$$/,/^end ifobjc$$/d" \
  191.       -e "/^ifc$$/d" -e "/^end ifc$$/d" \
  192.       ./c-parse.in > ./c-parse.y
  193.  
  194. c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  195. c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  196. c-lang.o : c-lang.c $(CONFIG_H) $(TREE_H)
  197. c-lex.o : c-lex.c $(CONFIG_H) $(TREE_H) c-lex.h c-tree.h c-parse.h \
  198.     input.h flags.h
  199. c-aux-info.o : c-aux-info.c  $(CONFIG_H) $(TREE_H) c-tree.h flags.h
  200. c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H) flags.h
  201. c-iterate.o: c-iterate.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h flags.h
  202.  
  203. # C++ language specific files.
  204.  
  205. cp-parse.o : cp-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h cp-lex.h
  206.     $(CC) -c $(CFLAGS) cp-parse.c
  207.  
  208. cp-parse.c cp-parse.h : cp-parse.y
  209.     @echo expect 29 shift/reduce conflicts and 14 reduce/reduce conflicts
  210.     $(BISON) $(BISONFLAGS) -d -o cp-parse.c cp-parse.y
  211.     grep '^#define[     ]*YYEMPTY' cp-parse.c >>cp-parse.h
  212.  
  213. cp-spew.o : cp-spew.c $(CONFIG_H) $(CPLUS_TREE_H) \
  214.    cp-parse.h flags.h
  215. cp-lex.o : cp-lex.c $(CONFIG_H) $(CPLUS_TREE_H) \
  216.    cp-parse.h cp-input.c flags.h
  217. cp-decl.o : cp-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  218.   cp-lex.h cp-decl.h stack.h
  219. cp-decl2.o : cp-decl2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h \
  220.   cp-lex.h cp-decl.h
  221. cp-type2.o : cp-type2.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  222. cp-typeck.o : cp-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  223. cp-class.o : cp-class.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h \
  224.     cp-class.h flags.h
  225. cp-call.o : cp-call.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h cp-class.h \
  226.     flags.h
  227. cp-init.o : cp-init.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  228. cp-method.o : cp-method.c $(CONFIG_H) $(CPLUS_TREE_H)
  229. cp-cvt.o : cp-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
  230. cp-search.o : cp-search.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  231. cp-tree.o : cp-tree.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  232. cp-ptree.o : cp-ptree.c $(CONFIG_H) $(CPLUS_TREE_H)
  233. cp-gc.o : cp-gc.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  234. cp-except.o : cp-except.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
  235. cp-expr.o : cp-expr.c $(CONFIG_H) $(CPLUS_TREE_H) $(RTL_H) flags.h \
  236.   expr.h insn-codes.h
  237. cp-edsel.o : cp-edsel.c $(CONFIG_H) $(CPLUS_TREE_H) stack.h flags.h
  238. cp-xref.o : cp-xref.c $(CONFIG_H) $(CPLUS_TREE_H)
  239. cp-pt.o : cp-pt.c $(CONFIG_H) $(CPLUS_TREE_H) cp-decl.h cp-parse.h
  240.  
  241. # Objectionable C language specific files.
  242.  
  243. objc-parse.o : objc-parse.c $(CONFIG_H) $(TREE_H) c-lex.h \
  244.    c-tree.h input.h flags.h objc-actions.h
  245.     $(CC) $(CFLAGS) -c objc-parse.c
  246. objc-parse.c : objc-parse.y
  247.     $(BISON) $(BISONFLAGS) objc-parse.y -o objc-parse.c
  248.  
  249. objc-actions.o : objc-actions.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h \
  250.    flags.h objc-actions.h
  251.  
  252. # A file used by all variants of C.
  253.  
  254. c-common.o : c-common.c $(CONFIG_H) $(TREE_H) c-tree.h c-lex.h flags.h
  255.  
  256.  
  257. # Language-independent files.
  258. dumpvers: dumpvers.c
  259.  
  260. version.o: version.c
  261. obstack.o: obstack.c
  262.  
  263. tree.o : tree.c $(CONFIG_H) $(TREE_H) gvarargs.h flags.h function.h
  264. print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
  265. stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H) function.h
  266. fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H) flags.h 
  267. toplev.o : toplev.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h input.h \
  268.  insn-attr.h xcoffout.h
  269.  
  270. rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
  271.  
  272. print-rtl.o : print-rtl.c $(CONFIG_H) $(RTL_H)
  273. rtlanal.o : rtlanal.c $(CONFIG_H) $(RTL_H)
  274.  
  275. varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h \
  276.    insn-codes.h expr.h hard-reg-set.h regs.h xcoffout.h
  277. function.o : function.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  278.    insn-flags.h insn-codes.h expr.h regs.h hard-reg-set.h insn-config.h \
  279.    recog.h output.h
  280. stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h function.h  \
  281.    insn-flags.h insn-config.h insn-codes.h hard-reg-set.h expr.h loop.h recog.h
  282. expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) gvarargs.h flags.h function.h  \
  283.    insn-flags.h insn-codes.h expr.h insn-config.h recog.h output.h typeclass.h
  284. calls.o : calls.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h \
  285.    insn-flags.h
  286. expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  287.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h real.h
  288. explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h hard-reg-set.h \
  289.    insn-config.h expr.h recog.h insn-flags.h insn-codes.h
  290. optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h  \
  291.    insn-flags.h insn-config.h insn-codes.h expr.h recog.h
  292. dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h regs.h \
  293.    insn-config.h reload.h gstab.h xcoffout.h
  294. sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) gsyms.h flags.h \
  295.    insn-config.h reload.h
  296. dwarfout.o : dwarfout.c $(CONFIG_H) $(TREE_H) $(RTL_H) dwarf.h flags.h \
  297.    insn-config.h reload.h output.h
  298. xcoffout.o : xcoffout.c $(CONFIG_H) $(TREE_H) $(RTL_H) xcoffout.h flags.h
  299. emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) flags.h gvarargs.h function.h  \
  300.    regs.h insn-config.h insn-codes.h real.h expr.h
  301. real.o : real.c $(CONFIG_H) $(TREE_H)
  302. getpwd.o : getpwd.c $(CONFIG_H)
  303.  
  304. integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h integrate.h \
  305.    insn-flags.h insn-config.h insn-codes.h expr.h real.h function.h
  306.  
  307. jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h hard-reg-set.h regs.h \
  308.    insn-config.h insn-flags.h insn-codes.h expr.h real.h
  309. stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h
  310.  
  311. cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h \
  312.    insn-config.h recog.h
  313. loop.o : loop.c $(CONFIG_H) $(RTL_H) flags.h loop.h insn-config.h \
  314.    insn-flags.h insn-codes.h regs.h hard-reg-set.h recog.h expr.h real.h
  315. unroll.o : unroll.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
  316.    integrate.h regs.h flags.h expr.h loop.h
  317. flow.o : flow.c $(CONFIG_H) $(RTL_H) flags.h insn-config.h \
  318.    basic-block.h regs.h hard-reg-set.h output.h
  319. combine.o : combine.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h  \
  320.    insn-config.h insn-flags.h insn-codes.h insn-attr.h regs.h expr.h \
  321.    basic-block.h recog.h real.h
  322. regclass.o : regclass.c $(CONFIG_H) $(RTL_H) hard-reg-set.h flags.h \
  323.    basic-block.h regs.h insn-config.h recog.h 
  324. local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) flags.h basic-block.h \
  325.    regs.h hard-reg-set.h insn-config.h recog.h output.h
  326. global.o : global.c $(CONFIG_H) $(RTL_H) flags.h  \
  327.    basic-block.h regs.h hard-reg-set.h insn-config.h output.h
  328.  
  329. reload.o : reload.c $(CONFIG_H) $(RTL_H) flags.h \
  330.    reload.h recog.h hard-reg-set.h insn-config.h insn-codes.h regs.h real.h
  331. reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h expr.h \
  332.    reload.h regs.h hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
  333.    basic-block.h recog.h output.h
  334. caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
  335.    regs.h hard-reg-set.h insn-config.h basic-block.h recog.h reload.h expr.h
  336. reorg.o : reorg.c $(CONFIG_H) $(RTL_H) conditions.h hard-reg-set.h \
  337.    basic-block.h regs.h insn-config.h insn-attr.h insn-flags.h recog.h \
  338.    flags.h output.h
  339. sched.o : sched.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h \
  340.    flags.h insn-config.h insn-attr.h
  341. final.o : final.c $(CONFIG_H) $(RTL_H) gvarargs.h flags.h regs.h \
  342.    recog.h conditions.h insn-config.h insn-attr.h real.h output.h \
  343.    hard-reg-set.h insn-codes.h gstab.h xcoffout.h
  344. recog.o : recog.c $(CONFIG_H) $(RTL_H)  \
  345.    regs.h recog.h hard-reg-set.h flags.h insn-config.h insn-attr.h \
  346.    insn-flags.h insn-codes.h real.h
  347. reg-stack.o : reg-stack.c $(CONFIG_H) $(RTL_H) $(TREE_H) \
  348.    regs.h hard-reg-set.h flags.h insn-config.h
  349.    
  350. aux-output.o : aux-output.c $(CONFIG_H) \
  351.    $(RTL_H) regs.h hard-reg-set.h real.h insn-config.h conditions.h \
  352.    insn-flags.h output.h insn-attr.h insn-codes.h
  353.  
  354. # Now the source files that are generated from the machine description.
  355.  
  356. .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
  357.   insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c \
  358.   insn-attr.h insn-attrtab.c
  359.  
  360. insn-config.h : md genconfig
  361.     ./genconfig md > tmp-insn-config.h
  362.     ./move-if-change tmp-insn-config.h insn-config.h
  363.  
  364. insn-flags.h : md genflags
  365.     ./genflags md > tmp-insn-flags.h
  366.     ./move-if-change tmp-insn-flags.h insn-flags.h
  367.  
  368. insn-codes.h : md gencodes
  369.     ./gencodes md > tmp-insn-codes.h
  370.     ./move-if-change tmp-insn-codes.h insn-codes.h
  371.  
  372. insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h
  373.     $(CC) $(CFLAGS) -c insn-emit.c
  374.  
  375. insn-emit.c : md genemit
  376.     ./genemit md > tmp-insn-emit.c
  377.     ./move-if-change tmp-insn-emit.c insn-emit.c
  378.  
  379. insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
  380.     $(CC) $(CFLAGS) -c insn-recog.c
  381.  
  382. insn-recog.c : md genrecog
  383.     ./genrecog md > tmp-insn-recog.c
  384.     ./move-if-change tmp-insn-recog.c insn-recog.c
  385.  
  386. insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) insn-codes.h insn-flags.h \
  387.   insn-config.h flags.h rtl.h recog.h expr.h reload.h
  388.     $(CC) $(CFLAGS) -c insn-opinit.c
  389.  
  390. insn-opinit.c: md genopinit
  391.     ./genopinit md > tmp-opinit.c
  392.     ./move-if-change tmp-opinit.c insn-opinit.c
  393.  
  394. insn-extract.o : insn-extract.c $(RTL_H)
  395.     $(CC) $(CFLAGS) -c insn-extract.c
  396.  
  397. insn-extract.c : md genextract
  398.     ./genextract md > tmp-insn-extract.c
  399.     ./move-if-change tmp-insn-extract.c insn-extract.c
  400.  
  401. insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h
  402.     $(CC) $(CFLAGS) -c insn-peep.c
  403.  
  404. insn-peep.c : md genpeep
  405.     ./genpeep md > tmp-insn-peep.c
  406.     ./move-if-change tmp-insn-peep.c insn-peep.c
  407.  
  408. insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h insn-flags.h conditions.h output.h aux-output.c
  409.     $(CC) $(CFLAGS) -c insn-output.c
  410.  
  411. insn-output.c : md genoutput
  412.     ./genoutput md > tmp-insn-output.c
  413.     ./move-if-change tmp-insn-output.c insn-output.c
  414.  
  415. insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) regs.h real.h output.h \
  416.      insn-attr.h insn-config.h
  417.     $(CC) $(CFLAGS) -c insn-attrtab.c
  418.  
  419. insn-attr.h: md genattr
  420.     ./genattr md > tmp-attr.h
  421.     ./move-if-change tmp-attr.h insn-attr.h
  422.  
  423. insn-attrtab.c: md genattrtab
  424.     ./genattrtab md > tmp-attrtab.c
  425.     ./move-if-change tmp-attrtab.c insn-attrtab.c
  426.  
  427.  
  428. # Now the programs that generate those files.
  429.  
  430. genconfig : genconfig.oo rtl.oo $(LIBDEPS1)
  431.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genconfig genconfig.oo rtl.oo $(LIBS1)
  432.  
  433. genconfig.oo : genconfig.c $(RTL_H)
  434.     $(HOSTCC) $(HOSTCFLAGS) -c genconfig.c -o genconfig.oo
  435.  
  436. genflags : genflags.oo rtl.oo $(LIBDEPS1)
  437.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genflags genflags.oo rtl.oo $(LIBS1)
  438.  
  439. genflags.oo : genflags.c $(RTL_H)
  440.     $(HOSTCC) $(HOSTCFLAGS) -c genflags.c -o genflags.oo
  441.  
  442. gencodes : gencodes.oo rtl.oo $(LIBDEPS1)
  443.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o gencodes gencodes.oo rtl.oo $(LIBS1)
  444.  
  445. gencodes.oo : gencodes.c $(RTL_H)
  446.     $(HOSTCC) $(HOSTCFLAGS) -c gencodes.c -o gencodes.oo
  447.  
  448. genemit : genemit.oo rtl.oo $(LIBDEPS1)
  449.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genemit genemit.oo rtl.oo $(LIBS1)
  450.  
  451. genemit.oo : genemit.c $(RTL_H)
  452.     $(HOSTCC) $(HOSTCFLAGS) -c genemit.c -o genemit.oo
  453.  
  454. genopinit : genopinit.oo rtl.oo $(LIBDEPS1)
  455.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genopinit genopinit.oo rtl.oo $(LIBS1)
  456.  
  457. genopinit.oo : genopinit.c $(RTL_H)
  458.     $(HOSTCC) $(HOSTCFLAGS) -c genopinit.c -o genopinit.oo
  459.  
  460. genrecog : genrecog.oo rtl.oo $(LIBDEPS1)
  461.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genrecog genrecog.oo rtl.oo $(LIBS1)
  462.  
  463. genrecog.oo : genrecog.c $(RTL_H)
  464.     $(HOSTCC) $(HOSTCFLAGS) -c genrecog.c -o genrecog.oo
  465.  
  466. genextract : genextract.oo rtl.oo $(LIBDEPS1)
  467.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genextract genextract.oo rtl.oo $(LIBS1)
  468.  
  469. genextract.oo : genextract.c $(RTL_H)
  470.     $(HOSTCC) $(HOSTCFLAGS) -c genextract.c -o genextract.oo
  471.  
  472. genpeep : genpeep.oo rtl.oo $(LIBDEPS1)
  473.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genpeep genpeep.oo rtl.oo $(LIBS1)
  474.  
  475. genpeep.oo : genpeep.c $(RTL_H)
  476.     $(HOSTCC) $(HOSTCFLAGS) -c genpeep.c -o genpeep.oo
  477.  
  478. genoutput : genoutput.oo rtl.oo $(LIBDEPS1)
  479.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genoutput genoutput.oo rtl.oo $(LIBS1)
  480.  
  481. genoutput.oo : genoutput.c $(RTL_H)
  482.     $(HOSTCC) $(HOSTCFLAGS) -c genoutput.c -o genoutput.oo
  483.  
  484. genattr : genattr.oo rtl.oo $(LIBDEPS1)
  485.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genattr \
  486.      genattr.oo rtl.oo $(LIBS1)
  487.  
  488. genattr.oo : genattr.c $(RTL_H) config.h
  489.     $(HOSTCC) -c $(HOSTCFLAGS) genattr.c -o genattr.oo
  490.  
  491. genattrtab : genattrtab.oo rtl.oo rtlanal.oo $(LIBDEPS1)
  492.     $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o genattrtab \
  493.      genattrtab.oo rtl.oo rtlanal.oo $(LIBS1)
  494.  
  495. genattrtab.oo : genattrtab.c $(RTL_H) config.h insn-config.h
  496.     $(HOSTCC) -c $(HOSTCFLAGS) genattrtab.c -o genattrtab.oo
  497.  
  498. rtl.oo : rtl.c $(CONFIG_H) $(RTL_H)
  499.     $(HOSTCC) $(HOSTCFLAGS) -c rtl.c -o rtl.oo
  500.  
  501. rtlanal.oo : rtlanal.c $(CONFIG_H) $(RTL_H)
  502.     $(HOSTCC) $(HOSTCFLAGS) -c rtlanal.c -o rtlanal.oo
  503.  
  504. obstack.oo : obstack.c
  505.     $(HOSTCC) $(HOSTCFLAGS) -c obstack.c -o obstack.oo
  506.  
  507. # Making the preprocessor
  508. gcc-cpp.ttp: cccp
  509.     -rm -f gcc-cpp.ttp
  510.     ln cccp gcc-cpp.ttp
  511.  
  512. cccp: cccp.o cexp.o version.o $(LIBDEPS)
  513.     $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
  514. cexp.o: cexp.c
  515. cexp.c: cexp.y
  516.     $(BISON) cexp.y
  517.     mv cexp.tab.c cexp.c
  518. cccp.o: cccp.c
  519.  
  520. # gnulib is not deleted because deleting it would be inconvenient
  521. # for most uses of this target.
  522. clean:
  523.     -rm -f *.o *.oo $(STAGESTUFF)
  524.     -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
  525.  
  526. # Get rid of every file that's generated from some other file (except INSTALL).
  527. realclean: clean
  528.     -rm -f $(ALL)
  529.     -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
  530.     -rm -f errs gnulib TAGS 
  531.     -rm -f core report
  532.     -rm -f internals internals-* internals.?? internals.??s
  533.  
  534. # Copy the files into directories where they will be run.
  535. #install: all
  536. #    install cc1 $(libdir)/gcc-cc1
  537. #    install cpp $(libdir)/gcc-cpp
  538. #    install gcc $(bindir)
  539.  
  540. force:
  541.  
  542. #In GNU Make, ignore whether `stage*' exists.
  543. .PHONY: clean realclean
  544.