1 ## Process this file with automake to produce Makefile.in
3 AUTOMAKE_OPTIONS = info-in-builddir
4 ACLOCAL_AMFLAGS = -I .. -I ../config
7 ## May be used by toolexeclibdir.
8 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
10 abi_version = -fabi-version=4
12 config_path = @config_path@
13 search_path = $(addprefix $(top_srcdir)/config/, $(config_path)) $(top_srcdir)
15 libsubincludedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
17 vpath % $(strip $(search_path))
19 AM_CPPFLAGS = $(addprefix -I, $(search_path))
20 AM_CFLAGS = $(XCFLAGS)
21 AM_CXXFLAGS = $(XCFLAGS) -std=gnu++0x -funwind-tables -fno-exceptions \
22 -fno-rtti $(abi_version)
23 AM_CCASFLAGS = $(XCFLAGS)
24 AM_LDFLAGS = $(XLDFLAGS) $(SECTION_LDFLAGS) $(OPT_LDFLAGS) $(HWCAP_LDFLAGS)
26 toolexeclib_LTLIBRARIES = libitm.la
27 nodist_toolexeclib_HEADERS = libitm.spec
29 if LIBITM_BUILD_VERSIONED_SHLIB
30 if LIBITM_BUILD_VERSIONED_SHLIB_GNU
31 libitm_version_script = -Wl,--version-script,$(top_srcdir)/libitm.map
32 libitm_version_dep = $(top_srcdir)/libitm.map
34 if LIBITM_BUILD_VERSIONED_SHLIB_SUN
35 libitm_version_script = -Wl,-M,libitm.map-sun
36 libitm_version_dep = libitm.map-sun
37 libitm.map-sun : $(top_srcdir)/libitm.map \
38 $(top_srcdir)/../contrib/make_sunver.pl \
39 $(libitm_la_OBJECTS) $(libitm_la_LIBADD)
40 perl $(top_srcdir)/../contrib/make_sunver.pl \
41 $(top_srcdir)/libitm.map \
42 $(libitm_la_OBJECTS:%.lo=.libs/%.o) \
43 `echo $(libitm_la_LIBADD) | \
44 sed 's,/\([^/.]*\)\.la,/.libs/\1.a,g'` \
45 > $@ || (rm -f $@ ; exit 1)
48 libitm_version_script =
51 libitm_version_info = -version-info $(libtool_VERSION)
53 # Force link with C, not C++. For now, while we're using C++ we don't
54 # want or need libstdc++.
55 libitm_la_DEPENDENCIES = $(libitm_version_dep)
56 libitm_la_LINK = $(LINK) $(libitm_la_LDFLAGS)
57 if ENABLE_DARWIN_AT_RPATH
58 libitm_darwin_rpath = -Wc,-nodefaultrpaths
59 libitm_darwin_rpath += -Wl,-rpath,@loader_path
61 libitm_la_LDFLAGS = $(libitm_version_info) $(libitm_version_script) \
62 $(libitm_darwin_rpath)
65 aatree.cc alloc.cc alloc_c.cc alloc_cpp.cc barrier.cc beginend.cc \
66 clone.cc eh_cpp.cc local.cc \
67 query.cc retry.cc rwlock.cc useraction.cc util.cc \
68 sjlj.S tls.cc method-serial.cc method-gl.cc method-ml.cc
71 libitm_la_SOURCES += hwcap.cc
74 libitm_la_SOURCES += x86_sse.cc x86_avx.cc
75 # Make sure -msse is appended at the end.
76 x86_sse.lo : override CXXFLAGS += -msse
79 # Make sure -mavx is appended at the end.
80 x86_avx.lo : override CXXFLAGS += -mavx
84 libitm_la_SOURCES += futex.cc
87 # Automake Documentation:
88 # If your package has Texinfo files in many directories, you can use the
89 # variable TEXINFO_TEX to tell Automake where to find the canonical
90 # `texinfo.tex' for your package. The value of this variable should be
91 # the relative path from the current `Makefile.am' to `texinfo.tex'.
92 TEXINFO_TEX = ../gcc/doc/include/texinfo.tex
94 # Defines info, dvi, pdf and html targets
95 MAKEINFOFLAGS = -I $(srcdir)/../gcc/doc/include
96 info_TEXINFOS = libitm.texi
98 # AM_CONDITIONAL on configure option --generated-files-in-srcdir
100 STAMP_GENINSRC = stamp-geninsrc
105 # AM_CONDITIONAL on configure check ACX_CHECK_PROG_VER([MAKEINFO])
107 STAMP_BUILD_INFO = stamp-build-info
113 all-local: $(STAMP_GENINSRC)
115 stamp-geninsrc: libitm.info
116 cp -p $(top_builddir)/libitm.info $(srcdir)/libitm.info
119 libitm.info: $(STAMP_BUILD_INFO)
121 stamp-build-info: libitm.texi
122 $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -o libitm.info $(srcdir)/libitm.texi
126 CLEANFILES = $(STAMP_GENINSRC) $(STAMP_BUILD_INFO)
127 MAINTAINERCLEANFILES = $(srcdir)/libitm.info
129 include $(top_srcdir)/../multilib.am