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