annotate lto-plugin/Makefile.am @ 158:494b0b89df80 default tip

...
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 25 May 2020 18:13:55 +0900
parents 04ced10e8804
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents: 67
diff changeset
1 ## Process this file with automake to produce Makefile.in.
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 ACLOCAL_AMFLAGS = -I .. -I ../config
63
b7f97abdc517 update gcc from gcc-4.5.0 to gcc-4.6
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents: 55
diff changeset
4 AUTOMAKE_OPTIONS = no-dependencies
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff changeset
5
111
kono
parents: 67
diff changeset
6 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff changeset
7 target_noncanonical := @target_noncanonical@
111
kono
parents: 67
diff changeset
8 libexecsubdir := $(libexecdir)/gcc/$(real_target_noncanonical)/$(gcc_version)$(accel_dir_suffix)
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff changeset
9
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
10 AM_CPPFLAGS = -I$(top_srcdir)/../include $(DEFS)
111
kono
parents: 67
diff changeset
11 AM_CFLAGS = @ac_lto_plugin_warn_cflags@
kono
parents: 67
diff changeset
12 AM_LDFLAGS = @ac_lto_plugin_ldflags@
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
13 AM_LIBTOOLFLAGS = --tag=disable-static
111
kono
parents: 67
diff changeset
14 override CFLAGS := $(filter-out -fsanitize=address,$(CFLAGS))
kono
parents: 67
diff changeset
15 override LDFLAGS := $(filter-out -fsanitize=address,$(LDFLAGS))
55
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff changeset
16
77e2b8dfacca update it from 4.4.3 to 4.5.0
ryoma <e075725@ie.u-ryukyu.ac.jp>
parents:
diff changeset
17 libexecsub_LTLIBRARIES = liblto_plugin.la
111
kono
parents: 67
diff changeset
18 gcc_build_dir = @gcc_build_dir@
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
19 in_gcc_libs = $(foreach lib, $(libexecsub_LTLIBRARIES), $(gcc_build_dir)/$(lib))
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
20
111
kono
parents: 67
diff changeset
21 liblto_plugin_la_SOURCES = lto-plugin.c
kono
parents: 67
diff changeset
22 # Note that we intentionally override the bindir supplied by ACX_LT_HOST_FLAGS.
kono
parents: 67
diff changeset
23 liblto_plugin_la_LDFLAGS = $(AM_LDFLAGS) \
kono
parents: 67
diff changeset
24 $(lt_host_flags) -module -bindir $(libexecsubdir)
kono
parents: 67
diff changeset
25 # Can be simplified when libiberty becomes a normal convenience library.
kono
parents: 67
diff changeset
26 libiberty = $(with_libiberty)/libiberty.a
kono
parents: 67
diff changeset
27 libiberty_noasan = $(with_libiberty)/noasan/libiberty.a
kono
parents: 67
diff changeset
28 libiberty_pic = $(with_libiberty)/pic/libiberty.a
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
29 Wc=-Wc,
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
30 liblto_plugin_la_LIBADD = \
111
kono
parents: 67
diff changeset
31 $(if $(wildcard $(libiberty_noasan)),$(Wc)$(libiberty_noasan), \
kono
parents: 67
diff changeset
32 $(if $(wildcard $(libiberty_pic)),$(Wc)$(libiberty_pic),))
kono
parents: 67
diff changeset
33 liblto_plugin_la_LDFLAGS += \
kono
parents: 67
diff changeset
34 $(if $(wildcard $(libiberty_noasan)),, \
kono
parents: 67
diff changeset
35 $(if $(wildcard $(libiberty_pic)),,-Wc,$(libiberty)))
kono
parents: 67
diff changeset
36 liblto_plugin_la_DEPENDENCIES = \
kono
parents: 67
diff changeset
37 $(if $(wildcard $(libiberty_noasan)),$(libiberty_noasan), \
kono
parents: 67
diff changeset
38 $(if $(wildcard $(libiberty_pic)),$(libiberty_pic),))
kono
parents: 67
diff changeset
39 LTLDFLAGS = $(shell $(SHELL) $(top_srcdir)/../libtool-ldflags $(LDFLAGS))
kono
parents: 67
diff changeset
40 liblto_plugin_la_LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) \
kono
parents: 67
diff changeset
41 $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
kono
parents: 67
diff changeset
42 $(liblto_plugin_la_LDFLAGS) $(LTLDFLAGS) -o $@
67
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
43
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
44 all-local: $(in_gcc_libs)
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
45
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
46 $(in_gcc_libs) : $(gcc_build_dir)/%: %
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
47 @if test "X`dlname=; . ./$*; echo dlname:$$dlname`" = "Xdlname:"; then \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
48 echo WARNING: $* is static, not copying to $@ >&2 ; \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
49 else \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
50 $(mkinstalldirs) $(gcc_build_dir) && \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
51 $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $* `pwd`/$@ ; \
f6334be47118 update gcc from gcc-4.6-20100522 to gcc-4.6-20110318
nobuyasu <dimolto@cr.ie.u-ryukyu.ac.jp>
parents: 63
diff changeset
52 fi