aboutsummaryrefslogtreecommitdiff
path: root/gold/Makefile.am
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2007-09-30 23:41:32 +0000
committerIan Lance Taylor <iant@google.com>2007-09-30 23:41:32 +0000
commit6df6da4a619b2ff8556d9979003601c99b2b4d2d (patch)
tree914da273a2afa3eb063fdd45d13ec8ee027afe5e /gold/Makefile.am
parent07e8d93c1c9b260b004cbaa61a02cfd4b15e5936 (diff)
downloadgdb-6df6da4a619b2ff8556d9979003601c99b2b4d2d.zip
gdb-6df6da4a619b2ff8556d9979003601c99b2b4d2d.tar.gz
gdb-6df6da4a619b2ff8556d9979003601c99b2b4d2d.tar.bz2
Clean up target handling--only build required files, warn about
unsupported targets.
Diffstat (limited to 'gold/Makefile.am')
-rw-r--r--gold/Makefile.am19
1 files changed, 12 insertions, 7 deletions
diff --git a/gold/Makefile.am b/gold/Makefile.am
index d69076a..e476475 100644
--- a/gold/Makefile.am
+++ b/gold/Makefile.am
@@ -73,24 +73,29 @@ HFILES = \
target-select.h \
workqueue.h
-TARGETFILES = \
- i386.cc
-
YFILES = \
yyscript.y
EXTRA_DIST = yyscript.c yyscript.h
+TARGETSOURCES = \
+ i386.cc
+
+ALL_TARGETOBJS = \
+ i386.$(OBJEXT)
+
libgold_a_SOURCES = $(CCFILES) $(HFILES) $(YFILES)
-sources_var = main.cc $(TARGETFILES)
-deps_var = libgold.a $(LIBINTL_DEP)
-ldadd_var = libgold.a $(LIBINTL)
+sources_var = main.cc
+deps_var = $(TARGETOBJS) libgold.a $(LIBINTL_DEP)
+ldadd_var = $(TARGETOBJS) libgold.a $(LIBINTL)
ld_new_SOURCES = $(sources_var)
ld_new_DEPENDENCIES = $(deps_var) $(LIBOBJS)
ld_new_LDADD = $(ldadd_var) $(LIBOBJS)
+EXTRA_ld_new_SOURCES = $(TARGETSOURCES)
+
# Use an explicit dependency for the bison generated header file.
script.$(OBJEXT): yyscript.h
@@ -113,7 +118,7 @@ install-exec-local: ld-new$(EXEEXT)
# the cygnus option.
install-data-local: install-info
-POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
+POTFILES= $(CCFILES) $(HFILES) $(TARGETSOURCES)
po/POTFILES.in: @MAINT@ Makefile
for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \