BZ#331380 Syscall param timer_create(evp) points to uninitialised byte(s)
[valgrind.git] / Makefile.vex.am
blob5adbae86fe09780ba8dfe869c8cd1659654c4098
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         quote.txt \
14         newline.txt \
15         auxprogs/genoffsets.c
17 pkginclude_HEADERS = \
18         pub/libvex.h \
19         pub/libvex_basictypes.h \
20         pub/libvex_emnote.h \
21         pub/libvex_guest_offsets.h \
22         pub/libvex_guest_x86.h \
23         pub/libvex_guest_amd64.h \
24         pub/libvex_guest_ppc32.h \
25         pub/libvex_guest_ppc64.h \
26         pub/libvex_guest_arm.h \
27         pub/libvex_guest_arm64.h \
28         pub/libvex_guest_s390x.h \
29         pub/libvex_guest_mips32.h \
30         pub/libvex_guest_mips64.h \
31         pub/libvex_s390x_common.h \
32         pub/libvex_ir.h \
33         pub/libvex_trc_values.h
35 noinst_HEADERS = \
36         priv/main_globals.h \
37         priv/main_util.h \
38         priv/ir_match.h \
39         priv/ir_opt.h \
40         priv/guest_generic_bb_to_IR.h \
41         priv/guest_generic_x87.h \
42         priv/guest_x86_defs.h \
43         priv/guest_amd64_defs.h \
44         priv/guest_ppc_defs.h \
45         priv/guest_arm_defs.h \
46         priv/guest_arm64_defs.h \
47         priv/guest_s390_defs.h \
48         priv/guest_mips_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
64 BUILT_SOURCES = pub/libvex_guest_offsets.h
65 CLEANFILES    = pub/libvex_guest_offsets.h
67 # This is very uggerly.  Need to sed out both "xyzzyN" and
68 # "xyzzy$N" since gcc on different targets emits the constants
69 # differently -- with a leading $ on x86/amd64 but none on ppc32/64.
70 pub/libvex_guest_offsets.h: auxprogs/genoffsets.c \
71                             pub/libvex_basictypes.h \
72                             pub/libvex_guest_x86.h \
73                             pub/libvex_guest_amd64.h \
74                             pub/libvex_guest_ppc32.h \
75                             pub/libvex_guest_ppc64.h \
76                             pub/libvex_guest_arm.h \
77                             pub/libvex_guest_arm64.h \
78                             pub/libvex_guest_s390x.h \
79                             pub/libvex_guest_mips32.h \
80                             pub/libvex_guest_mips64.h
81         rm -f auxprogs/genoffsets.s
82         $(CC) $(CFLAGS) \
83               $(LIBVEX_CFLAGS) \
84               $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
85                                 -O -S -o auxprogs/genoffsets.s \
86                                          auxprogs/genoffsets.c
87         grep xyzzy auxprogs/genoffsets.s | grep "^#define" \
88            | sed "s/xyzzy\\$$//g" \
89            | sed "s/xyzzy#//g" \
90            | sed "s/xyzzy//g" \
91            > pub/libvex_guest_offsets.h
92         rm -f auxprogs/genoffsets.s
94 #----------------------------------------------------------------------------
95 # libvex-<platform>.a
96 #----------------------------------------------------------------------------
98 pkglib_LIBRARIES  = libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
99 if VGCONF_HAVE_PLATFORM_SEC
100 pkglib_LIBRARIES += libvex-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a
101 endif
103 LIBVEX_SOURCES_COMMON = \
104         priv/main_globals.c \
105         priv/main_main.c \
106         priv/main_util.c \
107         priv/ir_defs.c \
108         priv/ir_inject.c \
109         priv/ir_match.c \
110         priv/ir_opt.c \
111         priv/guest_generic_bb_to_IR.c \
112         priv/guest_generic_x87.c \
113         priv/guest_x86_helpers.c \
114         priv/guest_x86_toIR.c \
115         priv/guest_amd64_helpers.c \
116         priv/guest_amd64_toIR.c \
117         priv/guest_ppc_helpers.c \
118         priv/guest_ppc_toIR.c \
119         priv/guest_arm_helpers.c \
120         priv/guest_arm_toIR.c \
121         priv/guest_arm64_helpers.c \
122         priv/guest_arm64_toIR.c \
123         priv/guest_s390_helpers.c \
124         priv/guest_s390_toIR.c \
125         priv/guest_mips_helpers.c \
126         priv/guest_mips_toIR.c \
127         priv/host_generic_regs.c \
128         priv/host_generic_simd64.c \
129         priv/host_generic_simd128.c \
130         priv/host_generic_simd256.c \
131         priv/host_generic_maddf.c \
132         priv/host_generic_reg_alloc2.c \
133         priv/host_x86_defs.c \
134         priv/host_x86_isel.c \
135         priv/host_amd64_defs.c \
136         priv/host_amd64_isel.c \
137         priv/host_ppc_defs.c \
138         priv/host_ppc_isel.c \
139         priv/host_arm_defs.c \
140         priv/host_arm_isel.c \
141         priv/host_arm64_defs.c \
142         priv/host_arm64_isel.c \
143         priv/host_s390_defs.c \
144         priv/host_s390_isel.c \
145         priv/s390_disasm.c \
146         priv/host_mips_defs.c \
147         priv/host_mips_isel.c
149 LIBVEX_CFLAGS = \
150         -Wbad-function-cast \
151         -Wcast-qual \
152         -Wcast-align \
153         -fstrict-aliasing
155 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES  = $(LIBVEX_SOURCES_COMMON)
156 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \
157         $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -Ipriv
158 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS   = \
159         $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(LIBVEX_CFLAGS)
160 if VGCONF_HAVE_PLATFORM_SEC
161 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES  = $(LIBVEX_SOURCES_COMMON)
162 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \
163         $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -Ipriv
164 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS   = \
165         $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(LIBVEX_CFLAGS)
166 endif