1 # VEX/Makefile is generated from this file at configure-time.
3 include $(top_srcdir)/Makefile.all.am
5 #----------------------------------------------------------------------------
7 #----------------------------------------------------------------------------
15 pkginclude_HEADERS = \
17 pub/libvex_basictypes.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_s390x_common.h \
31 pub/libvex_trc_values.h
38 priv/guest_generic_bb_to_IR.h \
39 priv/guest_generic_x87.h \
40 priv/guest_x86_defs.h \
41 priv/guest_amd64_defs.h \
42 priv/guest_ppc_defs.h \
43 priv/guest_arm_defs.h \
44 priv/guest_arm64_defs.h \
45 priv/guest_s390_defs.h \
46 priv/guest_mips_defs.h \
47 priv/host_generic_regs.h \
48 priv/host_generic_simd64.h \
49 priv/host_generic_simd128.h \
50 priv/host_generic_simd256.h \
51 priv/host_generic_maddf.h \
52 priv/host_x86_defs.h \
53 priv/host_amd64_defs.h \
54 priv/host_ppc_defs.h \
55 priv/host_arm_defs.h \
56 priv/host_arm64_defs.h \
57 priv/host_s390_defs.h \
62 BUILT_SOURCES = pub/libvex_guest_offsets.h
63 CLEANFILES = pub/libvex_guest_offsets.h
66 CFLAGS_FOR_GENOFFSETS = $(CFLAGS) -no-integrated-as
68 CFLAGS_FOR_GENOFFSETS = $(CFLAGS)
71 # This is very uggerly. Need to sed out both "xyzzyN" and
72 # "xyzzy$N" since gcc on different targets emits the constants
73 # differently -- with a leading $ on x86/amd64 but none on ppc32/64.
74 # ICC also emits the constants differently with a leading # #define
75 pub/libvex_guest_offsets.h: auxprogs/genoffsets.c \
76 pub/libvex_basictypes.h \
77 pub/libvex_guest_x86.h \
78 pub/libvex_guest_amd64.h \
79 pub/libvex_guest_ppc32.h \
80 pub/libvex_guest_ppc64.h \
81 pub/libvex_guest_arm.h \
82 pub/libvex_guest_arm64.h \
83 pub/libvex_guest_s390x.h \
84 pub/libvex_guest_mips32.h \
85 pub/libvex_guest_mips64.h
86 rm -f auxprogs/genoffsets.s
87 $(mkdir_p) auxprogs pub
88 $(CC) $(CFLAGS_FOR_GENOFFSETS) \
90 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \
91 -O -S -o auxprogs/genoffsets.s \
92 $(srcdir)/auxprogs/genoffsets.c
93 grep xyzzy auxprogs/genoffsets.s | grep "^[# ]*#define" \
94 | sed "s/# #define/#define/g" \
95 | sed "s/xyzzy\\$$//g" \
98 > pub/libvex_guest_offsets.h
99 rm -f auxprogs/genoffsets.s
101 #----------------------------------------------------------------------------
102 # libvex-<platform>-<os>.a : containing all VEX objects, including
103 # a main_main.o compiled in single arch (guest==host).
104 # libvexmultiarch-<platform>-<os>.a, only containing multiarch_main_main.o,
105 # which is main_main.c compiled so that any guest/host combination
106 # can be done at runtime.
107 #----------------------------------------------------------------------------
109 pkglib_LIBRARIES = libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a \
110 libvexmultiarch-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
111 if VGCONF_HAVE_PLATFORM_SEC
112 pkglib_LIBRARIES += libvex-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a \
113 libvexmultiarch-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a
116 LIBVEX_SOURCES_COMMON = \
117 priv/main_globals.c \
124 priv/guest_generic_bb_to_IR.c \
125 priv/guest_generic_x87.c \
126 priv/guest_x86_helpers.c \
127 priv/guest_x86_toIR.c \
128 priv/guest_amd64_helpers.c \
129 priv/guest_amd64_toIR.c \
130 priv/guest_ppc_helpers.c \
131 priv/guest_ppc_toIR.c \
132 priv/guest_arm_helpers.c \
133 priv/guest_arm_toIR.c \
134 priv/guest_arm64_helpers.c \
135 priv/guest_arm64_toIR.c \
136 priv/guest_s390_helpers.c \
137 priv/guest_s390_toIR.c \
138 priv/guest_mips_helpers.c \
139 priv/guest_mips_toIR.c \
140 priv/host_generic_regs.c \
141 priv/host_generic_simd64.c \
142 priv/host_generic_simd128.c \
143 priv/host_generic_simd256.c \
144 priv/host_generic_maddf.c \
145 priv/host_generic_reg_alloc2.c \
146 priv/host_generic_reg_alloc3.c \
147 priv/host_x86_defs.c \
148 priv/host_x86_isel.c \
149 priv/host_amd64_defs.c \
150 priv/host_amd64_isel.c \
151 priv/host_ppc_defs.c \
152 priv/host_ppc_isel.c \
153 priv/host_arm_defs.c \
154 priv/host_arm_isel.c \
155 priv/host_arm64_defs.c \
156 priv/host_arm64_isel.c \
157 priv/host_s390_defs.c \
158 priv/host_s390_isel.c \
160 priv/host_mips_defs.c \
161 priv/host_mips_isel.c
163 LIBVEXMULTIARCH_SOURCES = priv/multiarch_main_main.c
166 -Wbad-function-cast \
169 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = $(LIBVEX_SOURCES_COMMON)
170 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \
171 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -Ipriv
172 libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \
173 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(LIBVEX_CFLAGS)
174 if VGCONF_HAVE_PLATFORM_SEC
175 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = $(LIBVEX_SOURCES_COMMON)
176 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \
177 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -Ipriv
178 libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \
179 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(LIBVEX_CFLAGS)
182 libvexmultiarch_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = \
183 $(LIBVEXMULTIARCH_SOURCES)
184 libvexmultiarch_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \
185 $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -Ipriv
186 libvexmultiarch_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \
187 $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(LIBVEX_CFLAGS)
188 if VGCONF_HAVE_PLATFORM_SEC
189 libvexmultiarch_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = \
190 $(LIBVEXMULTIARCH_SOURCES)
191 libvexmultiarch_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \
192 $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -Ipriv
193 libvexmultiarch_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \
194 $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(LIBVEX_CFLAGS)