bfd/
[deliverable/binutils-gdb.git] / gold / Makefile.am
index 13aae2678e497a72d0228dba6d7a9d26433eb32a..02a6da11f63722186e88ec9ea9294866f31a2c9d 100644 (file)
@@ -2,7 +2,7 @@
 
 AUTOMAKE_OPTIONS =
 
-SUBDIRS = po
+SUBDIRS = po testsuite
 
 tooldir = $(exec_prefix)/$(target_alias)
 
@@ -15,13 +15,17 @@ INCLUDES = -D_GNU_SOURCE \
        -DLOCALEDIR="\"$(datadir)/locale\"" \
        @INCINTL@
 
+YFLAGS = -d
+
 noinst_PROGRAMS = ld-new
+noinst_LIBRARIES = libgold.a
 
 CCFILES = \
        archive.cc \
        common.cc \
        defstd.cc \
        dirsearch.cc \
+       dynobj.cc \
        fileread.cc \
        gold.cc \
        gold-threads.cc \
@@ -32,6 +36,7 @@ CCFILES = \
        readsyms.cc \
        reloc.cc \
        resolve.cc \
+       script.cc \
        symtab.cc \
        stringpool.cc \
        target-select.cc \
@@ -42,6 +47,7 @@ HFILES = \
        common.h \
        defstd.h \
        dirsearch.h \
+       dynobj.h \
        fileread.h \
        gold.h \
        gold-threads.h \
@@ -51,6 +57,9 @@ HFILES = \
        output.h \
        readsyms.h \
        reloc.h \
+       reloc-types.h \
+       script.h \
+       script-c.h \
        stringpool.h \
        symtab.h \
        target.h \
@@ -61,17 +70,22 @@ HFILES = \
 TARGETFILES = \
        i386.cc
 
-OFILES = gold.o options.o
+YFILES = \
+       yyscript.y
 
-POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
+EXTRA_DIST = yyscript.c yyscript.h
 
-po/POTFILES.in: @MAINT@ Makefile
-       for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
-         && mv tmp $(srcdir)/po/POTFILES.in
+libgold_a_SOURCES = $(CCFILES) $(HFILES) $(YFILES)
+
+ld_new_SOURCES = main.cc $(TARGETFILES)
+ld_new_DEPENDENCIES = libgold.a $(LIBINTL_DEP)
+ld_new_LDADD = libgold.a $(LIBINTL)
+
+# Use an explicit dependency for the bison generated header file.
+script.$(OBJEXT): yyscript.h
 
-ld_new_SOURCES = $(CCFILES) $(HFILES) $(TARGETFILES)
-ld_new_DEPENDENCIES = $(LIBINTL_DEP)
-ld_new_LDADD = $(LIBINTL)
+# We have to build libgold.a before we run the tests.
+check: libgold.a
 
 .PHONY: install-exec-local
 
@@ -88,3 +102,9 @@ install-exec-local: ld-new$(EXEEXT)
 # We want install to imply install-info as per GNU standards, despite
 # the cygnus option.
 install-data-local: install-info
+
+POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
+
+po/POTFILES.in: @MAINT@ Makefile
+       for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
+         && mv tmp $(srcdir)/po/POTFILES.in
This page took 0.023739 seconds and 4 git commands to generate.