|
|
1.1 root 1: # Makefile for GNU C compiler.
1.1.1.12 root 2: # Copyright (C) 1987, 1988 Free Software Foundation, Inc.
1.1 root 3:
4: #This file is part of GNU CC.
5:
1.1.1.14! root 6: #GNU CC is free software; you can redistribute it and/or modify
! 7: #it under the terms of the GNU General Public License as published by
! 8: #the Free Software Foundation; either version 1, or (at your option)
! 9: #any later version.
! 10:
1.1 root 11: #GNU CC is distributed in the hope that it will be useful,
1.1.1.14! root 12: #but WITHOUT ANY WARRANTY; without even the implied warranty of
! 13: #MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
! 14: #GNU General Public License for more details.
! 15:
! 16: #You should have received a copy of the GNU General Public License
! 17: #along with GNU CC; see the file COPYING. If not, write to
! 18: #the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
1.1 root 19:
20:
1.1.1.2 root 21: CFLAGS = -g
1.1 root 22: CC = cc
1.1.1.2 root 23: # OLDCC should not be the GNU C compiler.
24: OLDCC = cc
25: BISON = bison
1.1.1.12 root 26: BISONFLAGS = -v
1.1.1.2 root 27: AR = ar
28: SHELL = /bin/sh
1.1.1.12 root 29: # on sysV, define this as cp.
1.1.1.14! root 30: INSTALL = install -c
1.1.1.2 root 31:
1.1.1.12 root 32: # Directory in which to put the executable for the command `gcc'
33: bindir = $(prefix)/usr/local/bin
34: # Directory in which to put the subprograms used by the compiler.
35: libdir = $(prefix)/usr/local/lib
36: # Directory in which to put man pages.
37: mandir = $(prefix)/usr/local/man/man1
1.1.1.13 root 38: # Number to put in man-page filename.
39: manext = 1
1.1.1.2 root 40:
41: # These are what you would need on HPUX:
1.1.1.10 root 42: # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300
1.1.1.13 root 43: # If you are using the GNU assembler and linker on HPUX,
44: # add -I../hp-include to CFLAGS.
1.1.1.2 root 45: # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5
46: # bites whenever tree.def, rtl.def or machmode.def is included
47: # (ie., on every source file).
48: # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700
49: # For CCLIBFLAGS you might want to specify the switch that
50: # forces only 68000 instructions to be used.
51:
1.1.1.4 root 52: # If you are making gcc for the first time, and if you are compiling it with
53: # a non-gcc compiler, and if your system doesn't have a working alloca() in any
1.1.1.7 root 54: # of the standard libraries (as is true for HP/UX or Genix),
55: # then get alloca.c from GNU Emacs and un-comment the following line:
56: # ALLOCA = alloca.o
1.1.1.2 root 57:
1.1.1.4 root 58: # If your system has alloca() in /lib/libPW.a, un-comment the following line:
1.1.1.7 root 59: # CLIB= -lPW
1.1.1.12 root 60:
1.1.1.7 root 61: # If your system's malloc() routine fails for any reason (as it does on
62: # certain versions of Genix), try getting the files
63: # malloc.c and getpagesize.h from GNU Emacs and un-comment the following line:
64: # MALLOC = malloc.o
1.1 root 65:
1.1.1.5 root 66: # If you are running GCC on an Apollo, you will need this:
67: # CFLAGS = -g -O -M 3000 -U__STDC__ -DSHORT_ENUM_BUG
68:
1.1.1.7 root 69: # Change this to a null string if obstacks are installed in the
70: # system library.
1.1 root 71: OBSTACK=obstack.o
72:
1.1.1.7 root 73: # Dependency on obstack, alloca, malloc or whatever library facilities
74: # are not installed in the system libraries.
75: LIBDEPS= $(OBSTACK) $(ALLOCA) $(MALLOC)
76:
77: # How to link with both our special library facilities
78: # and the system's installed libraries.
79: LIBS = $(OBSTACK) $(ALLOCA) $(MALLOC) $(CLIB)
80:
1.1 root 81: DIR = ../gcc
82:
1.1.1.12 root 83: # Language-specific object files for C.
84: C_OBJS = c-parse.tab.o c-decl.o c-typeck.o c-convert.o
85:
86: # Language-specific object files for C++.
87: # (These are not yet released.)
88: CPLUS_OBJS = cplus-parse.o cplus-decl.o cplus-typeck.o \
89: cplus-cvt.o cplus-search.o cplus-lex.o \
90: cplus-class.o cplus-init.o cplus-method.o
91:
92: # Language-independent object files.
93: OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
1.1.1.2 root 94: rtl.o expr.o stmt.o expmed.o explow.o optabs.o varasm.o \
1.1.1.4 root 95: symout.o dbxout.o sdbout.o emit-rtl.o insn-emit.o \
1.1.1.2 root 96: integrate.o jump.o cse.o loop.o flow.o stupid.o combine.o \
1.1.1.14! root 97: regclass.o local-alloc.o global-alloc.o reload.o reload1.o caller-save.o \
! 98: insn-peep.o final.o recog.o insn-recog.o insn-extract.o insn-output.o
1.1 root 99:
1.1.1.2 root 100: # Files to be copied away after each stage in building.
101: STAGE_GCC=gcc
102: STAGESTUFF = *.o insn-flags.h insn-config.h insn-codes.h \
103: insn-output.c insn-recog.c insn-emit.c insn-extract.c insn-peep.c \
104: genemit genoutput genrecog genextract genflags gencodes genconfig genpeep \
1.1.1.12 root 105: cc1 cpp cccp # cc1plus
1.1.1.2 root 106:
107: # Members of gnulib.
1.1.1.12 root 108: LIBFUNCS = _eprintf _builtin_new _builtin_New _builtin_del \
1.1.1.2 root 109: _umulsi3 _mulsi3 _udivsi3 _divsi3 _umodsi3 _modsi3 \
1.1.1.12 root 110: _lshrsi3 _lshlsi3 _ashrsi3 _ashlsi3 _cmpdi2 _ucmpdi2 \
1.1.1.2 root 111: _divdf3 _muldf3 _negdf2 _adddf3 _subdf3 _cmpdf2 \
112: _fixunsdfsi _fixunsdfdi _fixdfsi _fixdfdi \
113: _floatsidf _floatdidf _truncdfsf2 _extendsfdf2 \
1.1.1.11 root 114: _addsf3 _negsf2 _subsf3 _cmpsf2 _mulsf3 _divsf3 _varargs
1.1.1.2 root 115:
1.1.1.8 root 116: # Header files that are made available to programs compiled with gcc.
117: USER_H = stddef.h stdarg.h assert.h varargs.h va-*.h limits.h
118:
1.1 root 119: # If you want to recompile everything, just do rm *.o.
120: # CONFIG_H = config.h tm.h
121: CONFIG_H =
122: RTL_H = rtl.h rtl.def machmode.def
1.1.1.13 root 123: TREE_H = tree.h real.h tree.def machmode.def
1.1.1.12 root 124: CPLUS_TREE_H = $(TREE_H) cplus-tree.h c-tree.h
1.1 root 125:
1.1.1.12 root 126: all: gnulib gcc cc1 cpp # cc1plus
1.1.1.2 root 127:
1.1.1.12 root 128: lang-c: gnulib gcc cc1 cpp
129: # lang-cplus: gnulib gcc cc1plus cpp
130:
131: doc: cpp.info gplus.info gcc.info
1.1.1.4 root 132:
1.1.1.2 root 133: compilations: ${OBJS}
1.1 root 134:
1.1.1.7 root 135: gcc: gcc.o version.o $(LIBDEPS)
1.1.1.6 root 136: $(CC) $(CFLAGS) $(LDFLAGS) -o gccnew gcc.o version.o $(LIBS)
1.1.1.2 root 137: # Go via `gccnew' to avoid `file busy' if $(CC) is `gcc'.
138: mv gccnew gcc
1.1 root 139:
1.1.1.2 root 140: gcc.o: gcc.c $(CONFIG_H)
1.1.1.4 root 141: $(CC) $(CFLAGS) -c -DSTANDARD_EXEC_PREFIX=\"$(libdir)/gcc-\" gcc.c
1.1 root 142:
1.1.1.12 root 143: cc1: $(C_OBJS) $(OBJS) $(LIBDEPS)
144: $(CC) $(CFLAGS) $(LDFLAGS) -o cc1 $(C_OBJS) $(OBJS) $(LIBS)
145:
146: cc1plus: $(CPLUS_OBJS) $(OBJS) $(LIBDEPS)
147: $(CC) $(CFLAGS) $(LDFLAGS) -o cc1plus $(CPLUS_OBJS) $(OBJS) $(LIBS)
1.1 root 148:
1.1.1.2 root 149: #Library of arithmetic subroutines
150: # Don't compile this with gcc!
151: gnulib: gnulib.c
152: -mkdir libtemp
153: cd libtemp; \
154: rm -f gnulib; \
155: for name in $(LIBFUNCS); \
156: do \
157: echo $${name}; \
158: rm -f $${name}.c; \
1.1.1.11 root 159: cp ../gnulib.c $${name}.c; \
1.1.1.2 root 160: $(OLDCC) $(CCLIBFLAGS) -O -I.. -c -DL$${name} $${name}.c; \
161: $(AR) qc gnulib $${name}.o; \
162: done
163: mv libtemp/gnulib .
164: rm -rf libtemp
1.1.1.4 root 165: if [ -f /usr/bin/ranlib ] ; then ranlib gnulib ;fi
1.1.1.2 root 166: # On HPUX, if you are working with the GNU assembler and linker,
1.1.1.13 root 167: # the previous line must be replaced with the following two lines.
1.1.1.2 root 168: # No change is needed here if you are using the HPUX assembler and linker.
169: # mv gnulib gnulib-hp
1.1.1.13 root 170: # ../hp-bin/hpxt gnulib-hp gnulib
1.1 root 171:
1.1.1.7 root 172:
1.1.1.12 root 173: # C language specific files.
1.1.1.7 root 174:
175: c-parse.tab.o : c-parse.tab.c $(CONFIG_H) $(TREE_H) c-parse.h c-tree.h
176: c-parse.tab.c : c-parse.y
1.1.1.12 root 177: $(BISON) $(BISONFLAGS) c-parse.y
1.1.1.7 root 178:
179: c-decl.o : c-decl.c $(CONFIG_H) $(TREE_H) c-tree.h c-parse.h flags.h
180: c-typeck.o : c-typeck.c $(CONFIG_H) $(TREE_H) c-tree.h flags.h
181: c-convert.o : c-convert.c $(CONFIG_H) $(TREE_H)
182:
1.1.1.12 root 183: # C++ language specific files.
184:
185: cplus-parse.o : cplus-parse.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
186: $(CC) -c $(CFLAGS) -DPARSE_OUTPUT=\"$(PWD)/cplus-parse.output\" cplus-parse.c
187:
188: cplus-parse.h cplus-parse.c : cplus-parse.y
189: @echo expect 49 shift/reduce conflicts and 4 reduce/reduce conflicts
190: $(BISON) $(BISONFLAGS) -d -o cplus-parse.c cplus-parse.y
191:
192: cplus-lex.o : cplus-lex.c $(CONFIG_H) $(CPLUS_TREE_H) cplus-parse.h
193: cplus-decl.o : cplus-decl.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
194: cplus-typeck.o : cplus-typeck.c $(CONFIG_H) $(CPLUS_TREE_H) flags.h
195: cplus-class.o : cplus-class.c $(CONFIG_H) $(CPLUS_TREE_H)
196: cplus-init.o : cplus-init.c $(CONFIG_H) $(CPLUS_TREE_H)
197: cplus-method.o : cplus-method.c $(CONFIG_H) $(CPLUS_TREE_H)
198: cplus-cvt.o : cplus-cvt.c $(CONFIG_H) $(CPLUS_TREE_H)
199: cplus-search.o : cplus-search.c $(CONFIG_H) $(CPLUS_TREE_H)
200: new-method.o : new-method.c $(CONFIG_H) $(CPLUS_TREE_H)
201:
1.1.1.7 root 202: # Language-independent files.
203:
1.1 root 204: tree.o : tree.c $(CONFIG_H) $(TREE_H)
205: print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
206: stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H)
207: fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H)
1.1.1.2 root 208: toplev.o : toplev.c $(CONFIG_H) $(TREE_H) flags.h
1.1 root 209:
210: rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
211:
1.1.1.13 root 212: varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h expr.h \
213: insn-codes.h hard-reg-set.h
1.1.1.2 root 214: stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
1.1.1.6 root 215: insn-flags.h expr.h insn-config.h regs.h insn-codes.h
1.1.1.2 root 216: expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
217: insn-flags.h insn-codes.h expr.h insn-config.h recog.h
218: expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
219: insn-flags.h insn-codes.h expr.h insn-config.h recog.h
1.1.1.6 root 220: explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h insn-codes.h
1.1.1.2 root 221: optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h \
222: insn-flags.h insn-codes.h expr.h insn-config.h recog.h
223: symout.o : symout.c $(CONFIG_H) $(TREE_H) $(RTL_H) symseg.h gdbfiles.h
1.1.1.7 root 224: dbxout.o : dbxout.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h
1.1.1.4 root 225: sdbout.o : sdbout.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h
1.1.1.2 root 226:
1.1.1.13 root 227: emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h real.h
1.1 root 228:
1.1.1.6 root 229: integrate.o : integrate.c $(CONFIG_H) $(RTL_H) $(TREE_H) flags.h expr.h \
230: insn-flags.h insn-codes.h
1.1 root 231:
1.1.1.2 root 232: jump.o : jump.c $(CONFIG_H) $(RTL_H) flags.h regs.h
233: stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h
1.1 root 234:
1.1.1.13 root 235: cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h real.h
236: loop.o : loop.c $(CONFIG_H) $(RTL_H) insn-config.h insn-codes.h \
237: regs.h recog.h flags.h expr.h
1.1.1.2 root 238: flow.o : flow.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h
239: combine.o : combine.c $(CONFIG_H) $(RTL_H) flags.h \
240: insn-config.h regs.h basic-block.h recog.h
1.1.1.4 root 241: regclass.o : regclass.c $(CONFIG_H) $(RTL_H) flags.h regs.h \
242: insn-config.h recog.h hard-reg-set.h
243: local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h \
244: insn-config.h recog.h hard-reg-set.h
1.1.1.2 root 245: global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) flags.h \
246: basic-block.h regs.h hard-reg-set.h insn-config.h
1.1 root 247:
1.1.1.2 root 248: reload.o : reload.c $(CONFIG_H) $(RTL_H) \
249: reload.h recog.h hard-reg-set.h insn-config.h regs.h
250: reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h \
251: reload.h regs.h hard-reg-set.h insn-config.h basic-block.h
1.1.1.14! root 252: caller-save.o : caller-save.c $(CONFIG_H) $(RTL_H) flags.h \
! 253: reload.h regs.h hard-reg-set.h insn-config.h basic-block.h recog.h
1.1.1.6 root 254: final.o : final.c $(CONFIG_H) $(RTL_H) regs.h recog.h conditions.h gdbfiles.h \
1.1.1.13 root 255: insn-config.h real.h
1.1.1.2 root 256: recog.o : recog.c $(CONFIG_H) $(RTL_H) \
257: regs.h recog.h hard-reg-set.h insn-config.h
1.1 root 258:
1.1.1.12 root 259: # Normally this target is not used; but it is used if you
260: # define ALLOCA=alloca.o. In that case, you must get a suitable alloca.c
261: # from the GNU Emacs distribution.
262: # Note some machines won't allow $(CC) without -S on this source file.
263: alloca.o: alloca.c
264: $(CC) $(CFLAGS) -S alloca.c
265: as alloca.s -o alloca.o
266:
1.1 root 267: # Now the source files that are generated from the machine description.
268:
1.1.1.2 root 269: .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
270: insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c
271:
1.1.1.12 root 272: # The following pair of rules has this effect:
273: # genconfig is run only if the md has changed since genconfig was last run;
274: # but the file insn-config.h is touched only when its contents actually change.
275:
276: # Each of the other insn-* files is handled by a similar pair of rules.
277:
1.1.1.13 root 278: insn-config.h: stamp-config.h ;
1.1.1.12 root 279: stamp-config.h : md genconfig
1.1.1.2 root 280: ./genconfig md > tmp-insn-config.h
281: ./move-if-change tmp-insn-config.h insn-config.h
1.1.1.12 root 282: touch stamp-config.h
1.1 root 283:
1.1.1.13 root 284: insn-flags.h: stamp-flags.h ;
1.1.1.12 root 285: stamp-flags.h : md genflags
1.1.1.2 root 286: ./genflags md > tmp-insn-flags.h
287: ./move-if-change tmp-insn-flags.h insn-flags.h
1.1.1.12 root 288: touch stamp-flags.h
1.1 root 289:
1.1.1.13 root 290: insn-codes.h: stamp-codes.h ;
1.1.1.12 root 291: stamp-codes.h : md gencodes
1.1.1.2 root 292: ./gencodes md > tmp-insn-codes.h
293: ./move-if-change tmp-insn-codes.h insn-codes.h
1.1.1.12 root 294: touch stamp-codes.h
1.1 root 295:
1.1.1.13 root 296: insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h real.h
1.1.1.2 root 297: $(CC) $(CFLAGS) -c insn-emit.c
1.1 root 298:
1.1.1.13 root 299: insn-emit.c: stamp-emit.c ;
1.1.1.12 root 300: stamp-emit.c : md genemit
1.1.1.2 root 301: ./genemit md > tmp-insn-emit.c
302: ./move-if-change tmp-insn-emit.c insn-emit.c
1.1.1.12 root 303: touch stamp-emit.c
1.1 root 304:
305: insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
1.1.1.2 root 306: $(CC) $(CFLAGS) -c insn-recog.c
1.1 root 307:
1.1.1.13 root 308: insn-recog.c: stamp-recog.c ;
1.1.1.12 root 309: stamp-recog.c : md genrecog
1.1.1.2 root 310: ./genrecog md > tmp-insn-recog.c
311: ./move-if-change tmp-insn-recog.c insn-recog.c
1.1.1.12 root 312: touch stamp-recog.c
1.1 root 313:
314: insn-extract.o : insn-extract.c $(RTL_H)
1.1.1.2 root 315: $(CC) $(CFLAGS) -c insn-extract.c
1.1 root 316:
1.1.1.13 root 317: insn-extract.c: stamp-extract.c ;
1.1.1.12 root 318: stamp-extract.c : md genextract
1.1.1.2 root 319: ./genextract md > tmp-insn-extract.c
320: ./move-if-change tmp-insn-extract.c insn-extract.c
1.1.1.12 root 321: touch stamp-extract.c
1.1 root 322:
1.1.1.13 root 323: insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h real.h
1.1.1.2 root 324: $(CC) $(CFLAGS) -c insn-peep.c
325:
1.1.1.13 root 326: insn-peep.c: stamp-peep.c ;
1.1.1.12 root 327: stamp-peep.c : md genpeep
1.1.1.2 root 328: ./genpeep md > tmp-insn-peep.c
329: ./move-if-change tmp-insn-peep.c insn-peep.c
1.1.1.12 root 330: touch stamp-peep.c
1.1.1.2 root 331:
1.1.1.13 root 332: insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h real.h conditions.h \
333: insn-config.h insn-flags.h output.h aux-output.c
1.1.1.2 root 334: $(CC) $(CFLAGS) -c insn-output.c
1.1 root 335:
1.1.1.13 root 336: insn-output.c: stamp-output.c ;
1.1.1.12 root 337: stamp-output.c : md genoutput
1.1.1.2 root 338: ./genoutput md > tmp-insn-output.c
339: ./move-if-change tmp-insn-output.c insn-output.c
1.1.1.12 root 340: touch stamp-output.c
1.1 root 341:
342: # Now the programs that generate those files.
343:
1.1.1.7 root 344: genconfig : genconfig.o rtl.o $(LIBDEPS)
1.1.1.6 root 345: $(CC) $(CFLAGS) $(LDFLAGS) -o genconfig genconfig.o rtl.o $(LIBS)
1.1.1.2 root 346:
347: genconfig.o : genconfig.c $(RTL_H)
348: $(CC) $(CFLAGS) -c genconfig.c
1.1 root 349:
1.1.1.7 root 350: genflags : genflags.o rtl.o $(LIBDEPS)
1.1.1.6 root 351: $(CC) $(CFLAGS) $(LDFLAGS) -o genflags genflags.o rtl.o $(LIBS)
1.1 root 352:
1.1.1.2 root 353: genflags.o : genflags.c $(RTL_H)
354: $(CC) $(CFLAGS) -c genflags.c
1.1 root 355:
1.1.1.7 root 356: gencodes : gencodes.o rtl.o $(LIBDEPS)
1.1.1.6 root 357: $(CC) $(CFLAGS) $(LDFLAGS) -o gencodes gencodes.o rtl.o $(LIBS)
1.1 root 358:
1.1.1.2 root 359: gencodes.o : gencodes.c $(RTL_H)
360: $(CC) $(CFLAGS) -c gencodes.c
1.1 root 361:
1.1.1.7 root 362: genemit : genemit.o rtl.o $(LIBDEPS)
1.1.1.6 root 363: $(CC) $(CFLAGS) $(LDFLAGS) -o genemit genemit.o rtl.o $(LIBS)
1.1 root 364:
1.1.1.2 root 365: genemit.o : genemit.c $(RTL_H)
366: $(CC) $(CFLAGS) -c genemit.c
1.1 root 367:
1.1.1.7 root 368: genrecog : genrecog.o rtl.o $(LIBDEPS)
1.1.1.6 root 369: $(CC) $(CFLAGS) $(LDFLAGS) -o genrecog genrecog.o rtl.o $(LIBS)
1.1 root 370:
1.1.1.2 root 371: genrecog.o : genrecog.c $(RTL_H)
372: $(CC) $(CFLAGS) -c genrecog.c
1.1 root 373:
1.1.1.7 root 374: genextract : genextract.o rtl.o $(LIBDEPS)
1.1.1.6 root 375: $(CC) $(CFLAGS) $(LDFLAGS) -o genextract genextract.o rtl.o $(LIBS)
1.1 root 376:
1.1.1.2 root 377: genextract.o : genextract.c $(RTL_H)
378: $(CC) $(CFLAGS) -c genextract.c
1.1 root 379:
1.1.1.7 root 380: genpeep : genpeep.o rtl.o $(LIBDEPS)
1.1.1.6 root 381: $(CC) $(CFLAGS) $(LDFLAGS) -o genpeep genpeep.o rtl.o $(LIBS)
1.1 root 382:
1.1.1.2 root 383: genpeep.o : genpeep.c $(RTL_H)
384: $(CC) $(CFLAGS) -c genpeep.c
1.1 root 385:
1.1.1.7 root 386: genoutput : genoutput.o rtl.o $(LIBDEPS)
1.1.1.6 root 387: $(CC) $(CFLAGS) $(LDFLAGS) -o genoutput genoutput.o rtl.o $(LIBS)
1.1.1.2 root 388:
389: genoutput.o : genoutput.c $(RTL_H)
390: $(CC) $(CFLAGS) -c genoutput.c
1.1 root 391:
392: # Making the preprocessor
393: cpp: cccp
394: -rm -f cpp
395: ln cccp cpp
1.1.1.7 root 396: cccp: cccp.o cexp.o version.o $(LIBDEPS)
397: $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS)
1.1.1.2 root 398: cexp.o: cexp.c
399: cexp.c: cexp.y
400: $(BISON) cexp.y
401: mv cexp.tab.c cexp.c
1.1 root 402: cccp.o: cccp.c
1.1.1.5 root 403: $(CC) $(CFLAGS) -DGCC_INCLUDE_DIR=\"$(libdir)/gcc-include\" \
404: -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" -c cccp.c
1.1 root 405:
1.1.1.4 root 406: cpp.info: cpp.texinfo
407: makeinfo $<
408:
1.1.1.12 root 409: gplus.info: gplus.texinfo
410: makeinfo $<
411:
1.1.1.10 root 412: gcc.info: gcc.texinfo
1.1.1.4 root 413: makeinfo $<
414:
1.1.1.2 root 415: # gnulib is not deleted because deleting it would be inconvenient
416: # for most uses of this target.
1.1 root 417: clean:
1.1.1.2 root 418: -rm -f $(STAGESTUFF) $(STAGE_GCC)
1.1.1.12 root 419: -rm -f stamp-*.[ch]
1.1.1.2 root 420: -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
421: -rm -f core
422:
1.1.1.8 root 423: # Get rid of every file that's generated from some other file (except INSTALL).
424: realclean: clean
425: -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs
1.1.1.12 root 426: #-rm -f cplus-parse.tab.c cplus-parse.output
427: -rm -f c-parse.tab.c c-parse.output
428: -rm -f errs gnulib cexp.c TAGS
429: -rm -f gcc.info* gcc.?? gcc.??s gcc.log gcc.toc gcc.*aux
430: -rm -f gplus.info* gplus.?? gplus.??s gplus.log gplus.toc gplus.*aux
431:
432: # Like realclean but also delete the links made to configure gcc.
433: cleanlinks: realclean
1.1.1.13 root 434: -rm -f tm.h aux-output.c config.h md config.status
1.1.1.8 root 435:
1.1.1.2 root 436: # Copy the files into directories where they will be run.
437: install: all
1.1.1.13 root 438: -mkdir $(libdir)
439: -if [ -f cc1 ] ; then $(INSTALL) cc1 $(libdir)/gcc-cc1 ;fi
440: -if [ -f cc1plus ] ; then $(INSTALL) cc1plus $(libdir)/gcc-cc1plus ;fi
1.1.1.12 root 441: $(INSTALL) gnulib $(libdir)/gcc-gnulib
1.1.1.13 root 442: -if [ -f /usr/bin/ranlib ] ; then (cd $(libdir); ranlib gcc-gnulib) ;fi
1.1.1.12 root 443: $(INSTALL) cpp $(libdir)/gcc-cpp
444: $(INSTALL) gcc $(bindir)
1.1.1.6 root 445: -mkdir $(libdir)/gcc-include
1.1.1.12 root 446: chmod ugo+rx $(libdir)/gcc-include
1.1.1.13 root 447: for file in $(USER_H); do $(INSTALL) $${file} $(libdir)/gcc-include; done
448: $(INSTALL) gcc.1 $(mandir)/gcc.$(manext)
1.1 root 449:
450: # do make -f ../gcc/Makefile maketest DIR=../gcc
451: # in the intended test directory to make it a suitable test directory.
452: maketest:
453: ln -s $(DIR)/*.[chy] .
454: ln -s $(DIR)/*.def .
455: ln -s $(DIR)/*.md .
1.1.1.11 root 456: -rm -f =*
1.1 root 457: ln -s $(DIR)/.gdbinit .
458: -ln -s $(DIR)/bison.simple .
1.1.1.11 root 459: ln -s $(DIR)/config.gcc .
1.1.1.2 root 460: ln -s $(DIR)/move-if-change .
1.1.1.11 root 461: if [ -f Makefile ] ; then false; else ln -s $(DIR)/Makefile . ; fi
462: -rm tm.h aux-output.c config.h md
463: make clean
464: # You must then run config.gcc to set up for compilation.
1.1.1.2 root 465:
1.1.1.10 root 466: bootstrap: all force
467: $(MAKE) stage1
468: $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)"
469: $(MAKE) stage2
470: $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)"
471:
1.1.1.13 root 472: bootstrap2: force
473: $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)"
474: $(MAKE) stage2
475: $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)"
476:
477: bootstrap3: force
478: $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)"
479:
1.1.1.2 root 480: # Copy the object files from a particular stage into a subdirectory.
481: stage1: force
482: -mkdir stage1
1.1.1.12 root 483: -mv $(STAGESTUFF) $(STAGE_GCC) stage1
1.1.1.10 root 484: -rm -f stage1/gnulib
1.1.1.12 root 485: -ln gnulib stage1 || (cp gnulib stage1 && ranlib stage1/gnulib)
1.1.1.2 root 486:
487: stage2: force
488: -mkdir stage2
1.1.1.12 root 489: -mv $(STAGESTUFF) $(STAGE_GCC) stage2
1.1.1.10 root 490: -rm -f stage2/gnulib
1.1.1.12 root 491: -ln gnulib stage2 || (cp gnulib stage2 && ranlib stage2/gnulib)
1.1.1.2 root 492:
493: stage3: force
494: -mkdir stage3
1.1.1.12 root 495: -mv $(STAGESTUFF) $(STAGE_GCC) stage3
1.1.1.10 root 496: -rm -f stage3/gnulib
1.1.1.12 root 497: -ln gnulib stage3 || (cp gnulib stage3 && ranlib stage3/gnulib)
1.1.1.8 root 498:
1.1.1.2 root 499: TAGS: force
1.1.1.9 root 500: mkdir temp
1.1.1.12 root 501: -mv c-parse.tab.c cplus-parse.c cplus-parse.h cexp.c temp
1.1.1.2 root 502: etags *.y *.h *.c
1.1.1.9 root 503: mv temp/* .
504: rmdir temp
505:
506: #In GNU Make, ignore whether `stage*' exists.
1.1.1.10 root 507: .PHONY: stage1 stage2 stage3 clean realclean TAGS bootstrap
508:
509: force:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.