home *** CD-ROM | disk | FTP | other *** search
/ Computer Club Elmshorn Atari PD / CCE_PD.iso / pc / 0600 / CCE_0638.ZIP / CCE_0638 / UPDATE / UPDATE30.ZOO / gcc-2.4.0 / Makefile.cross < prev    next >
Makefile  |  1993-05-21  |  19KB  |  513 lines

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