31 lines
874 B
Makefile
31 lines
874 B
Makefile
# copyright : Copyright (c) 2017-2018 Red Hat
|
|
# license : GNU GPL v3; see accompanying LICENSE file
|
|
|
|
plugindir = @plugindir@
|
|
|
|
plugin_LTLIBRARIES = annobin.la
|
|
|
|
AM_CPPFLAGS = -I'$(top_builddir)' -I'$(top_srcdir)' -DOLD_GAS=1
|
|
AUTOMAKE_OPTIONS = no-dependencies
|
|
|
|
|
|
annobin_la_SOURCES = annobin.cc
|
|
EXTRA_annobin_la_SOURCES = aarch64.annobin.cc dummy.annobin.cc powerpc.annobin.cc x86_64.annobin.cc
|
|
annobin_la_LIBADD = @target_plugin@
|
|
annobin_la_DEPENDENCIES = @target_plugin@
|
|
|
|
# Make sure common sources are compiled differently.
|
|
#
|
|
annobin_CXXFLAGS = $(AM_CXXFLAGS)
|
|
|
|
annobin_la_LDFLAGS = -module
|
|
annobin_la_LINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) \
|
|
$(LIBTOOLFLAGS) --mode=link $(CXXLD) $(AM_CXXFLAGS) $(CXXFLAGS) \
|
|
$(annobin_la_LDFLAGS) $(LTLDFLAGS) -o $@
|
|
|
|
# Remove the .la file from the final install.
|
|
#
|
|
install-data-hook:
|
|
rm -f '$(DESTDIR)$(plugindir)/annobin.la'
|
|
|