2009-10-04 05:10:11 +08:00
|
|
|
# Makefile.am is used by automake 1.11 to generate Makefile.in.
|
|
|
|
|
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config
|
2010-01-11 20:38:09 +08:00
|
|
|
AUTOMAKE_OPTIONS = no-dependencies
|
2009-10-04 05:10:11 +08:00
|
|
|
|
|
|
|
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
|
|
|
|
target_noncanonical := @target_noncanonical@
|
|
|
|
libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
|
|
|
|
|
2010-11-03 17:14:32 +08:00
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
|
2009-10-04 05:10:11 +08:00
|
|
|
AM_CFLAGS = -Wall -Werror
|
2010-12-21 01:03:10 +08:00
|
|
|
AM_LIBTOOLFLAGS = --tag=disable-static
|
2009-10-04 05:10:11 +08:00
|
|
|
|
|
|
|
libexecsub_LTLIBRARIES = liblto_plugin.la
|
|
|
|
|
2010-11-03 17:14:32 +08:00
|
|
|
liblto_plugin_la_SOURCES = lto-plugin.c
|
2010-12-15 18:29:01 +08:00
|
|
|
liblto_plugin_la_LIBADD = \
|
2010-12-16 00:56:26 +08:00
|
|
|
$(if $(wildcard ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
|
2010-12-06 08:50:04 +08:00
|
|
|
# Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
|
|
|
|
liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \
|
2010-12-16 00:56:26 +08:00
|
|
|
$(if $(wildcard ../libiberty/pic/libiberty.a),,-Wc,../libiberty/libiberty.a)
|
2010-07-22 20:50:00 +08:00
|
|
|
|
|
|
|
all: copy_lto_plugin
|
|
|
|
|
|
|
|
copy_lto_plugin: all-am
|
|
|
|
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $(libexecsub_LTLIBRARIES) `pwd`/../gcc/
|
|
|
|
|