]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gold/Makefile.am
New drop, with first cut of section layout code.
[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 noinst_PROGRAMS = ld-new
19
20 CCFILES = \
21 dirsearch.cc \
22 fileread.cc \
23 gold.cc \
24 gold-threads.cc \
25 layout.cc \
26 object.cc \
27 options.cc \
28 output.cc \
29 readsyms.cc \
30 resolve.cc \
31 symtab.cc \
32 stringpool.cc \
33 target-select.cc \
34 workqueue.cc
35
36 HFILES = \
37 dirsearch.h \
38 fileread.h \
39 gold.h \
40 gold-threads.h \
41 layout.h \
42 object.h \
43 options.h \
44 output.h \
45 readsyms.h \
46 stringpool.h \
47 symtab.h \
48 target.h \
49 target-select.h \
50 workqueue.h
51
52 TARGETFILES = \
53 i386.cc
54
55 OFILES = gold.o options.o
56
57 POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
58
59 po/POTFILES.in: @MAINT@ Makefile
60 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
61 && mv tmp $(srcdir)/po/POTFILES.in
62
63 ld_new_SOURCES = $(CCFILES) $(HFILES) $(TARGETFILES)
64 ld_new_DEPENDENCIES = $(LIBINTL_DEP)
65 ld_new_LDADD = $(LIBINTL)
66
67 .PHONY: install-exec-local
68
69 install-exec-local: ld-new$(EXEEXT)
70 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
71 n=`echo ld | sed '$(transform)'; \
72 $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$${n}$(EXEEXT); \
73 if test "$(bindir)" != "$(tooldir)/bin"; then \
74 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
75 ln $(DESTDIR)$(bindir)/$${n}$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
76 || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
77 fi
78
79 # We want install to imply install-info as per GNU standards, despite
80 # the cygnus option.
81 install-data-local: install-info