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