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
43 OFILES = gold.o options.o
45 POTFILES= $(CFILES) $(HFILES)
47 po/POTFILES.in: @MAINT@ Makefile
48 for f in $(POTFILES); do echo $$f; done | LC_COLLATE= sort > tmp \
49 && mv tmp $(srcdir)/po/POTFILES.in
51 ld_new_SOURCES = $(CFILES) $(HFILES)
52 ld_new_DEPENDENCIES = $(LIBINTL_DEP)
53 ld_new_LDADD = $(LIBINTL)
55 .PHONY: install-exec-local
57 install-exec-local: ld-new$(EXEEXT)
58 $(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(tooldir)/bin
59 n=`echo ld | sed '$(transform)'; \
60 $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(bindir)/$${n}$(EXEEXT); \
61 if test "$(bindir)" != "$(tooldir)/bin"; then \
62 rm -f $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
63 ln $(DESTDIR)$(bindir)/$${n}$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT) >/dev/null 2>/dev/null \
64 || $(INSTALL_PROGRAM) ld-new$(EXEEXT) $(DESTDIR)$(tooldir)/bin/ld$(EXEEXT); \
67 # We want install to imply install-info as per GNU standards, despite
69 install-data-local: install-info