mirror of
https://github.com/pret/agbcc.git
synced 2026-03-21 17:44:20 -05:00
auto dependencies for makefile
This commit is contained in:
parent
f821b74fc8
commit
908fe3c181
351
gcc/Makefile
351
gcc/Makefile
|
|
@ -22,46 +22,64 @@
|
|||
srcdir = .
|
||||
VPATH = $(srcdir)
|
||||
|
||||
CC = gcc
|
||||
|
||||
CFLAGS = -g -std=gnu11 -Wunused-function
|
||||
|
||||
CC = gcc
|
||||
INCLUDES = -I. -I$(srcdir)
|
||||
|
||||
md_file=$(srcdir)/thumb.md
|
||||
|
||||
# End of variables for you to override.
|
||||
RTL_SRCS = rtl.c bitmap.c obstack.c
|
||||
RTL_OBJS = rtl.o bitmap.o obstack.o
|
||||
RTLANAL_SRCS = rtlanal.c
|
||||
RTLANAL_OBJS = rtlanal.o
|
||||
PRINT_SRCS = print-rtl.c
|
||||
PRINT_OBJS = print-rtl.o
|
||||
|
||||
# This tells GNU Make version 3 not to put all variables in the environment.
|
||||
.NOEXPORT:
|
||||
SRCS = toplev.c version.c tree.c print-tree.c stor-layout.c fold-const.c \
|
||||
function.c stmt.c except.c expr.c calls.c expmed.c explow.c optabs.c \
|
||||
varasm.c emit-rtl.c genrtl.c real.c regmove.c dwarf2out.c alias.c integrate.c \
|
||||
jump.c cse.c loop.c unroll.c flow.c stupid.c combine.c varray.c regclass.c \
|
||||
local-alloc.c global.c reload.c reload1.c caller-save.c gcse.c insn-peep.c \
|
||||
final.c recog.c insn-opinit.c insn-recog.c insn-extract.c insn-output.c \
|
||||
insn-emit.c lcm.c insn-attrtab.c thumb.c getpwd.c convert.c dyn-string.c \
|
||||
splay-tree.c graph.c sbitmap.c resource.c c-parse.c c-lex.c c-decl.c \
|
||||
c-typeck.c c-convert.c c-aux-info.c c-common.c c-iterate.c
|
||||
|
||||
HOST_RTL = rtl.o bitmap.o obstack.o
|
||||
HOST_RTLANAL = rtlanal.o
|
||||
HOST_PRINT = print-rtl.o
|
||||
OBJS = $(SRCS:.c=.o)
|
||||
|
||||
# Specify the directories to be searched for header files.
|
||||
INCLUDES = -I. -I$(srcdir)
|
||||
GENERATED = genrtl.c genrtl.h \
|
||||
insn-peep.c insn-opinit.c insn-recog.c insn-extract.c insn-output.c \
|
||||
insn-emit.c insn-attrtab.c \
|
||||
tree-check.h \
|
||||
insn-config.h insn-flags.h insn-codes.h insn-attr.h
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CFLAGS) $(INCLUDES) $<
|
||||
agbcc: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS) $(RTL_OBJS) $(PRINT_OBJS) $(RTLANAL_OBJS)
|
||||
|
||||
# This tells GNU make version 3 not to export all the variables
|
||||
# defined in this file into the environment.
|
||||
.NOEXPORT:
|
||||
# Clear suffixes.
|
||||
.SUFFIXES:
|
||||
|
||||
# Lists of files for various purposes.
|
||||
DEPDIR := .d
|
||||
$(shell mkdir -p $(DEPDIR) >/dev/null)
|
||||
DEPFLAGS = -MT $@ -MMD -MP -MF $(DEPDIR)/$*.Td
|
||||
|
||||
OBJS = toplev.o version.o tree.o print-tree.o stor-layout.o fold-const.o \
|
||||
function.o stmt.o except.o expr.o calls.o expmed.o explow.o optabs.o \
|
||||
varasm.o rtl.o print-rtl.o rtlanal.o emit-rtl.o genrtl.o real.o regmove.o \
|
||||
dwarf2out.o bitmap.o alias.o \
|
||||
integrate.o jump.o cse.o loop.o unroll.o flow.o stupid.o combine.o varray.o \
|
||||
regclass.o local-alloc.o global.o reload.o reload1.o caller-save.o gcse.o \
|
||||
insn-peep.o final.o recog.o \
|
||||
insn-opinit.o insn-recog.o insn-extract.o insn-output.o insn-emit.o \
|
||||
lcm.o \
|
||||
insn-attrtab.o thumb.o getpwd.o convert.o \
|
||||
dyn-string.o splay-tree.o graph.o sbitmap.o resource.o \
|
||||
c-parse.o c-lex.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-common.o \
|
||||
c-iterate.o obstack.o
|
||||
COMPILE = $(CC) $(DEPFLAGS) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c
|
||||
POSTCOMPILE = mv -f $(DEPDIR)/$*.Td $(DEPDIR)/$*.d
|
||||
|
||||
$(OBJS): %.o: %.c $(DEPDIR)/%.d | $(GENERATED)
|
||||
$(COMPILE) $<
|
||||
$(POSTCOMPILE)
|
||||
|
||||
$(RTL_OBJS) $(RTLANAL_OBJS) $(PRINT_OBJS): %.o: %.c $(DEPDIR)/%.d
|
||||
$(COMPILE) $<
|
||||
$(POSTCOMPILE)
|
||||
|
||||
$(DEPDIR)/%.d: ;
|
||||
.PRECIOUS: $(DEPDIR)/%.d
|
||||
|
||||
-include $(patsubst %,$(DEPDIR)/%.d,$(basename $(SRCS)))
|
||||
|
||||
GEN = genemit genoutput genrecog genextract genflags gencodes genconfig \
|
||||
genpeep gengenrtl gencheck genattr
|
||||
|
|
@ -72,7 +90,7 @@ GEN = genemit genoutput genrecog genextract genflags gencodes genconfig \
|
|||
# one of the machine description files is edited.
|
||||
# That may or may not be what one wants to do.
|
||||
# If it is, rm *.o is an easy way to do it.
|
||||
# CONFIG_H = $(host_xm_file) $(tm_file)
|
||||
# CONFIG_H = $(xm_file) $(tm_file)
|
||||
CONFIG_H =
|
||||
RTL_BASE_H = rtl.h rtl.def machmode.h machmode.def
|
||||
RTL_H = $(RTL_BASE_H) genrtl.h
|
||||
|
|
@ -82,59 +100,13 @@ RECOG_H = recog.h
|
|||
EXPR_H = expr.h insn-codes.h
|
||||
REGS_H = regs.h varray.h machmode.h machmode.def
|
||||
|
||||
# The only suffixes we want for implicit rules are .c and .o, so clear
|
||||
# the list and add them. This speeds up GNU Make, and allows -r to work.
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .c .o
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
agbcc: $(OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ $(OBJS)
|
||||
|
||||
clean:
|
||||
$(RM) $(GEN) $(OBJS)
|
||||
|
||||
# Compiling object files from source files.
|
||||
|
||||
# C language specific files.
|
||||
|
||||
# CYGNUS LOCAL: built in build directory
|
||||
c-parse.o : $(srcdir)/c-parse.c $(CONFIG_H) $(TREE_H) c-lex.h c-parse.h \
|
||||
c-tree.h input.h flags.h system.h toplev.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/c-parse.c
|
||||
|
||||
# CYGNUS LOCAL: c-gperf.h really depends on c-parse.gperf.
|
||||
$(srcdir)/c-gperf.h:
|
||||
gperf -L KR-C -F ', 0, 0' -p -j1 -i 1 -g -o -t -G -N is_reserved_word \
|
||||
-k1,3,$$ $(srcdir)/c-parse.gperf >tmp-gperf.h
|
||||
$(srcdir)/move-if-change tmp-gperf.h $(srcdir)/c-gperf.h
|
||||
|
||||
c-decl.o : c-decl.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-lex.h flags.h \
|
||||
output.h toplev.h
|
||||
c-typeck.o : c-typeck.c $(CONFIG_H) system.h $(TREE_H) c-tree.h flags.h \
|
||||
output.h $(EXPR_H) $(RTL_H) toplev.h
|
||||
# CYGNUS LOCAL: built in build directory
|
||||
c-lex.o : c-lex.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-lex.h c-tree.h \
|
||||
c-parse.h input.h flags.h c-gperf.h toplev.h output.h
|
||||
c-aux-info.o : c-aux-info.c $(CONFIG_H) system.h $(TREE_H) c-tree.h flags.h
|
||||
c-convert.o : c-convert.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h
|
||||
c-iterate.o: c-iterate.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) c-tree.h \
|
||||
flags.h toplev.h $(EXPR_H)
|
||||
graph.o: graph.c $(CONFIG_H) system.h toplev.h flags.h output.h $(RTL_H) \
|
||||
hard-reg-set.h $(BASIC_BLOCK_H)
|
||||
sbitmap.o: sbitmap.c $(CONFIG_H) system.h $(RTL_H) flags.h $(BASIC_BLOCK_H)
|
||||
|
||||
hash.o: hash.c hash.h system.h toplev.h
|
||||
|
||||
splay-tree.o: splay-tree.c splay-tree.h
|
||||
|
||||
# A file used by all variants of C.
|
||||
|
||||
c-common.o : c-common.c $(CONFIG_H) system.h $(TREE_H) c-tree.h c-lex.h \
|
||||
flags.h toplev.h output.h $(RTL_H)
|
||||
|
||||
# Language-independent files.
|
||||
%.o : %.c
|
||||
$(CC) $(CFLAGS) $(CPPFLAGS) $(INCLUDES) -c $<
|
||||
|
||||
tree-check.h: s-check
|
||||
s-check : gencheck $(srcdir)/move-if-change
|
||||
|
|
@ -142,137 +114,12 @@ s-check : gencheck $(srcdir)/move-if-change
|
|||
$(srcdir)/move-if-change tmp-check.h tree-check.h
|
||||
touch s-check
|
||||
|
||||
gencheck : gencheck.o tree.def $(lang_tree_files)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
gencheck.o
|
||||
gencheck : gencheck.o tree.def
|
||||
$(CC) $(CFLAGS) -o $@ gencheck.o
|
||||
|
||||
gencheck.o : gencheck.c config.h system.h
|
||||
$(CC) -c $(CFLAGS) $(INCLUDES) $(srcdir)/gencheck.c
|
||||
|
||||
dumpvers: dumpvers.c
|
||||
|
||||
version.o: version.c
|
||||
obstack.o: obstack.c $(CONFIG_H)
|
||||
|
||||
convert.o: convert.c $(CONFIG_H) $(TREE_H) flags.h convert.h toplev.h
|
||||
|
||||
tree.o : tree.c $(CONFIG_H) system.h $(TREE_H) flags.h function.h toplev.h except.h
|
||||
print-tree.o : print-tree.c $(CONFIG_H) system.h $(TREE_H)
|
||||
stor-layout.o : stor-layout.c $(CONFIG_H) system.h $(TREE_H) flags.h \
|
||||
function.h $(EXPR_H) $(RTL_H) toplev.h except.h
|
||||
fold-const.o : fold-const.c $(CONFIG_H) system.h $(TREE_H) flags.h toplev.h \
|
||||
$(RTL_H)
|
||||
|
||||
toplev.o : toplev.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) \
|
||||
flags.h input.h insn-attr.h output.h \
|
||||
insn-codes.h insn-config.h $(RECOG_H) Makefile toplev.h \
|
||||
dwarf2out.h $(EXPR_H)
|
||||
|
||||
rtl.o : rtl.c $(CONFIG_H) system.h $(RTL_H) bitmap.h
|
||||
|
||||
print-rtl.o : print-rtl.c $(CONFIG_H) system.h $(RTL_H) bitmap.h
|
||||
rtlanal.o : rtlanal.c $(CONFIG_H) system.h $(RTL_H)
|
||||
|
||||
varasm.o : varasm.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) flags.h \
|
||||
function.h $(EXPR_H) hard-reg-set.h $(REGS_H) \
|
||||
output.h toplev.h except.h
|
||||
function.o : function.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
||||
function.h insn-flags.h insn-codes.h $(EXPR_H) $(REGS_H) hard-reg-set.h \
|
||||
insn-config.h $(RECOG_H) output.h toplev.h except.h
|
||||
stmt.o : stmt.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h function.h \
|
||||
insn-flags.h insn-config.h insn-codes.h hard-reg-set.h $(EXPR_H) except.h \
|
||||
loop.h $(RECOG_H) toplev.h output.h varray.h
|
||||
except.o : except.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
||||
function.h insn-flags.h $(EXPR_H) $(REGS_H) hard-reg-set.h \
|
||||
insn-config.h $(RECOG_H) output.h except.h toplev.h
|
||||
expr.o : expr.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h function.h \
|
||||
$(REGS_H) insn-flags.h insn-codes.h $(EXPR_H) insn-config.h $(RECOG_H) output.h \
|
||||
typeclass.h hard-reg-set.h toplev.h hard-reg-set.h except.h
|
||||
calls.o : calls.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h $(EXPR_H) \
|
||||
insn-flags.h $(REGS_H) toplev.h output.h
|
||||
expmed.o : expmed.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
||||
insn-flags.h insn-config.h insn-codes.h $(EXPR_H) $(RECOG_H) real.h
|
||||
explow.o : explow.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
||||
hard-reg-set.h insn-config.h $(EXPR_H) $(RECOG_H) insn-flags.h insn-codes.h
|
||||
optabs.o : optabs.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
||||
insn-flags.h insn-config.h insn-codes.h $(EXPR_H) $(RECOG_H) reload.h
|
||||
dwarf2out.o : dwarf2out.c $(CONFIG_H) system.h $(TREE_H) $(RTL_H) dwarf2.h \
|
||||
flags.h insn-config.h reload.h output.h \
|
||||
hard-reg-set.h $(REGS_H) $(EXPR_H) toplev.h dwarf2out.h dyn-string.h
|
||||
emit-rtl.o : emit-rtl.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
||||
except.h function.h $(REGS_H) insn-config.h $(RECOG_H) real.h \
|
||||
$(EXPR_H) obstack.h hard-reg-set.h bitmap.h
|
||||
real.o : real.c $(CONFIG_H) system.h $(TREE_H) toplev.h
|
||||
getpwd.o : getpwd.c $(CONFIG_H) system.h
|
||||
|
||||
integrate.o : integrate.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h \
|
||||
integrate.h insn-flags.h insn-config.h $(EXPR_H) real.h $(REGS_H) \
|
||||
function.h output.h $(RECOG_H) except.h toplev.h
|
||||
|
||||
jump.o : jump.c $(CONFIG_H) system.h $(RTL_H) flags.h hard-reg-set.h $(REGS_H) \
|
||||
insn-config.h insn-flags.h $(RECOG_H) $(EXPR_H) real.h except.h \
|
||||
toplev.h
|
||||
stupid.o : stupid.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h \
|
||||
$(BASIC_BLOCK_H) insn-config.h reload.h flags.h toplev.h
|
||||
|
||||
cse.o : cse.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \
|
||||
real.h insn-config.h $(RECOG_H) $(EXPR_H) toplev.h output.h
|
||||
gcse.o : gcse.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \
|
||||
real.h insn-config.h $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H) output.h
|
||||
resource.o : resource.c $(CONFIG_H) $(RTL_H) hard-reg-set.h system.h \
|
||||
$(BASIC_BLOCK_H) $(REGS_H) flags.h output.h resource.h
|
||||
lcm.o : lcm.c $(CONFIG_H) system.h $(RTL_H) $(REGS_H) hard-reg-set.h flags.h \
|
||||
real.h insn-config.h $(RECOG_H) $(EXPR_H) $(BASIC_BLOCK_H)
|
||||
loop.o : loop.c $(CONFIG_H) system.h $(RTL_H) flags.h loop.h insn-config.h \
|
||||
insn-flags.h $(REGS_H) hard-reg-set.h $(RECOG_H) $(EXPR_H) real.h \
|
||||
toplev.h varray.h
|
||||
unroll.o : unroll.c $(CONFIG_H) system.h $(RTL_H) insn-config.h \
|
||||
integrate.h $(REGS_H) $(RECOG_H) flags.h $(EXPR_H) loop.h toplev.h varray.h
|
||||
flow.o : flow.c $(CONFIG_H) system.h $(RTL_H) flags.h insn-config.h \
|
||||
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h output.h toplev.h recog.h
|
||||
combine.o : combine.c $(CONFIG_H) system.h $(RTL_H) flags.h \
|
||||
insn-config.h insn-flags.h insn-codes.h insn-attr.h $(REGS_H) $(EXPR_H) \
|
||||
$(BASIC_BLOCK_H) $(RECOG_H) real.h hard-reg-set.h toplev.h
|
||||
regclass.o : regclass.c $(CONFIG_H) system.h $(RTL_H) hard-reg-set.h flags.h \
|
||||
$(BASIC_BLOCK_H) $(REGS_H) insn-config.h $(RECOG_H) reload.h real.h toplev.h \
|
||||
output.h
|
||||
local-alloc.o : local-alloc.c $(CONFIG_H) system.h $(RTL_H) flags.h \
|
||||
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h $(RECOG_H) output.h \
|
||||
insn-attr.h toplev.h
|
||||
bitmap.o : bitmap.c $(CONFIG_H) system.h $(RTL_H) flags.h $(BASIC_BLOCK_H) \
|
||||
$(REGS_H)
|
||||
global.o : global.c $(CONFIG_H) system.h $(RTL_H) flags.h reload.h \
|
||||
$(BASIC_BLOCK_H) $(REGS_H) hard-reg-set.h insn-config.h output.h toplev.h
|
||||
varray.o : varray.c $(CONFIG_H) system.h varray.h $(RTL_H) $(TREE_H) bitmap.h
|
||||
|
||||
reload.o : reload.c $(CONFIG_H) system.h $(RTL_H) flags.h output.h $(EXPR_H) \
|
||||
reload.h $(RECOG_H) hard-reg-set.h insn-config.h insn-codes.h $(REGS_H) \
|
||||
real.h toplev.h
|
||||
reload1.o : reload1.c $(CONFIG_H) system.h $(RTL_H) real.h flags.h $(EXPR_H) \
|
||||
reload.h $(REGS_H) hard-reg-set.h insn-config.h insn-flags.h insn-codes.h \
|
||||
$(BASIC_BLOCK_H) $(RECOG_H) output.h toplev.h
|
||||
caller-save.o : caller-save.c $(CONFIG_H) system.h $(RTL_H) flags.h \
|
||||
$(REGS_H) hard-reg-set.h insn-config.h $(BASIC_BLOCK_H) \
|
||||
$(RECOG_H) reload.h $(EXPR_H) toplev.h
|
||||
alias.o : alias.c $(CONFIG_H) system.h $(RTL_H) flags.h hard-reg-set.h \
|
||||
$(REGS_H) toplev.h output.h $(EXPR_H)
|
||||
regmove.o : regmove.c $(CONFIG_H) system.h $(RTL_H) insn-config.h \
|
||||
$(RECOG_H) output.h reload.h $(REGS_H) hard-reg-set.h flags.h \
|
||||
$(EXPR_H) insn-flags.h $(BASIC_BLOCK_H) toplev.h
|
||||
final.o : final.c $(CONFIG_H) system.h $(RTL_H) $(TREE_H) flags.h $(REGS_H) \
|
||||
$(RECOG_H) conditions.h insn-config.h insn-attr.h except.h real.h output.h \
|
||||
hard-reg-set.h insn-flags.h insn-codes.h \
|
||||
toplev.h reload.h dwarf2out.h
|
||||
recog.o : recog.c $(CONFIG_H) system.h $(RTL_H) \
|
||||
$(REGS_H) $(RECOG_H) hard-reg-set.h flags.h insn-config.h insn-attr.h \
|
||||
insn-flags.h insn-codes.h real.h toplev.h
|
||||
dyn-string.o: dyn-string.c dyn-string.h $(CONFIG_H) system.h
|
||||
|
||||
thumb.o: thumb.c $(CONFIG_H) $(TREE_H) \
|
||||
$(RTL_H) $(REGS_H) hard-reg-set.h real.h insn-config.h conditions.h \
|
||||
insn-flags.h output.h insn-attr.h insn-codes.h system.h toplev.h
|
||||
|
||||
# Generate header and source files from the machine description,
|
||||
# Generate header and source files from the machine description,
|
||||
# and compile them.
|
||||
|
||||
.PRECIOUS: insn-config.h insn-flags.h insn-codes.h \
|
||||
|
|
@ -310,60 +157,36 @@ s-codes : $(md_file) gencodes $(srcdir)/move-if-change
|
|||
$(srcdir)/move-if-change tmp-codes.h insn-codes.h
|
||||
touch s-codes
|
||||
|
||||
insn-emit.o : insn-emit.c $(CONFIG_H) $(RTL_H) $(EXPR_H) real.h output.h \
|
||||
insn-config.h insn-flags.h insn-codes.h system.h reload.h recog.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c insn-emit.c
|
||||
|
||||
insn-emit.c: s-emit
|
||||
s-emit : $(md_file) genemit $(srcdir)/move-if-change
|
||||
./genemit $(md_file) > tmp-emit.c
|
||||
$(srcdir)/move-if-change tmp-emit.c insn-emit.c
|
||||
touch s-emit
|
||||
|
||||
insn-recog.o : insn-recog.c $(CONFIG_H) $(RTL_H) insn-config.h $(RECOG_H) \
|
||||
real.h output.h flags.h system.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c insn-recog.c
|
||||
|
||||
insn-recog.c: s-recog
|
||||
s-recog : $(md_file) genrecog $(srcdir)/move-if-change
|
||||
./genrecog $(md_file) > tmp-recog.c
|
||||
$(srcdir)/move-if-change tmp-recog.c insn-recog.c
|
||||
touch s-recog
|
||||
|
||||
insn-opinit.o : insn-opinit.c $(CONFIG_H) $(RTL_H) insn-codes.h insn-flags.h \
|
||||
insn-config.h flags.h $(RECOG_H) $(EXPR_H) reload.h system.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c insn-opinit.c
|
||||
|
||||
insn-opinit.c: s-opinit
|
||||
s-opinit : $(md_file) genopinit $(srcdir)/move-if-change
|
||||
./genopinit $(md_file) > tmp-opinit.c
|
||||
$(srcdir)/move-if-change tmp-opinit.c insn-opinit.c
|
||||
touch s-opinit
|
||||
|
||||
insn-extract.o : insn-extract.c $(CONFIG_H) $(RTL_H) system.h toplev.h \
|
||||
insn-config.h recog.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c insn-extract.c
|
||||
|
||||
insn-extract.c: s-extract
|
||||
s-extract : $(md_file) genextract $(srcdir)/move-if-change
|
||||
./genextract $(md_file) > tmp-extract.c
|
||||
$(srcdir)/move-if-change tmp-extract.c insn-extract.c
|
||||
touch s-extract
|
||||
|
||||
insn-peep.o : insn-peep.c $(CONFIG_H) $(RTL_H) $(REGS_H) output.h real.h \
|
||||
system.h insn-config.h recog.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c insn-peep.c
|
||||
|
||||
insn-peep.c: s-peep
|
||||
s-peep : $(md_file) genpeep $(srcdir)/move-if-change
|
||||
./genpeep $(md_file) > tmp-peep.c
|
||||
$(srcdir)/move-if-change tmp-peep.c insn-peep.c
|
||||
touch s-peep
|
||||
|
||||
insn-attrtab.o : insn-attrtab.c $(CONFIG_H) $(RTL_H) $(REGS_H) real.h \
|
||||
output.h insn-attr.h insn-config.h system.h toplev.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c insn-attrtab.c
|
||||
|
||||
insn-attr.h: s-attr
|
||||
s-attr : $(md_file) genattr $(srcdir)/move-if-change
|
||||
./genattr $(md_file) > tmp-attr.h
|
||||
|
|
@ -376,21 +199,13 @@ s-attrtab : $(md_file) genattrtab $(srcdir)/move-if-change
|
|||
$(srcdir)/move-if-change tmp-attrtab.c insn-attrtab.c
|
||||
touch s-attrtab
|
||||
|
||||
insn-output.o : insn-output.c $(CONFIG_H) $(RTL_H) $(REGS_H) real.h conditions.h \
|
||||
hard-reg-set.h insn-config.h insn-flags.h insn-attr.h output.h $(RECOG_H) \
|
||||
insn-codes.h system.h
|
||||
$(CC) $(CFLAGS) $(INCLUDES) -c insn-output.c
|
||||
|
||||
insn-output.c: s-output
|
||||
s-output : $(md_file) genoutput $(srcdir)/move-if-change
|
||||
./genoutput $(md_file) > tmp-output.c
|
||||
$(srcdir)/move-if-change tmp-output.c insn-output.c
|
||||
touch s-output
|
||||
|
||||
genrtl.o : genrtl.c $(CONFIG_H) $(RTL_H) system.h
|
||||
genrtl.c genrtl.h : s-genrtl
|
||||
@true # force gnu make to recheck modification times.
|
||||
|
||||
s-genrtl: gengenrtl $(srcdir)/move-if-change $(RTL_BASE_H)
|
||||
./gengenrtl tmp-genrtl.h tmp-genrtl.c
|
||||
$(srcdir)/move-if-change tmp-genrtl.h genrtl.h
|
||||
|
|
@ -400,78 +215,66 @@ s-genrtl: gengenrtl $(srcdir)/move-if-change $(RTL_BASE_H)
|
|||
# Compile the programs that generate insn-* from the machine description.
|
||||
|
||||
# $(CONFIG_H) is omitted from the deps of the gen*.o
|
||||
# because these programs don't really depend on anything
|
||||
# because these programs don't really depend on anything
|
||||
# about the target machine. They do depend on config.h itself,
|
||||
# since that describes the host machine.
|
||||
|
||||
genconfig : genconfig.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genconfig.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genconfig : genconfig.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genconfig.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genconfig.o : genconfig.c $(RTL_H) config.h system.h
|
||||
|
||||
genflags : genflags.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genflags.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genflags : genflags.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genflags.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genflags.o : genflags.c $(RTL_H) config.h system.h
|
||||
|
||||
gencodes : gencodes.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
gencodes.o $(HOST_RTL) $(HOST_PRINT)
|
||||
gencodes : gencodes.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ gencodes.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
gencodes.o : gencodes.c $(RTL_H) config.h system.h
|
||||
|
||||
genemit : genemit.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genemit.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genemit : genemit.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genemit.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genemit.o : genemit.c $(RTL_H) config.h system.h
|
||||
|
||||
genopinit : genopinit.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genopinit.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genopinit : genopinit.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genopinit.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genopinit.o : genopinit.c $(RTL_H) config.h system.h
|
||||
|
||||
genrecog : genrecog.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genrecog.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genrecog : genrecog.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genrecog.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genrecog.o : genrecog.c $(RTL_H) config.h system.h
|
||||
|
||||
genextract : genextract.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genextract.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genextract : genextract.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genextract.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genextract.o : genextract.c $(RTL_H) config.h system.h insn-config.h
|
||||
|
||||
genpeep : genpeep.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genpeep.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genpeep : genpeep.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genpeep.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genpeep.o : genpeep.c $(RTL_H) config.h system.h
|
||||
|
||||
genattr : genattr.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genattr.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genattr : genattr.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genattr.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genattr.o : genattr.c $(RTL_H) config.h system.h
|
||||
|
||||
genattrtab : genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genattrtab.o $(HOST_RTL) $(HOST_PRINT) $(HOST_RTLANAL)
|
||||
genattrtab : genattrtab.o $(RTL_OBJS) $(PRINT_OBJS) $(RTLANAL_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genattrtab.o $(RTL_OBJS) $(PRINT_OBJS) $(RTLANAL_OBJS)
|
||||
|
||||
genattrtab.o : genattrtab.c $(RTL_H) config.h system.h insn-config.h
|
||||
|
||||
genoutput : genoutput.o $(HOST_RTL) $(HOST_PRINT)
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
genoutput.o $(HOST_RTL) $(HOST_PRINT)
|
||||
genoutput : genoutput.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
$(CC) $(CFLAGS) -o $@ genoutput.o $(RTL_OBJS) $(PRINT_OBJS)
|
||||
|
||||
genoutput.o : genoutput.c $(RTL_H) config.h system.h
|
||||
|
||||
gengenrtl : gengenrtl.o
|
||||
$(CC) $(CFLAGS) -o $@ \
|
||||
gengenrtl.o
|
||||
$(CC) $(CFLAGS) -o $@ gengenrtl.o
|
||||
|
||||
gengenrtl.o : gengenrtl.c $(RTL_BASE_H) system.h
|
||||
gengenrtl.o : gengenrtl.c $(RTL_BASE_H) config.h system.h
|
||||
|
|
|
|||
|
|
@ -226,7 +226,7 @@ from the machine description file `md'. */\n\n");
|
|||
printf ("#include \"insn-attr.h\"\n\n");
|
||||
printf ("#include \"insn-codes.h\"\n\n");
|
||||
printf ("#include \"recog.h\"\n\n");
|
||||
|
||||
printf ("#include \"tree.h\"\n");
|
||||
printf ("#include \"output.h\"\n");
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -23,7 +23,6 @@ Boston, MA 02111-1307, USA. */
|
|||
#define OBJECT_FORMAT_ELF
|
||||
|
||||
#include "thumb.h"
|
||||
#include "tree.h"
|
||||
|
||||
/* Run-time Target Specification. */
|
||||
#undef TARGET_VERSION
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user