Merge from mainline (168000:168310).
[official-gcc/graphite-test-results.git] / lto-plugin / Makefile.am
bloba51bc4a9739edcfdfecb7143a1a68812c68e5a72
1 # Makefile.am is used by automake 1.11 to generate Makefile.in.
3 ACLOCAL_AMFLAGS = -I .. -I ../config
4 AUTOMAKE_OPTIONS = no-dependencies
6 gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
7 target_noncanonical := @target_noncanonical@
8 libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
10 AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
11 AM_CFLAGS = -Wall -Werror
12 AM_LIBTOOLFLAGS = --tag=disable-static
14 libexecsub_LTLIBRARIES = liblto_plugin.la
16 liblto_plugin_la_SOURCES = lto-plugin.c
17 liblto_plugin_la_LIBADD = \
18         $(if $(wildcard ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
19 # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
20 liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \
21         $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
23 all: copy_lto_plugin
25 copy_lto_plugin: all-am
26         $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $(libexecsub_LTLIBRARIES) `pwd`/../gcc/