]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gold/Makefile.am
Add global parameters.
[thirdparty/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 parameters.cc \
38 readsyms.cc \
39 reloc.cc \
40 resolve.cc \
41 script.cc \
42 symtab.cc \
43 stringpool.cc \
44 target-select.cc \
45 workqueue.cc
46
47 HFILES = \
48 archive.h \
49 common.h \
50 defstd.h \
51 dirsearch.h \
52 dynobj.h \
53 fileread.h \
54 gold.h \
55 gold-threads.h \
56 layout.h \
57 merge.h \
58 object.h \
59 options.h \
60 output.h \
61 parameters.h \
62 readsyms.h \
63 reloc.h \
64 reloc-types.h \
65 script.h \
66 script-c.h \
67 stringpool.h \
68 symtab.h \
69 target.h \
70 target-reloc.h \
71 target-select.h \
72 workqueue.h
73
74 TARGETFILES = \
75 i386.cc
76
77 YFILES = \
78 yyscript.y
79
80 EXTRA_DIST = yyscript.c yyscript.h
81
82 libgold_a_SOURCES = $(CCFILES) $(HFILES) $(YFILES)
83
84 ld_new_SOURCES = main.cc $(TARGETFILES)
85 ld_new_DEPENDENCIES = libgold.a $(LIBINTL_DEP)
86 ld_new_LDADD = libgold.a $(LIBINTL)
87
88 # Use an explicit dependency for the bison generated header file.
89 script.$(OBJEXT): yyscript.h
90
91 # We have to build libgold.a before we run the tests.
92 check: libgold.a
93
94 .PHONY: install-exec-local
95
96 install-exec-local: ld-new$(EXEEXT)
97 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
98 n=`echo ld | sed '$(transform)'; \
99 $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$${n}$(EXEEXT); \
100 if test "$(bindir)" != "$(tooldir)/bin"; then \
101 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
102 ln $(DESTDIR)$(bindir)/$${n}$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
103 || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
104 fi
105
106 # We want install to imply install-info as per GNU standards, despite
107 # the cygnus option.
108 install-data-local: install-info
109
110 POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
111
112 po/POTFILES.in: @MAINT@ Makefile
113 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
114 && mv tmp $(srcdir)/po/POTFILES.in