Remove useless arguments in sparsewa, that were inheritated from WordFM
[valgrind.git] / Makefile.vex.am
blob09a8db6f1de70b4bc32f5ed89a2fcca9bf571989
1 # VEX/Makefile is generated from this file at configure-time.
3 include $(top_srcdir)/Makefile.all.am
5 #----------------------------------------------------------------------------
6 # Headers, etc
7 #----------------------------------------------------------------------------
9 EXTRA_DIST = \
10         HACKING.README \
11         LICENSE.README \
12         LICENSE.GPL \
13         auxprogs/genoffsets.c
15 pkginclude_HEADERS = \
16         pub/libvex.h \
17         pub/libvex_basictypes.h \
18         pub/libvex_emnote.h \
19         pub/libvex_guest_offsets.h \
20         pub/libvex_guest_x86.h \
21         pub/libvex_guest_amd64.h \
22         pub/libvex_guest_ppc32.h \
23         pub/libvex_guest_ppc64.h \
24         pub/libvex_guest_arm.h \
25         pub/libvex_guest_arm64.h \
26         pub/libvex_guest_s390x.h \
27         pub/libvex_guest_mips32.h \
28         pub/libvex_guest_mips64.h \
29         pub/libvex_guest_tilegx.h \
30         pub/libvex_s390x_common.h \
31         pub/libvex_ir.h \
32         pub/libvex_trc_values.h
34 noinst_HEADERS = \
35         priv/main_globals.h \
36         priv/main_util.h \
37         priv/ir_match.h \
38         priv/ir_opt.h \
39         priv/guest_generic_bb_to_IR.h \
40         priv/guest_generic_x87.h \
41         priv/guest_x86_defs.h \
42         priv/guest_amd64_defs.h \
43         priv/guest_ppc_defs.h \
44         priv/guest_arm_defs.h \
45         priv/guest_arm64_defs.h \
46         priv/guest_s390_defs.h \
47         priv/guest_mips_defs.h \
48         priv/guest_tilegx_defs.h \
49         priv/host_generic_regs.h \
50         priv/host_generic_simd64.h \
51         priv/host_generic_simd128.h \
52         priv/host_generic_simd256.h \
53         priv/host_generic_maddf.h \
54         priv/host_x86_defs.h \
55         priv/host_amd64_defs.h \
56         priv/host_ppc_defs.h \
57         priv/host_arm_defs.h \
58         priv/host_arm64_defs.h \
59         priv/host_s390_defs.h \
60         priv/s390_disasm.h \
61         priv/s390_defs.h \
62         priv/host_mips_defs.h \
63         priv/tilegx_disasm.h
65 BUILT_SOURCES = pub/libvex_guest_offsets.h
66 CLEANFILES    = pub/libvex_guest_offsets.h
68 if COMPILER_IS_CLANG
69 CFLAGS_FOR_GENOFFSETS = $(CFLAGS) -no-integrated-as
70 else
71 CFLAGS_FOR_GENOFFSETS = $(CFLAGS)
72 endif
74 # This is very uggerly.  Need to sed out both "xyzzyN" and
75 # "xyzzy$N" since gcc on different targets emits the constants
76 # differently -- with a leading $ on x86/amd64 but none on ppc32/64.
77 # ICC also emits the constants differently with a leading # #define
78 pub/libvex_guest_offsets.h: auxprogs/genoffsets.c \
79                             pub/libvex_basictypes.h \
80                             pub/libvex_guest_x86.h \
81                             pub/libvex_guest_amd64.h \
82                             pub/libvex_guest_ppc32.h \
83                             pub/libvex_guest_ppc64.h \
84                             pub/libvex_guest_arm.h \
85                             pub/libvex_guest_arm64.h \
86                             pub/libvex_guest_s390x.h \
87                             pub/libvex_guest_mips32.h \
88                             pub/libvex_guest_mips64.h \
89                             pub/libvex_guest_tilegx.h
90         rm -f auxprogs/genoffsets.s
91         $(mkdir_p) auxprogs pub
92         $(CC) $(CFLAGS_FOR_GENOFFSETS) \
93               $(LIBVEX_CFLAGS) \
94               $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
95                                 -O -S -o auxprogs/genoffsets.s \
96                                          $(srcdir)/auxprogs/genoffsets.c
97         grep xyzzy auxprogs/genoffsets.s | grep "^[# ]*#define" \
98            | sed "s/# #define/#define/g" \
99            | sed "s/xyzzy\\$$//g" \
100            | sed "s/xyzzy#//g" \
101            | sed "s/xyzzy//g" \
102            > pub/libvex_guest_offsets.h
103         rm -f auxprogs/genoffsets.s
105 #----------------------------------------------------------------------------
106 # libvex-<platform>-<os>.a : containing all VEX objects, including
107 # a main_main.o compiled in single arch (guest==host).
108 # libvexmultiarch-<platform>-<os>.a, only containing multiarch_main_main.o,
109 # which is main_main.c compiled so that any guest/host combination
110 # can be done at runtime.
111 #----------------------------------------------------------------------------
113 pkglib_LIBRARIES  = libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a \
114         libvexmultiarch-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
115 if VGCONF_HAVE_PLATFORM_SEC
116 pkglib_LIBRARIES += libvex-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a \
117         libvexmultiarch-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a
118 endif
120 LIBVEX_SOURCES_COMMON = \
121         priv/main_globals.c \
122         priv/main_main.c \
123         priv/main_util.c \
124         priv/ir_defs.c \
125         priv/ir_inject.c \
126         priv/ir_match.c \
127         priv/ir_opt.c \
128         priv/guest_generic_bb_to_IR.c \
129         priv/guest_generic_x87.c \
130         priv/guest_x86_helpers.c \
131         priv/guest_x86_toIR.c \
132         priv/guest_amd64_helpers.c \
133         priv/guest_amd64_toIR.c \
134         priv/guest_ppc_helpers.c \
135         priv/guest_ppc_toIR.c \
136         priv/guest_arm_helpers.c \
137         priv/guest_arm_toIR.c \
138         priv/guest_arm64_helpers.c \
139         priv/guest_arm64_toIR.c \
140         priv/guest_s390_helpers.c \
141         priv/guest_s390_toIR.c \
142         priv/guest_mips_helpers.c \
143         priv/guest_mips_toIR.c \
144         priv/guest_tilegx_helpers.c \
145         priv/guest_tilegx_toIR.c \
146         priv/host_generic_regs.c \
147         priv/host_generic_simd64.c \
148         priv/host_generic_simd128.c \
149         priv/host_generic_simd256.c \
150         priv/host_generic_maddf.c \
151         priv/host_generic_reg_alloc2.c \
152         priv/host_x86_defs.c \
153         priv/host_x86_isel.c \
154         priv/host_amd64_defs.c \
155         priv/host_amd64_isel.c \
156         priv/host_ppc_defs.c \
157         priv/host_ppc_isel.c \
158         priv/host_arm_defs.c \
159         priv/host_arm_isel.c \
160         priv/host_arm64_defs.c \
161         priv/host_arm64_isel.c \
162         priv/host_s390_defs.c \
163         priv/host_s390_isel.c \
164         priv/s390_disasm.c \
165         priv/host_mips_defs.c \
166         priv/host_mips_isel.c \
167         priv/host_tilegx_defs.c \
168         priv/host_tilegx_isel.c \
169         priv/tilegx_disasm.c
171 LIBVEXMULTIARCH_SOURCES = priv/multiarch_main_main.c
173 LIBVEX_CFLAGS = \
174         -Wbad-function-cast \
175         -fstrict-aliasing
177 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES  = $(LIBVEX_SOURCES_COMMON)
178 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \
179         $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -Ipriv
180 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS   = \
181         $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(LIBVEX_CFLAGS)
182 if VGCONF_HAVE_PLATFORM_SEC
183 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES  = $(LIBVEX_SOURCES_COMMON)
184 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \
185         $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -Ipriv
186 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS   = \
187         $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(LIBVEX_CFLAGS)
188 endif
190 libvexmultiarch_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES  = \
191         $(LIBVEXMULTIARCH_SOURCES)
192 libvexmultiarch_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \
193         $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -Ipriv
194 libvexmultiarch_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS   = \
195         $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(LIBVEX_CFLAGS)
196 if VGCONF_HAVE_PLATFORM_SEC
197 libvexmultiarch_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES  = \
198         $(LIBVEXMULTIARCH_SOURCES)
199 libvexmultiarch_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \
200         $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -Ipriv
201 libvexmultiarch_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS   = \
202         $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(LIBVEX_CFLAGS)
203 endif