blob: 2cdcc0e9b4dc0bd98c16ecf804b61dbb677c7cb5 [file] [log] [blame]
njn25e49d8e72002-09-23 09:36:25 +00001
mueller531d34d2004-01-03 12:47:32 +00002AUTOMAKE_OPTIONS = foreign 1.6 dist-bzip2
sewardj31f6cb52003-03-01 01:26:55 +00003
njn3e986b22004-11-30 10:43:45 +00004include $(top_srcdir)/Makefile.all.am
nethercote4388a402004-09-01 23:20:49 +00005
njn3e884182003-04-15 13:03:23 +00006## addrcheck must come after memcheck, for mac_*.o
njn86f12dc2005-03-14 01:16:05 +00007TOOLS = memcheck \
njn6a3009b2005-03-20 00:20:06 +00008 cachegrind \
njn6a3009b2005-03-20 00:20:06 +00009 massif \
10 lackey \
11 none
sewardjb5f6f512005-03-10 23:59:00 +000012
sewardjd0469f72005-04-20 14:30:19 +000013## addrcheck \
njnaa02e2b2005-09-13 00:58:19 +000014## helgrind \
sewardjd0469f72005-04-20 14:30:19 +000015
njnaa02e2b2005-09-13 00:58:19 +000016# Temporary: we want to compile Helgrind and Addrcheck and include them in
17# the distro, but not regtest them. So they are in $TOOLS but not in
18# $SUBDIRS.
19#
njn3f7e9112005-06-19 05:43:21 +000020# Put docs last because building the HTML is slow and we want to get
21# everything else working before we try it.
njnaa02e2b2005-09-13 00:58:19 +000022SUBDIRS = include coregrind . tests auxprogs $(TOOLS) helgrind addrcheck docs
sewardjde4a1d02002-03-22 01:27:54 +000023
njna63e2d72003-06-12 14:13:05 +000024SUPP_FILES = \
njnb8824022005-07-03 17:10:04 +000025 glibc-2.2.supp glibc-2.3.supp glibc-2.4.supp \
njna63e2d72003-06-12 14:13:05 +000026 xfree-3.supp xfree-4.supp
gobry3b777892002-04-04 09:18:39 +000027
nethercote537e8942004-08-25 11:40:07 +000028dist_val_DATA = $(SUPP_FILES) default.supp
gobry3b777892002-04-04 09:18:39 +000029
muellerbddd6072003-11-19 21:50:07 +000030pkgconfigdir = $(libdir)/pkgconfig
31pkgconfig_DATA = valgrind.pc
32
njn541e50e2005-07-26 23:06:18 +000033incincdir = $(includedir)/valgrind
tom97245202005-07-27 09:25:08 +000034nodist_incinc_HEADERS = $(VEX_PUBLIC_HDRS)
njn541e50e2005-07-26 23:06:18 +000035
muellerbddd6072003-11-19 21:50:07 +000036BUILT_SOURCES = default.supp valgrind.pc
gobry3b777892002-04-04 09:18:39 +000037
njnda762d42003-09-29 20:50:49 +000038DISTCLEANFILES = default.supp
daywalkerf5ef1852003-02-25 01:48:15 +000039
gobry3b777892002-04-04 09:18:39 +000040default.supp: $(SUPP_FILES)
sewardjde4a1d02002-03-22 01:27:54 +000041
njn71fe3e62003-04-23 21:48:20 +000042## Preprend @PERL@ because tests/vg_regtest isn't executable
daywalkerc60b3a12003-04-23 16:39:31 +000043regtest: check
sewardjb5f6f512005-03-10 23:59:00 +000044 @PERL@ tests/vg_regtest $(TOOLS)
njn55b98e92003-04-08 10:29:13 +000045
nethercote537e8942004-08-25 11:40:07 +000046EXTRA_DIST = \
njn4e59bd92003-04-22 20:58:47 +000047 FAQ.txt \
fitzhardingecf826ad2004-01-07 08:47:44 +000048 ACKNOWLEDGEMENTS \
nethercote16b59ee2004-10-09 15:59:05 +000049 README_DEVELOPERS \
nethercote5da1e172003-12-03 21:44:45 +000050 README_PACKAGERS \
njnf7c00b12005-07-19 21:46:19 +000051 README_MISSING_SYSCALL_OR_IOCTL \
njn22ae5c02005-07-24 23:21:28 +000052 valgrind.spec.in valgrind.pc.in \
njn73dc2c72005-08-28 04:48:12 +000053 Makefile.all.am Makefile.tool.am Makefile.core.am \
sewardj85a9dca2005-07-26 10:42:57 +000054 Makefile.tool-inplace.am \
tomab568f62005-07-27 07:36:22 +000055 $(VEX_PRIMARY_SOURCES)
sewardjfed4dd02002-04-14 14:32:54 +000056
gobryb0a955e2002-04-14 15:31:19 +000057install-exec-hook:
daywalker47160d62002-04-15 00:54:13 +000058 $(mkinstalldirs) $(DESTDIR)$(valdir)
njn25e49d8e72002-09-23 09:36:25 +000059
fitzhardinge98abfc72003-12-16 02:05:15 +000060all-local:
nethercoteb7dceef2004-08-25 11:50:46 +000061 mkdir -p $(inplacedir)
62 rm -f $(addprefix $(inplacedir)/,default.supp $(SUPP_FILES))
63 ln -s ../default.supp $(inplacedir)
64 ln -s $(addprefix ../$(top_srcdir)/,$(SUPP_FILES)) $(inplacedir)
fitzhardinge98abfc72003-12-16 02:05:15 +000065
thughes734160c2004-06-28 21:52:40 +000066distclean-local:
nethercoteb7dceef2004-08-25 11:50:46 +000067 rm -rf $(inplacedir)
sewardj85a9dca2005-07-26 10:42:57 +000068
tomab568f62005-07-27 07:36:22 +000069# These list the bits of vex we need to install
sewardj85a9dca2005-07-26 10:42:57 +000070
njn541e50e2005-07-26 23:06:18 +000071VEX_PUBLIC_HDRS = \
tomab568f62005-07-27 07:36:22 +000072 @VEX_DIR@/pub/libvex_guest_amd64.h \
73 @VEX_DIR@/pub/libvex_ir.h \
74 @VEX_DIR@/pub/libvex_guest_ppc32.h \
75 @VEX_DIR@/pub/libvex_basictypes.h \
76 @VEX_DIR@/pub/libvex_guest_offsets.h \
77 @VEX_DIR@/pub/libvex_emwarn.h \
78 @VEX_DIR@/pub/libvex.h \
79 @VEX_DIR@/pub/libvex_trc_values.h \
80 @VEX_DIR@/pub/libvex_guest_arm.h \
81 @VEX_DIR@/pub/libvex_guest_x86.h
82
83# These list the bits of vex we need to copy into the tarball
84
85VEX_PRIMARY_SOURCES = \
sewardjb1916722005-08-03 16:39:44 +000086 VEX/HACKING.README \
87 VEX/LICENSE.README \
88 VEX/LICENSE.GPL \
tomab568f62005-07-27 07:36:22 +000089 VEX/Makefile \
90 VEX/auxprogs/genoffsets.c \
sewardj85a9dca2005-07-26 10:42:57 +000091 VEX/pub/libvex_guest_amd64.h \
92 VEX/pub/libvex_ir.h \
93 VEX/pub/libvex_guest_ppc32.h \
94 VEX/pub/libvex_basictypes.h \
95 VEX/pub/libvex_guest_offsets.h \
96 VEX/pub/libvex_emwarn.h \
97 VEX/pub/libvex.h \
98 VEX/pub/libvex_trc_values.h \
99 VEX/pub/libvex_guest_arm.h \
tomab568f62005-07-27 07:36:22 +0000100 VEX/pub/libvex_guest_x86.h \
sewardj85a9dca2005-07-26 10:42:57 +0000101 VEX/priv/ir/irmatch.c \
102 VEX/priv/ir/irmatch.h \
103 VEX/priv/ir/irdefs.c \
104 VEX/priv/ir/iropt.c \
105 VEX/priv/ir/iropt.h \
106 VEX/priv/host-ppc32/isel.c \
107 VEX/priv/host-ppc32/hdefs.c \
108 VEX/priv/host-ppc32/hdefs.h \
109 VEX/priv/main/vex_svnversion.h \
110 VEX/priv/main/vex_globals.c \
111 VEX/priv/main/vex_globals.h \
112 VEX/priv/main/vex_main.c \
113 VEX/priv/main/vex_util.c \
114 VEX/priv/main/vex_util.h \
115 VEX/priv/guest-arm/ghelpers.c \
116 VEX/priv/guest-arm/gdefs.h \
117 VEX/priv/guest-arm/toIR.c \
118 VEX/priv/guest-x86/ghelpers.c \
119 VEX/priv/guest-x86/gdefs.h \
120 VEX/priv/guest-x86/toIR.c \
121 VEX/priv/guest-generic/g_generic_x87.c \
122 VEX/priv/guest-generic/g_generic_x87.h \
123 VEX/priv/guest-generic/bb_to_IR.c \
124 VEX/priv/guest-generic/bb_to_IR.h \
125 VEX/priv/host-arm/isel.c \
126 VEX/priv/host-arm/hdefs.c \
127 VEX/priv/host-arm/hdefs.h \
128 VEX/priv/host-x86/isel.c \
129 VEX/priv/host-x86/hdefs.c \
130 VEX/priv/host-x86/hdefs.h \
131 VEX/priv/guest-amd64/ghelpers.c \
132 VEX/priv/guest-amd64/gdefs.h \
133 VEX/priv/guest-amd64/toIR.c \
134 VEX/priv/guest-ppc32/ghelpers.c \
135 VEX/priv/guest-ppc32/gdefs.h \
136 VEX/priv/guest-ppc32/toIR.c \
137 VEX/priv/host-generic/reg_alloc2.c \
138 VEX/priv/host-generic/h_generic_regs.c \
139 VEX/priv/host-generic/h_generic_regs.h \
140 VEX/priv/host-generic/h_generic_simd64.c \
141 VEX/priv/host-generic/h_generic_simd64.h \
142 VEX/priv/host-amd64/isel.c \
143 VEX/priv/host-amd64/hdefs.c \
144 VEX/priv/host-amd64/hdefs.h