Can now do a full static link of hello, world in C or C++
[deliverable/binutils-gdb.git] / gold / Makefile.am
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 common.cc \
23 defstd.cc \
24 dirsearch.cc \
25 fileread.cc \
26 gold.cc \
27 gold-threads.cc \
28 layout.cc \
29 object.cc \
30 options.cc \
31 output.cc \
32 readsyms.cc \
33 reloc.cc \
34 resolve.cc \
35 symtab.cc \
36 stringpool.cc \
37 target-select.cc \
38 workqueue.cc
39
40 HFILES = \
41 archive.h \
42 common.h \
43 defstd.h \
44 dirsearch.h \
45 fileread.h \
46 gold.h \
47 gold-threads.h \
48 layout.h \
49 object.h \
50 options.h \
51 output.h \
52 readsyms.h \
53 reloc.h \
54 stringpool.h \
55 symtab.h \
56 target.h \
57 target-reloc.h \
58 target-select.h \
59 workqueue.h
60
61 TARGETFILES = \
62 i386.cc
63
64 OFILES = gold.o options.o
65
66 POTFILES= $(CCFILES) $(HFILES) $(TARGETFILES)
67
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
71
72 ld_new_SOURCES = $(CCFILES) $(HFILES) $(TARGETFILES)
73 ld_new_DEPENDENCIES = $(LIBINTL_DEP)
74 ld_new_LDADD = $(LIBINTL)
75
76 .PHONY: install-exec-local
77
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); \
86 fi
87
88 # We want install to imply install-info as per GNU standards, despite
89 # the cygnus option.
90 install-data-local: install-info
This page took 0.033153 seconds and 5 git commands to generate.