dd8587d668
* Makefile.am (liblto_plugin_la_DEPENDENCIES): Define. (liblto_plugin_la_LIBADD): Use -L../libiberty/pic -liberty. (liblto_plugin_la_LDFLAGS): Use -L../libiberty -liberty. * Makefile.in: Regenerate. From-SVN: r167850
29 lines
1.1 KiB
Makefile
29 lines
1.1 KiB
Makefile
# Makefile.am is used by automake 1.11 to generate Makefile.in.
|
|
|
|
ACLOCAL_AMFLAGS = -I .. -I ../config
|
|
AUTOMAKE_OPTIONS = no-dependencies
|
|
|
|
gcc_version := $(shell cat $(top_srcdir)/../gcc/BASE-VER)
|
|
target_noncanonical := @target_noncanonical@
|
|
libexecsubdir := $(libexecdir)/gcc/$(target_noncanonical)/$(gcc_version)
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
|
|
AM_CFLAGS = -Wall -Werror
|
|
|
|
libexecsub_LTLIBRARIES = liblto_plugin.la
|
|
|
|
liblto_plugin_la_SOURCES = lto-plugin.c
|
|
liblto_plugin_la_DEPENDENCIES = \
|
|
$(if $(wildcard ../libiberty/pic/libiberty.a),../libiberty/pic/libiberty.a,)
|
|
liblto_plugin_la_LIBADD = \
|
|
$(if $(wildcard ../libiberty/pic/libiberty.a),-L../libiberty/pic -liberty,)
|
|
# Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS
|
|
liblto_plugin_la_LDFLAGS = $(lt_host_flags) -bindir $(libexecsubdir) \
|
|
$(if $(wildcard ../libiberty/pic/libiberty.a),,-L../libiberty -liberty)
|
|
|
|
all: copy_lto_plugin
|
|
|
|
copy_lto_plugin: all-am
|
|
$(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $(libexecsub_LTLIBRARIES) `pwd`/../gcc/
|
|
|