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