Finished layout code.
[binutils.git] / gold / Makefile.am
blobed26af979f1594a02d0a622cd4c32dccbedaffa0
1 # Process this file with automake to generate Makefile.in
3 AUTOMAKE_OPTIONS =
5 SUBDIRS = po
7 tooldir = $(exec_prefix)/$(target_alias)
9 ACLOCAL_AMFLAGS = -I ../bfd -I ../config
11 AM_CXXFLAGS = $(WARN_CXXFLAGS) $(LFS_CXXFLAGS)
13 INCLUDES = -D_GNU_SOURCE \
14         -I$(srcdir) -I$(srcdir)/../include -I$(srcdir)/../elfcpp \
15         -DLOCALEDIR="\"$(datadir)/locale\"" \
16         @INCINTL@
18 noinst_PROGRAMS = ld-new
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
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
52 TARGETFILES = \
53         i386.cc
55 OFILES = gold.o options.o
57 POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
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
63 ld_new_SOURCES = $(CCFILES) $(HFILES) $(TARGETFILES)
64 ld_new_DEPENDENCIES = $(LIBINTL_DEP)
65 ld_new_LDADD = $(LIBINTL)
67 .PHONY: install-exec-local
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
79 # We want install to imply install-info as per GNU standards, despite
80 # the cygnus option.
81 install-data-local: install-info