]> git.ipfire.org Git - thirdparty/gcc.git/blame - lto-plugin/Makefile.am
config/ChangeLog:
[thirdparty/gcc.git] / lto-plugin / Makefile.am
CommitLineData
7bfefa9d 1# Makefile.am is used by automake 1.11 to generate Makefile.in.
2
3ACLOCAL_AMFLAGS = -I .. -I ../config
a82c8807 4AUTOMAKE_OPTIONS = no-dependencies
7bfefa9d 5
6gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
7target_noncanonical := @target_noncanonical@
8libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
9
25630dc7 10AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
7bfefa9d 11AM_CFLAGS = -Wall -Werror
12
13libexecsub_LTLIBRARIES = liblto_plugin.la
14
25630dc7 15liblto_plugin_la_SOURCES = lto-plugin.c
16liblto_plugin_la_LIBADD = \
ca42e774 17 $(if $(wildcard ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
8c35d268 18# Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
19liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \
ca42e774 20 $(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
4d357b25 21
22all: copy_lto_plugin
23
24copy_lto_plugin: all-am
25 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $(libexecsub_LTLIBRARIES) `pwd`/../gcc/
26