Deleted Added
full compact
1c1
< # $FreeBSD: head/gnu/usr.bin/cc/cc_tools/Makefile 130325 2004-06-11 00:35:29Z peter $
---
> # $FreeBSD: head/gnu/usr.bin/cc/cc_tools/Makefile 132751 2004-07-28 05:27:21Z kan $
19c19
< .PATH: ${GCCDIR}
---
> .PATH: ${GCCDIR} ${GCCDIR}/f
22a23
> #
23a25,56
> # Build 'pocket' libiberty exclusively for build tools use.
>
> LIBIBERTY_SRCS= choose-temp.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \
> dyn-string.c errors.c fibheap.c \
> getpwd.c getruntime.c hashtab.c hex.c lbasename.c make-temp-file.c \
> md5.c obstack.c partition.c pexecute.c physmem.c splay-tree.c xexit.c \
> xmalloc.c xmemdup.c xstrdup.c xstrerror.c xexit.c
> LIBIBERTY_OBJS= ${LIBIBERTY_SRCS:R:S/$/.o/g}
>
> SRCS+= ${LIBIBERTY_SRCS}
>
> LIBIBERTY=libiberty.a
> ${LIBIBERTY}: ${LIBIBERTY_OBJS}
> @rm -f ${.TARGET}
> @${AR} cq ${.TARGET} `lorder ${LIBIBERTY_OBJS} | tsort -q`
> ${RANLIB} ${.TARGET}
> CLEANFILES+= ${LIBIBERTY}
>
> #
> #-----------------------------------------------------------------------
> # options
> OPTION_FILES=${GCCDIR}/f/lang.opt ${GCCDIR}/c.opt ${GCCDIR}/common.opt
>
> .ORDER: options.h options.c
> options.h options.c: opts.sh ${OPTION_FILES}
> /bin/sh ${GCCDIR}/opts.sh mv options.c options.h ${OPTION_FILES}
>
>
> GENSRCS+= options.c options.h
> CLEANFILES+= options.c options.h
>
> #-----------------------------------------------------------------------
46,47c79,80
< gen$F: gen$F.o rtl.o obstack.o print-rtl.o bitmap.o errors.o gensupport.o \
< ggc-none.o hashtab.o read-rtl.o concat.o insn-conditions.o
---
> gen$F: gen$F.o rtl.o print-rtl.o bitmap.o gensupport.o ggc-none.o \
> read-rtl.o insn-conditions.o min-insn-modes.o ${LIBIBERTY}
59,61c92,94
< genattrtab : genattrtab.o rtl.o obstack.o print-rtl.o bitmap.o errors.o \
< gensupport.o ggc-none.o hashtab.o read-rtl.o concat.o \
< insn-conditions.o genautomata.o varray.o getruntime.o
---
> genattrtab : genattrtab.o rtl.o print-rtl.o bitmap.o gensupport.o ggc-none.o \
> read-rtl.o insn-conditions.o genautomata.o varray.o min-insn-modes.o \
> ${LIBIBERTY}
74,75c107
< gen$F: gen$F.o rtl.o obstack.o bitmap.o errors.o gensupport.o \
< ggc-none.o hashtab.o read-rtl.o concat.o dummy-conditions.o
---
> gen$F: gen$F.o rtl.o bitmap.o gensupport.o ggc-none.o read-rtl.o dummy-conditions.o min-insn-modes.o ${LIBIBERTY}
82c114
< .for F in check genrtl preds
---
> .for F in modes check genrtl preds
85c117
< gen$F: gen$F.o
---
> gen$F: gen$F.o ${LIBIBERTY}
99c131
< SRCS+= bitmap.c concat.c dummy-conditions.c errors.c genautomata.c \
---
> SRCS+= bitmap.c concat.c dummy-conditions.c genautomata.c \
103a136,150
> # insn modes stuff.
>
> .ORDER: insn-modes.c insn-modes.h
> insn-modes.h: genmodes
> ./genmodes -h > insn-modes.h
>
> insn-modes.c: genmodes
> ./genmodes > insn-modes.c
>
> min-insn-modes.c: genmodes
> ./genmodes -m > min-insn-modes.c
>
> GENSRCS+= insn-modes.c min-insn-modes.c insn-modes.h
>
> #-----------------------------------------------------------------------
139c186
< gengtype: gengtype.o gengtype-yacc+%DIKED.o gengtype-lex.o xmemdup.o
---
> gengtype: gengtype.o gengtype-yacc+%DIKED.o gengtype-lex.o ${LIBIBERTY}
158a206
> #
159a208,219
> # Fortran build tools
>
> .if !defined(NO_FORTRAN)
> gen-time-stamp: fini
> build-tools: fini
> fini: fini.o ${LIBIBERTY}
> ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
> SRCS+= fini.c
> CLEANFILES+= fini
> .endif
>
> #-----------------------------------------------------------------------
163c223
< # The list of headers to go into tconfig.h
---
> # The list of headers to go into tm.h
165c225,227
< TARGET_INC= ansidecl.h
---
> .if ${TARGET_ARCH} == "amd64"
> TARGET_INC= i386/biarch64.h
> .endif
191a254,256
> .if ${TARGET_ARCH} == "powepc"
> TARGET_INC+= altivec-defs.h
> .endif
198c263
< GCONFIG_H= ${.OBJDIR}/tconfig.h ${.CURDIR}/auto-host.h
---
> GCONFIG_H= ${.CURDIR}/auto-host.h
212a278
> SPLAY_TREE_H= ${GCCDIR}/splay-tree.h
219,223c285,290
< GTFILES = $(GCONFIG_H) $(srcdir)/location.h \
< $(HASHTAB_H) \
< $(srcdir)/bitmap.h $(srcdir)/function.h $(srcdir)/rtl.h $(srcdir)/optabs.h \
< $(srcdir)/tree.h $(srcdir)/libfuncs.h $(srcdir)/hashtable.h $(srcdir)/real.h \
< $(srcdir)/varray.h $(srcdir)/ssa.h $(srcdir)/insn-addr.h $(srcdir)/cselib.h \
---
> GTFILES = $(srcdir)/input.h $(srcdir)/coretypes.h $(srcdir)/cpplib.h \
> $(GCONFIG_H) $(HASHTAB_H) $(SPLAY_TREE_H) \
> $(srcdir)/bitmap.h $(srcdir)/coverage.c $(srcdir)/function.h $(srcdir)/rtl.h \
> $(srcdir)/optabs.h $(srcdir)/tree.h $(srcdir)/libfuncs.h $(srcdir)/hashtable.h \
> $(srcdir)/real.h $(srcdir)/varray.h $(srcdir)/insn-addr.h \
> $(srcdir)/cselib.h $(srcdir)/basic-block.h $(srcdir)/cgraph.h \
225,228c292,294
< $(srcdir)/basic-block.h \
< $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c \
< $(srcdir)/dwarf2out.c $(srcdir)/emit-rtl.c \
< $(srcdir)/except.c $(srcdir)/explow.c $(srcdir)/expr.c \
---
> $(srcdir)/alias.c $(srcdir)/bitmap.c $(srcdir)/cselib.c $(srcdir)/cgraph.c \
> $(srcdir)/dbxout.c $(srcdir)/dwarf2out.c $(srcdir)/dwarf2asm.c \
> $(srcdir)/emit-rtl.c $(srcdir)/except.c $(srcdir)/explow.c $(srcdir)/expr.c \
232c298
< $(srcdir)/reg-stack.c \
---
> $(srcdir)/reg-stack.c $(srcdir)/cfglayout.c $(srcdir)/langhooks.c \
234,235c300
< $(srcdir)/tree.c $(srcdir)/varasm.c \
< $(out_file)
---
> $(srcdir)/stringpool.c $(srcdir)/tree.c $(srcdir)/varasm.c $(out_file)
274,276c339,342
< COMMONHDRS= config.h hconfig.h multilib.h options.h specs.h tconfig.h \
< tm_p.h configargs.h safe-ctype.h
< GENSRCS+= ${COMMONHDRS} gencheck.h gtyp-gen.h
---
> COMMONHDRS= bconfig.h config.h configargs.h gencheck.h multilib.h \
> specs.h safe-ctype.h tconfig.h tm.h tm_p.h gcov-iov.h \
> gtyp-gen.h
> GENSRCS+= ${COMMONHDRS}
284a351,354
> echo 'static const struct {' >> ${.TARGET}
> echo ' const char *name, *value;' >> ${.TARGET}
> echo '} configure_default_options[] = {' >> ${.TARGET}
> echo ' { "NULL", "NULL" } };' >> ${.TARGET}
286,288c356,363
< hconfig.h:
< echo '#include "auto-host.h"' > ${.TARGET}
< echo '#include <tconfig.h>' >> ${.TARGET}
---
> tconfig.h:
> echo '#ifndef GCC_TCONFIG_H' > ${.TARGET}
> echo '#define GCC_TCONFIG_H' >> ${.TARGET}
> echo '#ifdef IN_GCC' >> ${.TARGET}
> echo '# include "ansidecl.h"' >> ${.TARGET}
> echo '#endif' >> ${.TARGET}
> echo '#define USED_FOR_TARGET' >> ${.TARGET}
> echo '#endif /* GCC_TCONFIG_H */' >> ${.TARGET}
289a365,376
> bconfig.h:
> echo '#ifndef GCC_BCONFIG_H' > ${.TARGET}
> echo '#define GCC_BCONFIG_H' >> ${.TARGET}
> echo '#include "auto-host.h"' >> ${.TARGET}
> .if exists(${GCCDIR}/config/${GCC_CPU}/${GCC_CPU}-modes.def)
> echo '#define EXTRA_MODES_FILE "${GCC_CPU}/${GCC_CPU}-modes.def"' >> ${.TARGET}
> .endif
> echo '#ifdef IN_GCC' >> ${.TARGET}
> echo '# include "ansidecl.h"' >> ${.TARGET}
> echo '#endif' >> ${.TARGET}
> echo '#endif /* GCC_BCONFIG_H */' >> ${.TARGET}
>
304,308d390
< options.h:
< echo '#include "cp/lang-options.h"' > ${.TARGET}
< echo '#include "f/lang-options.h"' >> ${.TARGET}
< echo '#include "objc/lang-options.h"' >> ${.TARGET}
<
314,319c396,397
< config.h:
< echo '#include <hconfig.h>' > ${.TARGET}
< echo '#ifndef GENERATOR_FILE' >> ${.TARGET}
< echo '#include "insn-constants.h"' >> ${.TARGET}
< echo '#include "insn-flags.h"' >> ${.TARGET}
< echo '#endif' >> ${.TARGET}
---
> config.h: bconfig.h
> echo '#include <bconfig.h>' > ${.TARGET}
321,333c399,403
< tconfig.h:
< echo 'struct rtx_def;' > ${.TARGET}
< echo 'typedef struct rtx_def *rtx;' >> ${.TARGET}
< echo 'struct rtvec_def;' >> ${.TARGET}
< echo 'typedef struct rtvec_def *rtvec;' >> ${.TARGET}
< echo 'union tree_node;' >> ${.TARGET}
< echo 'typedef union tree_node *tree;' >> ${.TARGET}
< echo '#ifndef GTY' >> ${.TARGET}
< echo '# define GTY(x)' >> ${.TARGET}
< echo '#endif' >> ${.TARGET}
< echo '' >> ${.TARGET}
< .if ${TARGET_ARCH} == "amd64"
< echo '#include "i386/biarch64.h"' >> ${.TARGET}
---
> tm.h:
> echo '#ifndef GCC_TM_H' > ${.TARGET}
> echo '#define GCC_TM_H' >> ${.TARGET}
> .if defined(TARGET_CPU_DEFAULT)
> echo "#define TARGET_CPU_DEFAULT (${TARGET_CPU_DEFAULT})" >> ${.TARGET}
335,337c405
< .if ${TARGET_ARCH} == "ia64"
< echo '#define TARGET_CPU_DEFAULT (MASK_GNU_AS|MASK_GNU_LD)' >>${.TARGET}
< .endif
---
> echo '#ifdef IN_GCC' >> ${.TARGET}
341,342c409,411
< echo '#ifndef POSIX' >> ${.TARGET}
< echo '# define POSIX' >> ${.TARGET}
---
> echo '#if !defined GENERATOR_FILE && !defined USED_FOR_TARGET' >> ${.TARGET}
> echo '# include "insn-constants.h"' >> ${.TARGET}
> echo '# include "insn-flags.h"' >> ${.TARGET}
343a413
> echo '#endif' >> ${.TARGET}
346d415
< echo '#define EXTRA_CC_MODES 1' >> ${.TARGET}
347a417
> echo '#endif /* GCC_TM_H */' >> ${.TARGET}
353c423
< safe-ctype.h: Makefile
---
> safe-ctype.h:
394d463
< echo "#define xexit exit" >> ${.TARGET}
395a465,466
> gcov-iov.h:
> echo "#define GCOV_VERSION ((gcov_unsigned_t)0x33303470)" >> ${.TARGET}
403c474,475
< all: ${SRCS}
---
> all: ${SRCS}
> build-tools: ${SRCS}
418,423c490
< # bsd.prog.mk would do if we defined PROG. There are complications to
< # avoid circular dependencies. First, only make most objects depend on
< # all headers. Filter out the objects that would cause problems (i.e.,
< # objects that will be used to create programs that will generate headers).
< #
< ${OBJS}: ${SRCS:M*.h:Ngtype-desc.h:Ngenrtl.h:Ntree-check.h:Ntm-preds.h:Ninsn-*.h}
---
> # bsd.prog.mk would do if we defined PROG.
425c492
< ${OBJS:Ngencheck.o:Ngengenrtl.o:Ngenpreds.o}: tree-check.h tm-preds.h genrtl.h
---
> ${OBJS}: ${COMMONHDRS}
427c494,496
< ${OBJS:Ngengtype*.o:Nxmemdup.o:Ngengenrtl.o:Ngencheck.o:Ngenpreds.o}: gtype-desc.h
---
> dummy-conditions.o:
> gencheck.o:
> genmodes.o:
429c498,521
< genextract.o: insn-config.h
---
> genpreds.o: insn-modes.h
> genconstants.o: insn-modes.h genrtl.h
> gengtype.o: insn-modes.h genrtl.h gtyp-gen.h
> rtl.o: insn-modes.h gtype-desc.h genrtl.h
> bitmap.o: insn-modes.h gtype-desc.h genrtl.h
> ggc-none.o: gtype-desc.h
> gensupport.o: insn-modes.h genrtl.h
> varray.o: gtype-desc.h
> genautomata.o: insn-modes.h genrtl.h
> genconditions.o: insn-modes.h genrtl.h
> gencodes.o: insn-modes.h genrtl.h
> genconfig.o: insn-modes.h genrtl.h
> print-rtl.o: insn-modes.h genrtl.h tm-preds.h tree-check.h
> read-rtl.o: insn-modes.h genrtl.h
> genattr.o: insn-modes.h genrtl.h
> genemit.o: insn-modes.h genrtl.h
> genflags.o: insn-modes.h genrtl.h
> genopinit.o: insn-modes.h genrtl.h
> genoutput.o: insn-modes.h genrtl.h
> genpeep.o: insn-modes.h genrtl.h
> genrecog.o: insn-modes.h genrtl.h
> genextract.o: genrtl.h insn-config.h
> genattrtab.o: insn-modes.h gtype-desc.h genrtl.h
> genrtl.o: insn-modes.h genrtl.h gtype-desc.h
431c523,526
< insn-conditions.o: insn-constants.h
---
> insn-conditions.o: insn-constants.h tm-preds.h
> insn-modes.o: insn-modes.h
> min-insn-modes.o: insn-modes.h
> gtype-desc.o: insn-modes.h insn-config.h insn-codes.h tree-check.h