1 # Process this file with automake to generate Makefile.in
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\"" \
18 noinst_PROGRAMS = ld-new
64 OFILES = gold.o options.o
66 POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
68 po/POTFILES.in: @MAINT@ Makefile
69 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
70 && mv tmp $(srcdir)/po/POTFILES.in
72 ld_new_SOURCES = $(CCFILES) $(HFILES) $(TARGETFILES)
73 ld_new_DEPENDENCIES = $(LIBINTL_DEP)
74 ld_new_LDADD = $(LIBINTL)
76 .PHONY: install-exec-local
78 install-exec-local: ld-new$(EXEEXT)
79 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
80 n=`echo ld | sed '$(transform)'; \
81 $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$${n}$(EXEEXT); \
82 if test "$(bindir)" != "$(tooldir)/bin"; then \
83 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
84 ln $(DESTDIR)$(bindir)/$${n}$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
85 || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
88 # We want install to imply install-info as per GNU standards, despite
90 install-data-local: install-info