annotate libvtv/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 ## Makefile for the VTV library.
kono
parents:
diff changeset
2 ##
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
3 ## Copyright (C) 2013-2020 Free Software Foundation, Inc.
111
kono
parents:
diff changeset
4 ##
kono
parents:
diff changeset
5 ## Process this file with automake to produce Makefile.in.
kono
parents:
diff changeset
6 ##
kono
parents:
diff changeset
7 ## This file is part of the Vtable Verification (VTV) Library. This
kono
parents:
diff changeset
8 ## library is free software; you can redistribute it and/or modify it
kono
parents:
diff changeset
9 ## under the terms of the GNU General Public License as published by
kono
parents:
diff changeset
10 ## the Free Software Foundation; either version 3, or (at your option)
kono
parents:
diff changeset
11 ## any later version.
kono
parents:
diff changeset
12
kono
parents:
diff changeset
13 ## This library is distributed in the hope that it will be useful, but
kono
parents:
diff changeset
14 ## WITHOUT ANY WARRANTY; without even the implied warranty of
kono
parents:
diff changeset
15 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
kono
parents:
diff changeset
16 ## General Public License for more details.
kono
parents:
diff changeset
17
kono
parents:
diff changeset
18 ## You should have received a copy of the GNU General Public License
kono
parents:
diff changeset
19 ## along with this library; see the file COPYING3. If not see
kono
parents:
diff changeset
20 ## <http://www.gnu.org/licenses/>.
kono
parents:
diff changeset
21
kono
parents:
diff changeset
22 if ENABLE_VTABLE_VERIFY
kono
parents:
diff changeset
23 SUBDIRS = testsuite
kono
parents:
diff changeset
24 else
kono
parents:
diff changeset
25 SUBDIRS=
kono
parents:
diff changeset
26 endif
kono
parents:
diff changeset
27
kono
parents:
diff changeset
28 ACLOCAL_AMFLAGS = -I .. -I ../config
kono
parents:
diff changeset
29
kono
parents:
diff changeset
30 # May be used by toolexeclibdir.
kono
parents:
diff changeset
31 gcc_version := $(shell @get_gcc_base_ver@ $(top_srcdir)/../gcc/BASE-VER)
kono
parents:
diff changeset
32
kono
parents:
diff changeset
33 DEFS = @DEFS@
kono
parents:
diff changeset
34 AM_CPPFLAGS = -I$(top_srcdir)/../include
kono
parents:
diff changeset
35 AM_CFLAGS = $(XCFLAGS)
kono
parents:
diff changeset
36 AM_CCASFLAGS = $(XCFLAGS)
kono
parents:
diff changeset
37 AM_CXXFLAGS = $(XCFLAGS)
kono
parents:
diff changeset
38 AM_CXXFLAGS += $(LIBSTDCXX_RAW_CXX_CXXFLAGS)
kono
parents:
diff changeset
39 AM_CXXFLAGS += -Wl,-u_vtable_map_vars_start,-u_vtable_map_vars_end
kono
parents:
diff changeset
40
kono
parents:
diff changeset
41 if ENABLE_VTABLE_VERIFY
kono
parents:
diff changeset
42 toolexeclib_LTLIBRARIES = libvtv.la
kono
parents:
diff changeset
43 if VTV_CYGMIN
kono
parents:
diff changeset
44 toolexeclib_LTLIBRARIES += libvtv_stubs.la
kono
parents:
diff changeset
45 endif
kono
parents:
diff changeset
46 endif
kono
parents:
diff changeset
47
kono
parents:
diff changeset
48 vtv_headers = \
kono
parents:
diff changeset
49 vtv_map.h \
kono
parents:
diff changeset
50 vtv_malloc.h \
kono
parents:
diff changeset
51 vtv_fail.h \
kono
parents:
diff changeset
52 vtv_set.h \
kono
parents:
diff changeset
53 vtv_utils.h \
kono
parents:
diff changeset
54 vtv_rts.h
kono
parents:
diff changeset
55
kono
parents:
diff changeset
56 vtv_sources = \
kono
parents:
diff changeset
57 vtv_start.c \
kono
parents:
diff changeset
58 vtv_malloc.cc \
kono
parents:
diff changeset
59 vtv_rts.cc \
kono
parents:
diff changeset
60 vtv_utils.cc \
kono
parents:
diff changeset
61 vtv_end.c
kono
parents:
diff changeset
62
kono
parents:
diff changeset
63 vtv_stubs_sources = \
kono
parents:
diff changeset
64 vtv_start.c \
kono
parents:
diff changeset
65 vtv_stubs.cc \
kono
parents:
diff changeset
66 vtv_end.c
kono
parents:
diff changeset
67
kono
parents:
diff changeset
68 libvtv_includedir = $(libdir)/gcc/$(target_alias)/$(gcc_version)/include
kono
parents:
diff changeset
69
kono
parents:
diff changeset
70 # Link in vtv_start and vtv_end.
kono
parents:
diff changeset
71 BUILT_SOURCES = vtv_start.c vtv_end.c
kono
parents:
diff changeset
72 vtv_start.c:
kono
parents:
diff changeset
73 rm -f $@
kono
parents:
diff changeset
74 $(LN_S) $(toplevel_srcdir)/libgcc/vtv_start.c $@
kono
parents:
diff changeset
75
kono
parents:
diff changeset
76 vtv_end.c:
kono
parents:
diff changeset
77 rm -f $@
kono
parents:
diff changeset
78 $(LN_S) $(toplevel_srcdir)/libgcc/vtv_end.c $@
kono
parents:
diff changeset
79
kono
parents:
diff changeset
80 if VTV_NO_OBSTACK
kono
parents:
diff changeset
81 obstack.c:
kono
parents:
diff changeset
82 rm -f $@
kono
parents:
diff changeset
83 $(LN_S) $(toplevel_srcdir)/libiberty/obstack.c $@
kono
parents:
diff changeset
84 > config.h
kono
parents:
diff changeset
85 endif
kono
parents:
diff changeset
86
kono
parents:
diff changeset
87 if VTV_CYGMIN
kono
parents:
diff changeset
88 vtv_stubs.cc:
kono
parents:
diff changeset
89 rm -f $@
kono
parents:
diff changeset
90 $(LN_S) $(toplevel_srcdir)/libstdc++-v3/libsupc++/vtv_stubs.cc $@
kono
parents:
diff changeset
91 endif
kono
parents:
diff changeset
92
kono
parents:
diff changeset
93 if VTV_CYGMIN
kono
parents:
diff changeset
94 libvtv_la_LIBADD = -lpsapi
kono
parents:
diff changeset
95 libvtv_la_LDFLAGS = $(lt_host_flags)
kono
parents:
diff changeset
96 libvtv_stubs_la_LDFLAGS = $(lt_host_flags)
kono
parents:
diff changeset
97 endif
kono
parents:
diff changeset
98
kono
parents:
diff changeset
99 if ENABLE_VTABLE_VERIFY
kono
parents:
diff changeset
100 libvtv_la_SOURCES = $(vtv_sources)
kono
parents:
diff changeset
101 if VTV_NO_OBSTACK
kono
parents:
diff changeset
102 libvtv_la_SOURCES += obstack.c
kono
parents:
diff changeset
103 endif
kono
parents:
diff changeset
104 if VTV_CYGMIN
kono
parents:
diff changeset
105 libvtv_stubs_la_SOURCES = $(vtv_stubs_sources)
kono
parents:
diff changeset
106 endif
kono
parents:
diff changeset
107 libvtv_include_HEADERS = $(vtv_headers)
kono
parents:
diff changeset
108 else
kono
parents:
diff changeset
109 libvtv_la_SOURCES =
kono
parents:
diff changeset
110 libvtv_include_HEADERS =
kono
parents:
diff changeset
111 endif
kono
parents:
diff changeset
112
kono
parents:
diff changeset
113 # Least ordering for dependencies mean linking w/o libstdc++ for as
kono
parents:
diff changeset
114 # long as the development of libvtv does not absolutely require it.
kono
parents:
diff changeset
115 CXXVTV=$(CC_FOR_TARGET)
kono
parents:
diff changeset
116 CXXLD=$(CC_FOR_TARGET)
kono
parents:
diff changeset
117
kono
parents:
diff changeset
118 LTCXXCOMPILE = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
kono
parents:
diff changeset
119 --mode=compile $(CXXVTV) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
kono
parents:
diff changeset
120 $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS)
kono
parents:
diff changeset
121
kono
parents:
diff changeset
122 CXXLINK = $(LIBTOOL) --tag=CXX $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
kono
parents:
diff changeset
123 --mode=link $(CXXVTV) $(AM_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \
kono
parents:
diff changeset
124 $(LDFLAGS) -o $@
145
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
125
1830386684a0 gcc-9.2.0
anatofuz
parents: 131
diff changeset
126 include $(top_srcdir)/../multilib.am