summaryrefslogtreecommitdiff
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
commitcd477e045a0fec2546c1f983d912e59d500c2798 (patch)
tree4a75a593561fc12a9635c9572652553743e59587 /gold/Makefile.am
parent33a08fe11171ec04dfee15974a8372fbeb8441c5 (diff)
downloadbinutils-redhat-cd477e045a0fec2546c1f983d912e59d500c2798.tar.gz
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 d69076a562..e4764757f7 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 \