summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorkan <kan@FreeBSD.org>2004-08-12 16:36:52 +0000
committerkan <kan@FreeBSD.org>2004-08-12 16:36:52 +0000
commit44be17529b330657e94bec9b7c894ed5dcd5f8b0 (patch)
treed5b11b129d406fbab9643681f33e3e3e2c3c6057 /gnu
parentf665d333a04cc872739a9d2631a272fce6bc443c (diff)
downloadFreeBSD-src-44be17529b330657e94bec9b7c894ed5dcd5f8b0.zip
FreeBSD-src-44be17529b330657e94bec9b7c894ed5dcd5f8b0.tar.gz
Consolidate libiberty files in one place and avoid listing some
of them in several places. Noticed by: bsdimp
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/cc_int/Makefile7
-rw-r--r--gnu/usr.bin/cc/cc_tools/Makefile20
2 files changed, 12 insertions, 15 deletions
diff --git a/gnu/usr.bin/cc/cc_int/Makefile b/gnu/usr.bin/cc/cc_int/Makefile
index 1627241..4e74082 100644
--- a/gnu/usr.bin/cc/cc_int/Makefile
+++ b/gnu/usr.bin/cc/cc_int/Makefile
@@ -9,10 +9,9 @@ INTERNALLIB= YES
# Files from libiberty.
SRCS= choose-temp.c concat.c cp-demangle.c cp-demint.c cplus-dem.c \
- dyn-string.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
+ dyn-string.c fibheap.c getpwd.c getruntime.c hashtab.c hex.c \
+ lbasename.c make-temp-file.c md5.c obstack.c partition.c pex-unix.c \
+ physmem.c splay-tree.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c
# Language-independent files.
SRCS+= alias.c bb-reorder.c bitmap.c builtins.c caller-save.c calls.c \
diff --git a/gnu/usr.bin/cc/cc_tools/Makefile b/gnu/usr.bin/cc/cc_tools/Makefile
index 27dfe6d..45d33e5 100644
--- a/gnu/usr.bin/cc/cc_tools/Makefile
+++ b/gnu/usr.bin/cc/cc_tools/Makefile
@@ -25,10 +25,9 @@ CFLAGS+= -DGENERATOR_FILE
# 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
+ dyn-string.c fibheap.c getpwd.c getruntime.c hashtab.c hex.c \
+ lbasename.c make-temp-file.c md5.c obstack.c partition.c pex-unix.c \
+ physmem.c splay-tree.c xexit.c xmalloc.c xmemdup.c xstrdup.c xstrerror.c
LIBIBERTY_OBJS= ${LIBIBERTY_SRCS:R:S/$/.o/g}
SRCS+= ${LIBIBERTY_SRCS}
@@ -77,7 +76,7 @@ gen-time-stamp: genattr genattrtab genconditions genconstants genemit \
build-tools: gen$F
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}
+ read-rtl.o insn-conditions.o min-insn-modes.o errors.o ${LIBIBERTY}
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
GENSRCS+= gen$F.c
@@ -91,7 +90,7 @@ build-tools: genattrtab
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}
+ errors.o ${LIBIBERTY}
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC} -lm
GENSRCS+= genattrtab.c
@@ -104,7 +103,7 @@ CLEANFILES+= genattrtab
.for F in constants conditions
build-tools: gen$F
-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}
+gen$F: gen$F.o rtl.o bitmap.o gensupport.o ggc-none.o read-rtl.o dummy-conditions.o min-insn-modes.o errors.o ${LIBIBERTY}
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
GENSRCS+= gen$F.c
@@ -114,7 +113,7 @@ CLEANFILES+= gen$F
.for F in modes check genrtl preds
build-tools: gen$F
-gen$F: gen$F.o ${LIBIBERTY}
+gen$F: gen$F.o errors.o ${LIBIBERTY}
${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.ALLSRC}
GENSRCS+= gen$F.c
@@ -128,9 +127,8 @@ genrtl.c genrtl.h: gengenrtl
GENSRCS+= genrtl.c genrtl.h
-SRCS+= bitmap.c concat.c dummy-conditions.c genautomata.c \
- gensupport.c getruntime.c ggc-none.c hashtab.c \
- obstack.c physmem.c print-rtl.c read-rtl.c rtl.c varray.c xmemdup.c
+SRCS+= bitmap.c dummy-conditions.c errors.c genautomata.c gensupport.c \
+ ggc-none.c print-rtl.c read-rtl.c rtl.c varray.c
#-----------------------------------------------------------------------
# insn modes stuff.
OpenPOWER on IntegriCloud