Annotation of gcc/Makefile, revision 1.1.1.1

1.1       root        1: # Makefile for GNU C compiler.
                      2: #   Copyright (C) 1987 Free Software Foundation, Inc.
                      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: 
                     22: CFLAGS = -g -I.
                     23: CC = cc
                     24: 
                     25: # How to link with obstack
                     26: OBSTACK=obstack.o
                     27: # Dependency on obstack
                     28: OBSTACK1=obstack.o
                     29: 
                     30: LIBS = $(OBSTACK) $(CLIB)
                     31: DIR = ../gcc
                     32: 
                     33: OBJS = toplev.o parse.tab.o tree.o print-tree.o \
                     34:  decl.o typecheck.o stor-layout.o fold-const.o \
                     35:  varasm.o rtl.o expr.o stmt.o expmed.o explow.o optabs.o \
                     36:  symout.o dbxout.o emit-rtl.o insn-emit.o \
                     37:  jump.o cse.o loop.o flow.o stupid.o combine.o \
                     38:  regclass.o local-alloc.o global-alloc.o reload.o reload1.o \
                     39:  final.o recog.o insn-recog.o insn-extract.o insn-output.o
                     40: 
                     41: # If you want to recompile everything, just do rm *.o.
                     42: # CONFIG_H = config.h tm.h
                     43: CONFIG_H =
                     44: RTL_H = rtl.h rtl.def machmode.def
                     45: TREE_H = tree.h tree.def machmode.def
                     46: 
                     47: all: gcc cc1 cpp
                     48: 
                     49: gcc: gcc.o $(OBSTACK1)
                     50:        ld -o gcc /lib/crt0.o gcc.o -lg $(LIBS) -lc
                     51: 
                     52: gcc.o: gcc.c $(CONFIG)
                     53:        $(CC) -c $(CFLAGS) gcc.c
                     54: 
                     55: cc1: $(OBJS) $(OBSTACK1)
                     56:        ld -o cc1 /lib/crt0.o $(OBJS) -lg $(LIBS) -lc
                     57: 
                     58: ccprof: $(OBJS) $(OBSTACK1)
                     59:        ld -o cc1 /usr/lib/gcrt0.o $(OBJS) -lg $(OBSTACK) /usr/lib/libc_p.a -lc
                     60: 
                     61: decl.o : decl.c $(CONFIG_H) $(TREE_H) parse.h c-tree.h
                     62: typecheck.o : typecheck.c $(CONFIG_H) $(TREE_H) c-tree.h
                     63: tree.o : tree.c $(CONFIG_H) $(TREE_H)
                     64: print-tree.o : print-tree.c $(CONFIG_H) $(TREE_H)
                     65: stor-layout.o : stor-layout.c $(CONFIG_H) $(TREE_H)
                     66: fold-const.o : fold-const.c $(CONFIG_H) $(TREE_H)
                     67: toplev.o : toplev.c $(CONFIG_H) $(TREE_H)
                     68: varasm.o : varasm.c $(CONFIG_H) $(TREE_H) $(RTL_H)
                     69: 
                     70: parse.tab.o : parse.tab.c $(CONFIG_H) $(TREE_H) parse.h c-tree.h
                     71: 
                     72: parse.tab.c : parse.y
                     73:        bison -v parse.y
                     74: 
                     75: rtl.o : rtl.c $(CONFIG_H) $(RTL_H)
                     76: 
                     77: stmt.o : stmt.c $(CONFIG_H) $(RTL_H) $(TREE_H) insn-flags.h stupid.h
                     78: expr.o : expr.c $(CONFIG_H) $(RTL_H) $(TREE_H) insn-flags.h insn-codes.h expr.h
                     79: expmed.o : expmed.c $(CONFIG_H) $(RTL_H) $(TREE_H) insn-flags.h insn-codes.h expr.h
                     80: explow.o : explow.c $(CONFIG_H) $(RTL_H) $(TREE_H) expr.h
                     81: optabs.o : optabs.c $(CONFIG_H) $(RTL_H) $(TREE_H) insn-flags.h insn-codes.h expr.h insn-config.h recog.h
                     82: symout.o : symout.c $(CONFIG_H) $(TREE_H) $(RTL_H) symseg.h
                     83: dbxout.o : symout.c $(CONFIG_H) $(TREE_H) $(RTL_H) c-tree.h
                     84: 
                     85: emit-rtl.o : emit-rtl.c $(CONFIG_H) $(RTL_H) regs.h recog.h insn-config.h
                     86: 
                     87: jump.o : jump.c $(CONFIG_H) $(RTL_H)
                     88: stupid.o : stupid.c $(CONFIG_H) $(RTL_H) regs.h  hard-reg-set.h stupid.h
                     89: 
                     90: cse.o : cse.c $(CONFIG_H) $(RTL_H) insn-config.h regs.h
                     91: loop.o : loop.c $(CONFIG_H) $(RTL_H) insn-config.h regs.h recog.h
                     92: flow.o : flow.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h
                     93: combine.o : combine.c $(CONFIG_H) $(RTL_H) insn-config.h regs.h basic-block.h recog.h
                     94: regclass.o : regclass.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h recog.h
                     95: local-alloc.o : local-alloc.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h
                     96: global-alloc.o : global-alloc.c $(CONFIG_H) $(RTL_H) basic-block.h regs.h hard-reg-set.h insn-config.h
                     97: 
                     98: reload.o : reload.c $(CONFIG_H) $(RTL_H) reload.h recog.h hard-reg-set.h insn-config.h regs.h
                     99: reload1.o : reload1.c $(CONFIG_H) $(RTL_H) reload.h regs.h hard-reg-set.h insn-config.h basic-block.h
                    100: final.o : final.c $(CONFIG_H) $(RTL_H) regs.h recog.h conditions.h
                    101: recog.o : recog.c $(CONFIG_H) $(RTL_H) regs.h recog.h hard-reg-set.h insn-config.h
                    102: 
                    103: # Now the source files that are generated from the machine description.
                    104: 
                    105: insn-config.h : md genconfig
                    106:        genconfig md > insn-config.h
                    107: 
                    108: insn-flags.h : md genflags
                    109:        genflags md > insn-flags.h
                    110: 
                    111: insn-codes.h : md gencodes
                    112:        gencodes md > insn-codes.h
                    113: 
                    114: insn-emit.o : insn-emit.c $(RTL_H) insn-config.h
                    115:        $(CC) -c $(CFLAGS) insn-emit.c
                    116: 
                    117: insn-emit.c : md genemit
                    118:        genemit md > insn-emit.c
                    119: 
                    120: insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h
                    121:        $(CC) -c $(CFLAGS) insn-recog.c
                    122: 
                    123: insn-recog.c : md genrecog
                    124:        genrecog md > insn-recog.c
                    125: 
                    126: insn-extract.o : insn-extract.c $(RTL_H)
                    127:        $(CC) -c $(CFLAGS) insn-extract.c
                    128: 
                    129: insn-extract.c : md genextract
                    130:        genextract md > insn-extract.c
                    131: 
                    132: insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) regs.h insn-config.h insn-flags.h conditions.h aux-output.c
                    133:        $(CC) -c $(CFLAGS) insn-output.c
                    134: 
                    135: insn-output.c : md genoutput
                    136:        genoutput md > insn-output.c
                    137: 
                    138: # Now the programs that generate those files.
                    139: # rtl.o is omitted as a dependency so that rtl.c can be recompiled
                    140: # to fix its tables without forcing us to regenerate insn-*.c
                    141: # and recompile them and regenerate insn-flags.h and recompile
                    142: # everything that depends on it.
                    143: 
                    144: genconfig : genconfig.o $(OBSTACK1)
                    145:        $(CC) -o genconfig -g genconfig.o rtl.o $(LIBS)
                    146: 
                    147: genconfig.o : genconfig.c rtl.def
                    148:        $(CC) -c $(CFLAGS) genconfig.c
                    149: 
                    150: genflags : genflags.o $(OBSTACK1)
                    151:        $(CC) -o genflags -g genflags.o rtl.o $(LIBS)
                    152: 
                    153: genflags.o : genflags.c rtl.def
                    154:        $(CC) -c $(CFLAGS) genflags.c
                    155: 
                    156: gencodes : gencodes.o $(OBSTACK1)
                    157:        $(CC) -o gencodes -g gencodes.o rtl.o $(LIBS)
                    158: 
                    159: gencodes.o : gencodes.c rtl.def
                    160:        $(CC) -c $(CFLAGS) gencodes.c
                    161: 
                    162: genemit : genemit.o $(OBSTACK1)
                    163:        $(CC) -o genemit -g genemit.o rtl.o $(LIBS)
                    164: 
                    165: genemit.o : genemit.c rtl.def
                    166:        $(CC) -c $(CFLAGS) genemit.c
                    167: 
                    168: genrecog : genrecog.o $(OBSTACK1)
                    169:        $(CC) -o genrecog -g genrecog.o rtl.o $(LIBS)
                    170: 
                    171: genrecog.o : genrecog.c rtl.def
                    172:        $(CC) -c $(CFLAGS) genrecog.c
                    173: 
                    174: genextract : genextract.o $(OBSTACK1)
                    175:        $(CC) -o genextract -g genextract.o rtl.o $(LIBS)
                    176: 
                    177: genextract.o : genextract.c rtl.def
                    178:        $(CC) -c $(CFLAGS) genextract.c
                    179: 
                    180: genoutput : genoutput.o $(OBSTACK1)
                    181:        $(CC) -o genoutput -g genoutput.o rtl.o $(LIBS)
                    182: 
                    183: genoutput.o : genoutput.c rtl.def
                    184:        $(CC) -c $(CFLAGS) genoutput.c
                    185: 
                    186: # Making the preprocessor
                    187: cpp: cccp
                    188:        -rm -f cpp
                    189:        ln cccp cpp
                    190: cccp: cccp.o y.tab.o
                    191:        cc -o cccp -g cccp.o y.tab.o
                    192: y.tab.o: y.tab.c
                    193: y.tab.c: cexp.y
                    194:        echo expect 40 shift/reduce conflicts
                    195:        yacc cexp.y
                    196: cccp.o: cccp.c
                    197: 
                    198: clean:
                    199:        -rm *.o
                    200:        -rm parse.tab.c insn-flags.h insn-config.h insn-codes.h
                    201:        -rm insn-output.c insn-recog.c insn-emit.c insn-extract.c
                    202:        -rm genemit genoutput genrecog genextract genflags gencodes genconfig
                    203:        -rm *.s *.s[0-9] *.co *.greg *.lreg *.combine *.flow *.cse *.jump *.rtl *.tree *.loop
                    204:        -rm parse.output core
                    205: 
                    206: # do make -f ../gcc/Makefile maketest DIR=../gcc
                    207: # in the intended test directory to make it a suitable test directory.
                    208: maketest:
                    209:        ln -s $(DIR)/*.[chy] .
                    210:        ln -s $(DIR)/*.def .
                    211:        ln -s $(DIR)/*.md .
                    212:        ln -s $(DIR)/.gdbinit .
                    213:        -ln -s $(DIR)/bison.simple .
                    214:        ln -s $(DIR)/gcc .
                    215:        ln -s $(DIR)/Makefile test-Makefile
                    216:        -rm tm.h aux-output.c
                    217:        make -f test-Makefile clean
                    218: # You must create the necessary links tm.h, md and aux-output.c

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.