Add support for SHF_MERGE sections.
[deliverable/binutils-gdb.git] / gold / Makefile.am
1 # Process this file with automake to generate Makefile.in
2
3 AUTOMAKE_OPTIONS =
4
5 SUBDIRS = po testsuite
6
7 tooldir = $(exec_prefix)/$(target_alias)
8
9 ACLOCAL_AMFLAGS = -I ../bfd -I ../config
10
11 AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS)
12
13 INCLUDES = -D_GNU_SOURCE \
14 -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../elfcpp \
15 -DLOCALEDIR="\"$(datadir)/locale\"" \
16 @INCINTL@
17
18 YFLAGS = -d
19
20 noinst_PROGRAMS = ld-new
21 noinst_LIBRARIES = libgold.a
22
23 CCFILES = \
24 archive.cc \
25 common.cc \
26 defstd.cc \
27 dirsearch.cc \
28 dynobj.cc \
29 fileread.cc \
30 gold.cc \
31 gold-threads.cc \
32 layout.cc \
33 merge.cc \
34 object.cc \
35 options.cc \
36 output.cc \
37 readsyms.cc \
38 reloc.cc \
39 resolve.cc \
40 script.cc \
41 symtab.cc \
42 stringpool.cc \
43 target-select.cc \
44 workqueue.cc
45
46 HFILES = \
47 archive.h \
48 common.h \
49 defstd.h \
50 dirsearch.h \
51 dynobj.h \
52 fileread.h \
53 gold.h \
54 gold-threads.h \
55 layout.h \
56 merge.h \
57 object.h \
58 options.h \
59 output.h \
60 readsyms.h \
61 reloc.h \
62 reloc-types.h \
63 script.h \
64 script-c.h \
65 stringpool.h \
66 symtab.h \
67 target.h \
68 target-reloc.h \
69 target-select.h \
70 workqueue.h
71
72 TARGETFILES = \
73 i386.cc
74
75 YFILES = \
76 yyscript.y
77
78 EXTRA_DIST = yyscript.c yyscript.h
79
80 libgold_a_SOURCES = $(CCFILES) $(HFILES) $(YFILES)
81
82 ld_new_SOURCES = main.cc $(TARGETFILES)
83 ld_new_DEPENDENCIES = libgold.a $(LIBINTL_DEP)
84 ld_new_LDADD = libgold.a $(LIBINTL)
85
86 # Use an explicit dependency for the bison generated header file.
87 script.$(OBJEXT): yyscript.h
88
89 # We have to build libgold.a before we run the tests.
90 check: libgold.a
91
92 .PHONY: install-exec-local
93
94 install-exec-local: ld-new$(EXEEXT)
95 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
96 n=`echo ld | sed '$(transform)'; \
97 $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$${n}$(EXEEXT); \
98 if test "$(bindir)" != "$(tooldir)/bin"; then \
99 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
100 ln $(DESTDIR)$(bindir)/$${n}$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
101 || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
102 fi
103
104 # We want install to imply install-info as per GNU standards, despite
105 # the cygnus option.
106 install-data-local: install-info
107
108 POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
109
110 po/POTFILES.in: @MAINT@ Makefile
111 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
112 && mv tmp $(srcdir)/po/POTFILES.in
This page took 0.034995 seconds and 5 git commands to generate.