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