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