|
|
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.2 root 39: 40: # These are what you would need on HPUX: 1.1.1.10 root 41: # CFLAGS = -Wc,-Ns2000 -Wc,-Ne700 -Wc,-Np300 1.1.1.2 root 42: # -g is desirable in CFLAGS, but a compiler bug in HPUX version 5 43: # bites whenever tree.def, rtl.def or machmode.def is included 44: # (ie., on every source file). 45: # CCLIBFLAGS = -Wc,-Ns2000 -Wc,-Ne700 46: # For CCLIBFLAGS you might want to specify the switch that 47: # forces only 68000 instructions to be used. 48: 1.1.1.12! root 49: # If you are using gas on hp-ux you need the following to fake up some ! 50: # system file definitions: ! 51: # CFLAGS = -g -I../hp-include ! 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 124: TREE_H = tree.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, 168: # the previous line must be replaced with 169: # No change is needed here if you are using the HPUX assembler and linker. 170: # mv gnulib gnulib-hp 171: # 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.6 root 213: varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H) flags.h expr.h insn-codes.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: 227: emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) regs.h insn-config.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.9 root 235: cse.o : cse.c $(CONFIG_H) $(RTL_H) regs.h hard-reg-set.h flags.h 1.1.1.11 root 236: loop.o : loop.c $(CONFIG_H) $(RTL_H) insn-config.h regs.h recog.h flags.h expr.h 1.1.1.2 root 237: flow.o : flow.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h 238: combine.o : combine.c $(CONFIG_H) $(RTL_H) flags.h \ 239: insn-config.h regs.h basic-block.h recog.h 1.1.1.4 root 240: regclass.o : regclass.c $(CONFIG_H) $(RTL_H) flags.h regs.h \ 241: insn-config.h recog.h hard-reg-set.h 242: local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h \ 243: insn-config.h recog.h hard-reg-set.h 1.1.1.2 root 244: global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) flags.h \ 245: basic-block.h regs.h hard-reg-set.h insn-config.h 1.1 root 246: 1.1.1.2 root 247: reload.o : reload.c $(CONFIG_H) $(RTL_H) \ 248: reload.h recog.h hard-reg-set.h insn-config.h regs.h 249: reload1.o : reload1.c $(CONFIG_H) $(RTL_H) flags.h \ 250: reload.h regs.h hard-reg-set.h insn-config.h basic-block.h 1.1.1.6 root 251: final.o : final.c $(CONFIG_H) $(RTL_H) regs.h recog.h conditions.h gdbfiles.h \ 252: insn-config.h 1.1.1.2 root 253: recog.o : recog.c $(CONFIG_H) $(RTL_H) \ 254: regs.h recog.h hard-reg-set.h insn-config.h 1.1 root 255: 1.1.1.12! root 256: # Normally this target is not used; but it is used if you ! 257: # define ALLOCA=alloca.o. In that case, you must get a suitable alloca.c ! 258: # from the GNU Emacs distribution. ! 259: # Note some machines won't allow $(CC) without -S on this source file. ! 260: alloca.o: alloca.c ! 261: $(CC) $(CFLAGS) -S alloca.c ! 262: as alloca.s -o alloca.o ! 263: 1.1 root 264: # Now the source files that are generated from the machine description. 265: 1.1.1.2 root 266: .PRECIOUS: insn-config.h insn-flags.h insn-codes.h \ 267: insn-emit.c insn-recog.c insn-extract.c insn-output.c insn-peep.c 268: 1.1.1.12! root 269: # The following pair of rules has this effect: ! 270: # genconfig is run only if the md has changed since genconfig was last run; ! 271: # but the file insn-config.h is touched only when its contents actually change. ! 272: ! 273: # Each of the other insn-* files is handled by a similar pair of rules. ! 274: ! 275: insn-config.h: stamp-config.h ! 276: stamp-config.h : md genconfig 1.1.1.2 root 277: ./genconfig md > tmp-insn-config.h 278: ./move-if-change tmp-insn-config.h insn-config.h 1.1.1.12! root 279: touch stamp-config.h 1.1 root 280: 1.1.1.12! root 281: insn-flags.h: stamp-flags.h ! 282: stamp-flags.h : md genflags 1.1.1.2 root 283: ./genflags md > tmp-insn-flags.h 284: ./move-if-change tmp-insn-flags.h insn-flags.h 1.1.1.12! root 285: touch stamp-flags.h 1.1 root 286: 1.1.1.12! root 287: insn-codes.h: stamp-codes.h ! 288: stamp-codes.h : md gencodes 1.1.1.2 root 289: ./gencodes md > tmp-insn-codes.h 290: ./move-if-change tmp-insn-codes.h insn-codes.h 1.1.1.12! root 291: touch stamp-codes.h 1.1 root 292: 1.1.1.2 root 293: insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) expr.h insn-config.h 294: $(CC) $(CFLAGS) -c insn-emit.c 1.1 root 295: 1.1.1.12! root 296: insn-emit.c: stamp-emit.c ! 297: stamp-emit.c : md genemit 1.1.1.2 root 298: ./genemit md > tmp-insn-emit.c 299: ./move-if-change tmp-insn-emit.c insn-emit.c 1.1.1.12! root 300: touch stamp-emit.c 1.1 root 301: 302: insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h 1.1.1.2 root 303: $(CC) $(CFLAGS) -c insn-recog.c 1.1 root 304: 1.1.1.12! root 305: insn-recog.c: stamp-recog.c ! 306: stamp-recog.c : md genrecog 1.1.1.2 root 307: ./genrecog md > tmp-insn-recog.c 308: ./move-if-change tmp-insn-recog.c insn-recog.c 1.1.1.12! root 309: touch stamp-recog.c 1.1 root 310: 311: insn-extract.o : insn-extract.c $(RTL_H) 1.1.1.2 root 312: $(CC) $(CFLAGS) -c insn-extract.c 1.1 root 313: 1.1.1.12! root 314: insn-extract.c: stamp-extract.c ! 315: stamp-extract.c : md genextract 1.1.1.2 root 316: ./genextract md > tmp-insn-extract.c 317: ./move-if-change tmp-insn-extract.c insn-extract.c 1.1.1.12! root 318: touch stamp-extract.c 1.1 root 319: 1.1.1.2 root 320: insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) regs.h 321: $(CC) $(CFLAGS) -c insn-peep.c 322: 1.1.1.12! root 323: insn-peep.c: stamp-peep.c ! 324: stamp-peep.c : md genpeep 1.1.1.2 root 325: ./genpeep md > tmp-insn-peep.c 326: ./move-if-change tmp-insn-peep.c insn-peep.c 1.1.1.12! root 327: touch stamp-peep.c 1.1.1.2 root 328: 329: 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 330: $(CC) $(CFLAGS) -c insn-output.c 1.1 root 331: 1.1.1.12! root 332: insn-output.c: stamp-output.c ! 333: stamp-output.c : md genoutput 1.1.1.2 root 334: ./genoutput md > tmp-insn-output.c 335: ./move-if-change tmp-insn-output.c insn-output.c 1.1.1.12! root 336: touch stamp-output.c 1.1 root 337: 338: # Now the programs that generate those files. 339: 1.1.1.7 root 340: genconfig : genconfig.o rtl.o $(LIBDEPS) 1.1.1.6 root 341: $(CC) $(CFLAGS) $(LDFLAGS) -o genconfig genconfig.o rtl.o $(LIBS) 1.1.1.2 root 342: 343: genconfig.o : genconfig.c $(RTL_H) 344: $(CC) $(CFLAGS) -c genconfig.c 1.1 root 345: 1.1.1.7 root 346: genflags : genflags.o rtl.o $(LIBDEPS) 1.1.1.6 root 347: $(CC) $(CFLAGS) $(LDFLAGS) -o genflags genflags.o rtl.o $(LIBS) 1.1 root 348: 1.1.1.2 root 349: genflags.o : genflags.c $(RTL_H) 350: $(CC) $(CFLAGS) -c genflags.c 1.1 root 351: 1.1.1.7 root 352: gencodes : gencodes.o rtl.o $(LIBDEPS) 1.1.1.6 root 353: $(CC) $(CFLAGS) $(LDFLAGS) -o gencodes gencodes.o rtl.o $(LIBS) 1.1 root 354: 1.1.1.2 root 355: gencodes.o : gencodes.c $(RTL_H) 356: $(CC) $(CFLAGS) -c gencodes.c 1.1 root 357: 1.1.1.7 root 358: genemit : genemit.o rtl.o $(LIBDEPS) 1.1.1.6 root 359: $(CC) $(CFLAGS) $(LDFLAGS) -o genemit genemit.o rtl.o $(LIBS) 1.1 root 360: 1.1.1.2 root 361: genemit.o : genemit.c $(RTL_H) 362: $(CC) $(CFLAGS) -c genemit.c 1.1 root 363: 1.1.1.7 root 364: genrecog : genrecog.o rtl.o $(LIBDEPS) 1.1.1.6 root 365: $(CC) $(CFLAGS) $(LDFLAGS) -o genrecog genrecog.o rtl.o $(LIBS) 1.1 root 366: 1.1.1.2 root 367: genrecog.o : genrecog.c $(RTL_H) 368: $(CC) $(CFLAGS) -c genrecog.c 1.1 root 369: 1.1.1.7 root 370: genextract : genextract.o rtl.o $(LIBDEPS) 1.1.1.6 root 371: $(CC) $(CFLAGS) $(LDFLAGS) -o genextract genextract.o rtl.o $(LIBS) 1.1 root 372: 1.1.1.2 root 373: genextract.o : genextract.c $(RTL_H) 374: $(CC) $(CFLAGS) -c genextract.c 1.1 root 375: 1.1.1.7 root 376: genpeep : genpeep.o rtl.o $(LIBDEPS) 1.1.1.6 root 377: $(CC) $(CFLAGS) $(LDFLAGS) -o genpeep genpeep.o rtl.o $(LIBS) 1.1 root 378: 1.1.1.2 root 379: genpeep.o : genpeep.c $(RTL_H) 380: $(CC) $(CFLAGS) -c genpeep.c 1.1 root 381: 1.1.1.7 root 382: genoutput : genoutput.o rtl.o $(LIBDEPS) 1.1.1.6 root 383: $(CC) $(CFLAGS) $(LDFLAGS) -o genoutput genoutput.o rtl.o $(LIBS) 1.1.1.2 root 384: 385: genoutput.o : genoutput.c $(RTL_H) 386: $(CC) $(CFLAGS) -c genoutput.c 1.1 root 387: 388: # Making the preprocessor 389: cpp: cccp 390: -rm -f cpp 391: ln cccp cpp 1.1.1.7 root 392: cccp: cccp.o cexp.o version.o $(LIBDEPS) 393: $(CC) $(CFLAGS) $(LDFLAGS) -o cccp cccp.o cexp.o version.o $(LIBS) 1.1.1.2 root 394: cexp.o: cexp.c 395: cexp.c: cexp.y 396: $(BISON) cexp.y 397: mv cexp.tab.c cexp.c 1.1 root 398: cccp.o: cccp.c 1.1.1.5 root 399: $(CC) $(CFLAGS) -DGCC_INCLUDE_DIR=\"$(libdir)/gcc-include\" \ 400: -DGPLUSPLUS_INCLUDE_DIR=\"$(libdir)/g++-include\" -c cccp.c 1.1 root 401: 1.1.1.4 root 402: cpp.info: cpp.texinfo 403: makeinfo $< 404: 1.1.1.12! root 405: gplus.info: gplus.texinfo ! 406: makeinfo $< ! 407: 1.1.1.10 root 408: gcc.info: gcc.texinfo 1.1.1.4 root 409: makeinfo $< 410: 1.1.1.2 root 411: # gnulib is not deleted because deleting it would be inconvenient 412: # for most uses of this target. 1.1 root 413: clean: 1.1.1.2 root 414: -rm -f $(STAGESTUFF) $(STAGE_GCC) 1.1.1.12! root 415: -rm -f stamp-*.[ch] 1.1.1.2 root 416: -rm -f *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop 417: -rm -f core 418: 1.1.1.8 root 419: # Get rid of every file that's generated from some other file (except INSTALL). 420: realclean: clean 421: -rm -f cpp.aux cpp.cps cpp.fns cpp.info cpp.kys cpp.pgs cpp.tps cpp.vrs 1.1.1.12! root 422: #-rm -f cplus-parse.tab.c cplus-parse.output ! 423: -rm -f c-parse.tab.c c-parse.output ! 424: -rm -f errs gnulib cexp.c TAGS ! 425: -rm -f gcc.info* gcc.?? gcc.??s gcc.log gcc.toc gcc.*aux ! 426: -rm -f gplus.info* gplus.?? gplus.??s gplus.log gplus.toc gplus.*aux ! 427: ! 428: # Like realclean but also delete the links made to configure gcc. ! 429: cleanlinks: realclean ! 430: -rm tm.h aux-output.c config.h md config.status 1.1.1.8 root 431: 1.1.1.2 root 432: # Copy the files into directories where they will be run. 433: install: all 1.1.1.12! root 434: if [ -f cc1 ] ; then $(INSTALL) cc1 $(libdir)/gcc-cc1 ;fi ! 435: if [ -f cc1plus ] ; then $(INSTALL) cc1plus $(libdir)/gcc-cc1plus ;fi ! 436: $(INSTALL) gnulib $(libdir)/gcc-gnulib ! 437: if [ -f /usr/bin/ranlib ] ; then (cd $(libdir); ranlib /gcc-gnulib) ;fi ! 438: $(INSTALL) cpp $(libdir)/gcc-cpp ! 439: $(INSTALL) gcc $(bindir) 1.1.1.6 root 440: -mkdir $(libdir)/gcc-include 1.1.1.12! root 441: chmod ugo+rx $(libdir)/gcc-include 1.1.1.8 root 442: cd $(libdir)/gcc-include; rm -f $(USER_H) 443: cp $(USER_H) $(libdir)/gcc-include 1.1.1.12! root 444: cp gcc.1 mandir 1.1 root 445: 446: # do make -f ../gcc/Makefile maketest DIR=../gcc 447: # in the intended test directory to make it a suitable test directory. 448: maketest: 449: ln -s $(DIR)/*.[chy] . 450: ln -s $(DIR)/*.def . 451: ln -s $(DIR)/*.md . 1.1.1.11 root 452: -rm -f =* 1.1 root 453: ln -s $(DIR)/.gdbinit . 454: -ln -s $(DIR)/bison.simple . 1.1.1.11 root 455: ln -s $(DIR)/config.gcc . 1.1.1.2 root 456: ln -s $(DIR)/move-if-change . 1.1.1.11 root 457: if [ -f Makefile ] ; then false; else ln -s $(DIR)/Makefile . ; fi 458: -rm tm.h aux-output.c config.h md 459: make clean 460: # You must then run config.gcc to set up for compilation. 1.1.1.2 root 461: 1.1.1.10 root 462: bootstrap: all force 463: $(MAKE) stage1 464: $(MAKE) CC="stage1/gcc -Bstage1/" CFLAGS="-O $(CFLAGS)" 465: $(MAKE) stage2 466: $(MAKE) CC="stage2/gcc -Bstage2/" CFLAGS="-O $(CFLAGS)" 467: 1.1.1.2 root 468: # Copy the object files from a particular stage into a subdirectory. 469: stage1: force 470: -mkdir stage1 1.1.1.12! root 471: -mv $(STAGESTUFF) $(STAGE_GCC) stage1 1.1.1.10 root 472: -rm -f stage1/gnulib 1.1.1.12! root 473: -ln gnulib stage1 || (cp gnulib stage1 && ranlib stage1/gnulib) 1.1.1.2 root 474: 475: stage2: force 476: -mkdir stage2 1.1.1.12! root 477: -mv $(STAGESTUFF) $(STAGE_GCC) stage2 1.1.1.10 root 478: -rm -f stage2/gnulib 1.1.1.12! root 479: -ln gnulib stage2 || (cp gnulib stage2 && ranlib stage2/gnulib) 1.1.1.2 root 480: 481: stage3: force 482: -mkdir stage3 1.1.1.12! root 483: -mv $(STAGESTUFF) $(STAGE_GCC) stage3 1.1.1.10 root 484: -rm -f stage3/gnulib 1.1.1.12! root 485: -ln gnulib stage3 || (cp gnulib stage3 && ranlib stage3/gnulib) 1.1.1.8 root 486: 1.1.1.2 root 487: TAGS: force 1.1.1.9 root 488: mkdir temp 1.1.1.12! root 489: -mv c-parse.tab.c cplus-parse.c cplus-parse.h cexp.c temp 1.1.1.2 root 490: etags *.y *.h *.c 1.1.1.9 root 491: mv temp/* . 492: rmdir temp 493: 494: #In GNU Make, ignore whether `stage*' exists. 1.1.1.10 root 495: .PHONY: stage1 stage2 stage3 clean realclean TAGS bootstrap 496: 497: force:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.