OSDN Git Service

2010-12-05 Kai Tietz <kai.tietz@onevision.com>
[pf3gnuchains/gcc-fork.git] / lto-plugin / Makefile.am
1 # Makefile.am is used by automake 1.11 to generate Makefile.in.
2
3 ACLOCAL_AMFLAGS = -I .. -I ../config
4 AUTOMAKE_OPTIONS = no-dependencies
5
6 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
7 target_noncanonical := @target_noncanonical@
8 libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
9
10 AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
11 AM_CFLAGS = -Wall -Werror
12
13 libexecsub_LTLIBRARIES = liblto_plugin.la
14
15 liblto_plugin_la_SOURCES = lto-plugin.c
16 liblto_plugin_la_LIBADD = \
17         $(if $(wildcard ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
18 liblto_plugin_la_LDFLAGS = -no-undefined -bindir $(libexecsubdir) \
19         $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
20
21 all: copy_lto_plugin
22
23 copy_lto_plugin: all-am
24         $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $(libexecsub_LTLIBRARIES) `pwd`/../gcc/
25