annotate libitm/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 1830386684a0
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
111
kono
parents:
diff changeset
1 ## Process this file with automake to produce Makefile.in
kono
parents:
diff changeset
2
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
3 AUTOMAKE_OPTIONS = info-in-builddir
111
kono
parents:
diff changeset
4 ACLOCAL_AMFLAGS = -I .. -I ../config
kono
parents:
diff changeset
5 SUBDIRS = testsuite
kono
parents:
diff changeset
6
kono
parents:
diff changeset
7 ## May be used by toolexeclibdir.
kono
parents:
diff changeset
8 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
kono
parents:
diff changeset
9
kono
parents:
diff changeset
10 abi_version = -fabi-version=4
kono
parents:
diff changeset
11
kono
parents:
diff changeset
12 config_path = @config_path@
kono
parents:
diff changeset
13 search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir)
kono
parents:
diff changeset
14
kono
parents:
diff changeset
15 libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
kono
parents:
diff changeset
16
kono
parents:
diff changeset
17 vpath % $(strip $(search_path))
kono
parents:
diff changeset
18
kono
parents:
diff changeset
19 AM_CPPFLAGS = $(addprefix -I, $(search_path))
kono
parents:
diff changeset
20 AM_CFLAGS = $(XCFLAGS)
kono
parents:
diff changeset
21 AM_CXXFLAGS = $(XCFLAGS) -std=gnu++0x -funwind-tables -fno-exceptions \
kono
parents:
diff changeset
22 -fno-rtti $(abi_version)
kono
parents:
diff changeset
23 AM_CCASFLAGS = $(XCFLAGS)
kono
parents:
diff changeset
24 AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS) $(HWCAP_LDFLAGS)
kono
parents:
diff changeset
25
kono
parents:
diff changeset
26 toolexeclib_LTLIBRARIES = libitm.la
kono
parents:
diff changeset
27 nodist_toolexeclib_HEADERS = libitm.spec
kono
parents:
diff changeset
28
kono
parents:
diff changeset
29 if LIBITM_BUILD_VERSIONED_SHLIB
kono
parents:
diff changeset
30 if LIBITM_BUILD_VERSIONED_SHLIB_GNU
kono
parents:
diff changeset
31 libitm_version_script = -Wl,--version-script,$(top_srcdir)/libitm.map
kono
parents:
diff changeset
32 libitm_version_dep = $(top_srcdir)/libitm.map
kono
parents:
diff changeset
33 endif
kono
parents:
diff changeset
34 if LIBITM_BUILD_VERSIONED_SHLIB_SUN
kono
parents:
diff changeset
35 libitm_version_script = -Wl,-M,libitm.map-sun
kono
parents:
diff changeset
36 libitm_version_dep = libitm.map-sun
kono
parents:
diff changeset
37 libitm.map-sun : $(top_srcdir)/libitm.map \
kono
parents:
diff changeset
38 $(top_srcdir)/../contrib/make_sunver.pl \
kono
parents:
diff changeset
39 $(libitm_la_OBJECTS) $(libitm_la_LIBADD)
kono
parents:
diff changeset
40 perl $(top_srcdir)/../contrib/make_sunver.pl \
kono
parents:
diff changeset
41 $(top_srcdir)/libitm.map \
kono
parents:
diff changeset
42 $(libitm_la_OBJECTS:%.lo=.libs/%.o) \
kono
parents:
diff changeset
43 `echo $(libitm_la_LIBADD) | \
kono
parents:
diff changeset
44 sed 's,/\([^/.]*\)\.la,/.libs/\1.a,g'` \
kono
parents:
diff changeset
45 > $@ || (rm -f $@ ; exit 1)
kono
parents:
diff changeset
46 endif
kono
parents:
diff changeset
47 else
kono
parents:
diff changeset
48 libitm_version_script =
kono
parents:
diff changeset
49 libitm_version_dep =
kono
parents:
diff changeset
50 endif
kono
parents:
diff changeset
51 libitm_version_info = -version-info $(libtool_VERSION)
kono
parents:
diff changeset
52
kono
parents:
diff changeset
53 # Force link with C, not C++. For now, while we're using C++ we don't
kono
parents:
diff changeset
54 # want or need libstdc++.
kono
parents:
diff changeset
55 libitm_la_DEPENDENCIES = $(libitm_version_dep)
kono
parents:
diff changeset
56 libitm_la_LINK = $(LINK) $(libitm_la_LDFLAGS)
kono
parents:
diff changeset
57 libitm_la_LDFLAGS = $(libitm_version_info) $(libitm_version_script)
kono
parents:
diff changeset
58
kono
parents:
diff changeset
59 libitm_la_SOURCES = \
kono
parents:
diff changeset
60 aatree.cc alloc.cc alloc_c.cc alloc_cpp.cc barrier.cc beginend.cc \
kono
parents:
diff changeset
61 clone.cc eh_cpp.cc local.cc \
kono
parents:
diff changeset
62 query.cc retry.cc rwlock.cc useraction.cc util.cc \
kono
parents:
diff changeset
63 sjlj.S tls.cc method-serial.cc method-gl.cc method-ml.cc
kono
parents:
diff changeset
64
kono
parents:
diff changeset
65 if ARCH_ARM
kono
parents:
diff changeset
66 libitm_la_SOURCES += hwcap.cc
kono
parents:
diff changeset
67 endif
kono
parents:
diff changeset
68 if ARCH_X86
kono
parents:
diff changeset
69 libitm_la_SOURCES += x86_sse.cc x86_avx.cc
kono
parents:
diff changeset
70 # Make sure -msse is appended at the end.
kono
parents:
diff changeset
71 x86_sse.lo : override CXXFLAGS += -msse
kono
parents:
diff changeset
72 endif
kono
parents:
diff changeset
73 if ARCH_X86_AVX
kono
parents:
diff changeset
74 # Make sure -mavx is appended at the end.
kono
parents:
diff changeset
75 x86_avx.lo : override CXXFLAGS += -mavx
kono
parents:
diff changeset
76 endif
kono
parents:
diff changeset
77
kono
parents:
diff changeset
78 if ARCH_FUTEX
kono
parents:
diff changeset
79 libitm_la_SOURCES += futex.cc
kono
parents:
diff changeset
80 endif
kono
parents:
diff changeset
81
kono
parents:
diff changeset
82 # Automake Documentation:
kono
parents:
diff changeset
83 # If your package has Texinfo files in many directories, you can use the
kono
parents:
diff changeset
84 # variable TEXINFO_TEX to tell Automake where to find the canonical
kono
parents:
diff changeset
85 # `texinfo.tex' for your package. The value of this variable should be
kono
parents:
diff changeset
86 # the relative path from the current `Makefile.am' to `texinfo.tex'.
kono
parents:
diff changeset
87 TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
kono
parents:
diff changeset
88
kono
parents:
diff changeset
89 # Defines info, dvi, pdf and html targets
kono
parents:
diff changeset
90 MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
kono
parents:
diff changeset
91 info_TEXINFOS = libitm.texi
kono
parents:
diff changeset
92
kono
parents:
diff changeset
93 # AM_CONDITIONAL on configure option --generated-files-in-srcdir
kono
parents:
diff changeset
94 if GENINSRC
kono
parents:
diff changeset
95 STAMP_GENINSRC = stamp-geninsrc
kono
parents:
diff changeset
96 else
kono
parents:
diff changeset
97 STAMP_GENINSRC =
kono
parents:
diff changeset
98 endif
kono
parents:
diff changeset
99
kono
parents:
diff changeset
100 # AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
kono
parents:
diff changeset
101 if BUILD_INFO
kono
parents:
diff changeset
102 STAMP_BUILD_INFO = stamp-build-info
kono
parents:
diff changeset
103 else
kono
parents:
diff changeset
104 STAMP_BUILD_INFO =
kono
parents:
diff changeset
105 endif
kono
parents:
diff changeset
106
kono
parents:
diff changeset
107
kono
parents:
diff changeset
108 all-local: $(STAMP_GENINSRC)
kono
parents:
diff changeset
109
kono
parents:
diff changeset
110 stamp-geninsrc: libitm.info
kono
parents:
diff changeset
111 cp -p $(top_builddir)/libitm.info $(srcdir)/libitm.info
kono
parents:
diff changeset
112 @touch $@
kono
parents:
diff changeset
113
kono
parents:
diff changeset
114 libitm.info: $(STAMP_BUILD_INFO)
kono
parents:
diff changeset
115
kono
parents:
diff changeset
116 stamp-build-info: libitm.texi
kono
parents:
diff changeset
117 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libitm.info $(srcdir)/libitm.texi
kono
parents:
diff changeset
118 @touch $@
kono
parents:
diff changeset
119
kono
parents:
diff changeset
120
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
121 CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO)
111
kono
parents:
diff changeset
122 MAINTAINERCLEANFILES = $(srcdir)/libitm.info
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
123
1830386684a0 gcc-9.2.0
anatofuz
parents: 111
diff changeset
124 include $(top_srcdir)/../multilib.am