njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 1 | # VEX/Makefile is generated from this file at configure-time. |
| 2 | |
| 3 | include $(top_srcdir)/Makefile.all.am |
| 4 | |
| 5 | #---------------------------------------------------------------------------- |
| 6 | # Headers, etc |
| 7 | #---------------------------------------------------------------------------- |
| 8 | |
| 9 | EXTRA_DIST = \ |
| 10 | HACKING.README \ |
| 11 | LICENSE.README \ |
| 12 | LICENSE.GPL \ |
| 13 | quote.txt \ |
| 14 | newline.txt \ |
| 15 | auxprogs/genoffsets.c |
| 16 | |
| 17 | pkginclude_HEADERS = \ |
| 18 | pub/libvex.h \ |
| 19 | pub/libvex_basictypes.h \ |
florian | 7452db8 | 2012-08-25 21:48:22 +0000 | [diff] [blame] | 20 | pub/libvex_emnote.h \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 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 \ |
sewardj | f0c1250 | 2014-01-12 12:54:00 +0000 | [diff] [blame] | 27 | pub/libvex_guest_arm64.h \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 28 | pub/libvex_guest_s390x.h \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 29 | pub/libvex_guest_mips32.h \ |
florian | e42cca5 | 2013-08-29 17:59:27 +0000 | [diff] [blame] | 30 | pub/libvex_guest_mips64.h \ |
sewardj | 5730031 | 2011-03-07 16:42:02 +0000 | [diff] [blame] | 31 | pub/libvex_s390x_common.h \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 32 | pub/libvex_ir.h \ |
| 33 | pub/libvex_trc_values.h |
| 34 | |
| 35 | noinst_HEADERS = \ |
sewardj | 27824a7 | 2009-07-02 12:23:16 +0000 | [diff] [blame] | 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 \ |
sewardj | f0c1250 | 2014-01-12 12:54:00 +0000 | [diff] [blame] | 46 | priv/guest_arm64_defs.h \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 47 | priv/guest_s390_defs.h \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 48 | priv/guest_mips_defs.h \ |
sewardj | 27824a7 | 2009-07-02 12:23:16 +0000 | [diff] [blame] | 49 | priv/host_generic_regs.h \ |
| 50 | priv/host_generic_simd64.h \ |
sewardj | b823b85 | 2010-06-18 08:18:38 +0000 | [diff] [blame] | 51 | priv/host_generic_simd128.h \ |
sewardj | fda50af | 2013-03-27 11:43:20 +0000 | [diff] [blame] | 52 | priv/host_generic_simd256.h \ |
| 53 | priv/host_generic_maddf.h \ |
sewardj | 27824a7 | 2009-07-02 12:23:16 +0000 | [diff] [blame] | 54 | priv/host_x86_defs.h \ |
| 55 | priv/host_amd64_defs.h \ |
| 56 | priv/host_ppc_defs.h \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 57 | priv/host_arm_defs.h \ |
sewardj | f0c1250 | 2014-01-12 12:54:00 +0000 | [diff] [blame] | 58 | priv/host_arm64_defs.h \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 59 | priv/host_s390_defs.h \ |
florian | 4b2e2df | 2012-09-20 01:22:53 +0000 | [diff] [blame] | 60 | priv/s390_disasm.h \ |
florian | 142a4ba | 2012-12-24 00:16:23 +0000 | [diff] [blame] | 61 | priv/s390_defs.h \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 62 | priv/host_mips_defs.h |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 63 | |
| 64 | BUILT_SOURCES = pub/libvex_guest_offsets.h |
| 65 | CLEANFILES = pub/libvex_guest_offsets.h |
| 66 | |
| 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. |
sewardj | f3d5c6e | 2010-09-28 15:09:47 +0000 | [diff] [blame] | 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 \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 76 | pub/libvex_guest_arm.h \ |
sewardj | f0c1250 | 2014-01-12 12:54:00 +0000 | [diff] [blame] | 77 | pub/libvex_guest_arm64.h \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 78 | pub/libvex_guest_s390x.h \ |
florian | e42cca5 | 2013-08-29 17:59:27 +0000 | [diff] [blame] | 79 | pub/libvex_guest_mips32.h \ |
| 80 | pub/libvex_guest_mips64.h |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 81 | rm -f auxprogs/genoffsets.s |
mjw | e299020 | 2014-05-09 13:34:13 +0000 | [diff] [blame] | 82 | $(mkdir_p) auxprogs pub |
sewardj | 51331e1 | 2011-07-07 14:05:39 +0000 | [diff] [blame] | 83 | $(CC) $(CFLAGS) \ |
| 84 | $(LIBVEX_CFLAGS) \ |
sewardj | 76cd8d7 | 2010-08-22 11:51:26 +0000 | [diff] [blame] | 85 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) \ |
| 86 | -O -S -o auxprogs/genoffsets.s \ |
mjw | e299020 | 2014-05-09 13:34:13 +0000 | [diff] [blame] | 87 | $(srcdir)/auxprogs/genoffsets.c |
florian | f71b35a | 2012-04-22 19:27:44 +0000 | [diff] [blame] | 88 | grep xyzzy auxprogs/genoffsets.s | grep "^#define" \ |
sewardj | 59570ff | 2010-01-01 11:59:33 +0000 | [diff] [blame] | 89 | | sed "s/xyzzy\\$$//g" \ |
| 90 | | sed "s/xyzzy#//g" \ |
| 91 | | sed "s/xyzzy//g" \ |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 92 | > pub/libvex_guest_offsets.h |
| 93 | rm -f auxprogs/genoffsets.s |
| 94 | |
| 95 | #---------------------------------------------------------------------------- |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 96 | # libvex-<platform>.a |
| 97 | #---------------------------------------------------------------------------- |
| 98 | |
| 99 | pkglib_LIBRARIES = libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a |
| 100 | if VGCONF_HAVE_PLATFORM_SEC |
| 101 | pkglib_LIBRARIES += libvex-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a |
| 102 | endif |
| 103 | |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 104 | LIBVEX_SOURCES_COMMON = \ |
sewardj | 27824a7 | 2009-07-02 12:23:16 +0000 | [diff] [blame] | 105 | priv/main_globals.c \ |
| 106 | priv/main_main.c \ |
| 107 | priv/main_util.c \ |
| 108 | priv/ir_defs.c \ |
florian | bb913cd | 2012-08-28 16:50:39 +0000 | [diff] [blame] | 109 | priv/ir_inject.c \ |
sewardj | 27824a7 | 2009-07-02 12:23:16 +0000 | [diff] [blame] | 110 | priv/ir_match.c \ |
| 111 | priv/ir_opt.c \ |
| 112 | priv/guest_generic_bb_to_IR.c \ |
| 113 | priv/guest_generic_x87.c \ |
| 114 | priv/guest_x86_helpers.c \ |
| 115 | priv/guest_x86_toIR.c \ |
| 116 | priv/guest_amd64_helpers.c \ |
| 117 | priv/guest_amd64_toIR.c \ |
| 118 | priv/guest_ppc_helpers.c \ |
| 119 | priv/guest_ppc_toIR.c \ |
| 120 | priv/guest_arm_helpers.c \ |
| 121 | priv/guest_arm_toIR.c \ |
sewardj | f0c1250 | 2014-01-12 12:54:00 +0000 | [diff] [blame] | 122 | priv/guest_arm64_helpers.c \ |
| 123 | priv/guest_arm64_toIR.c \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 124 | priv/guest_s390_helpers.c \ |
| 125 | priv/guest_s390_toIR.c \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 126 | priv/guest_mips_helpers.c \ |
| 127 | priv/guest_mips_toIR.c \ |
sewardj | 27824a7 | 2009-07-02 12:23:16 +0000 | [diff] [blame] | 128 | priv/host_generic_regs.c \ |
| 129 | priv/host_generic_simd64.c \ |
sewardj | b823b85 | 2010-06-18 08:18:38 +0000 | [diff] [blame] | 130 | priv/host_generic_simd128.c \ |
sewardj | fda50af | 2013-03-27 11:43:20 +0000 | [diff] [blame] | 131 | priv/host_generic_simd256.c \ |
| 132 | priv/host_generic_maddf.c \ |
sewardj | 27824a7 | 2009-07-02 12:23:16 +0000 | [diff] [blame] | 133 | priv/host_generic_reg_alloc2.c \ |
| 134 | priv/host_x86_defs.c \ |
| 135 | priv/host_x86_isel.c \ |
| 136 | priv/host_amd64_defs.c \ |
| 137 | priv/host_amd64_isel.c \ |
| 138 | priv/host_ppc_defs.c \ |
| 139 | priv/host_ppc_isel.c \ |
| 140 | priv/host_arm_defs.c \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 141 | priv/host_arm_isel.c \ |
sewardj | f0c1250 | 2014-01-12 12:54:00 +0000 | [diff] [blame] | 142 | priv/host_arm64_defs.c \ |
| 143 | priv/host_arm64_isel.c \ |
sewardj | b5b8740 | 2011-03-07 16:05:35 +0000 | [diff] [blame] | 144 | priv/host_s390_defs.c \ |
| 145 | priv/host_s390_isel.c \ |
florian | 4b2e2df | 2012-09-20 01:22:53 +0000 | [diff] [blame] | 146 | priv/s390_disasm.c \ |
sewardj | 5db1540 | 2012-06-07 09:13:21 +0000 | [diff] [blame] | 147 | priv/host_mips_defs.c \ |
| 148 | priv/host_mips_isel.c |
njn | 8b68b64 | 2009-06-24 00:37:09 +0000 | [diff] [blame] | 149 | |
| 150 | LIBVEX_CFLAGS = \ |
| 151 | -Wbad-function-cast \ |
| 152 | -Wcast-qual \ |
| 153 | -Wcast-align \ |
| 154 | -fstrict-aliasing |
| 155 | |
| 156 | libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_SOURCES = $(LIBVEX_SOURCES_COMMON) |
| 157 | libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 158 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) -Ipriv |
| 159 | libvex_@VGCONF_ARCH_PRI@_@VGCONF_OS@_a_CFLAGS = \ |
| 160 | $(AM_CFLAGS_@VGCONF_PLATFORM_PRI_CAPS@) $(LIBVEX_CFLAGS) |
| 161 | if VGCONF_HAVE_PLATFORM_SEC |
| 162 | libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_SOURCES = $(LIBVEX_SOURCES_COMMON) |
| 163 | libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CPPFLAGS = \ |
| 164 | $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) -Ipriv |
| 165 | libvex_@VGCONF_ARCH_SEC@_@VGCONF_OS@_a_CFLAGS = \ |
| 166 | $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) $(LIBVEX_CFLAGS) |
| 167 | endif |
| 168 | |