*** empty log message ***
[deliverable/binutils-gdb.git] / gold / Makefile.am
CommitLineData
bae7f79e
ILT
1# Process this file with automake to generate Makefile.in
2
3AUTOMAKE_OPTIONS =
4
5SUBDIRS = po
6
7tooldir = $(exec_prefix)/$(target_alias)
8
9ACLOCAL_AMFLAGS = -I ../bfd -I ../config
10
11AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS)
12
13INCLUDES = -D_GNU_SOURCE \
14 -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../elfcpp \
15 -DLOCALEDIR="\"$(datadir)/locale\"" \
16 @INCINTL@
17
dbe717ef
ILT
18YFLAGS = -d
19
bae7f79e
ILT
20noinst_PROGRAMS = ld-new
21
14bfc3f5 22CCFILES = \
61ba1cf9 23 archive.cc \
ead1e424
ILT
24 common.cc \
25 defstd.cc \
bae7f79e 26 dirsearch.cc \
dbe717ef 27 dynobj.cc \
bae7f79e
ILT
28 fileread.cc \
29 gold.cc \
30 gold-threads.cc \
a2fb1b05 31 layout.cc \
bae7f79e
ILT
32 object.cc \
33 options.cc \
a2fb1b05 34 output.cc \
bae7f79e 35 readsyms.cc \
61ba1cf9 36 reloc.cc \
14bfc3f5 37 resolve.cc \
dbe717ef 38 script.cc \
14bfc3f5
ILT
39 symtab.cc \
40 stringpool.cc \
41 target-select.cc \
bae7f79e
ILT
42 workqueue.cc
43
44HFILES = \
61ba1cf9 45 archive.h \
ead1e424
ILT
46 common.h \
47 defstd.h \
bae7f79e 48 dirsearch.h \
dbe717ef 49 dynobj.h \
bae7f79e
ILT
50 fileread.h \
51 gold.h \
52 gold-threads.h \
a2fb1b05 53 layout.h \
bae7f79e
ILT
54 object.h \
55 options.h \
a2fb1b05 56 output.h \
bae7f79e 57 readsyms.h \
61ba1cf9 58 reloc.h \
dbe717ef 59 script.h \
14bfc3f5 60 stringpool.h \
bae7f79e
ILT
61 symtab.h \
62 target.h \
61ba1cf9 63 target-reloc.h \
14bfc3f5 64 target-select.h \
bae7f79e
ILT
65 workqueue.h
66
14bfc3f5
ILT
67TARGETFILES = \
68 i386.cc
69
dbe717ef
ILT
70YFILES = \
71 yyscript.y
72
73EXTRA_DIST = yyscript.c yyscript.h
bae7f79e 74
14bfc3f5 75POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
bae7f79e
ILT
76
77po/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
dbe717ef 81ld_new_SOURCES = $(CCFILES) $(HFILES) $(TARGETFILES) $(YFILES)
bae7f79e
ILT
82ld_new_DEPENDENCIES = $(LIBINTL_DEP)
83ld_new_LDADD = $(LIBINTL)
84
dbe717ef
ILT
85# Use an explicit dependency for the bison generated header file.
86script.$(OBJEXT): yyscript.h
87
bae7f79e
ILT
88.PHONY: install-exec-local
89
90install-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.
102install-data-local: install-info
This page took 0.032506 seconds and 4 git commands to generate.