Add missing zstd.h to coregrind Makefile.am noinst_HEADERS
[valgrind.git] / memcheck / tests / vbit-test / Makefile.am
blobd3bc4c51ffcb1f9f6483dddc9380eeff84d8fafd
1 include $(top_srcdir)/Makefile.all.am
3 EXTRA_DIST = vbit-test.vgtest vbit-test.stderr.exp \
4              vbit-test-sec.vgtest vbit-test-sec.stderr.exp
6 dist_noinst_SCRIPTS = filter_stderr
8 #----------------------------------------------------------------------------
9 # Headers
10 #----------------------------------------------------------------------------
12 pkginclude_HEADERS = 
13 noinst_HEADERS = vtest.h vbits.h
15 #----------------------------------------------------------------------------
16 # vbit_test
17 #----------------------------------------------------------------------------
19 noinst_PROGRAMS = vbit-test
21 if VGCONF_HAVE_PLATFORM_SEC
22 noinst_PROGRAMS += vbit-test-sec
23 endif
25 if VGCONF_OS_IS_DARWIN
26 noinst_DSYMS = $(noinst_PROGRAMS)
27 endif
29 SOURCES = \
30         main.c \
31         unary.c \
32         binary.c \
33         ternary.c \
34         qernary.c \
35         util.c \
36         vbits.c \
37         irops.c \
38         valgrind.c
40 # The link flags for this are tricky, because we want to build it for
41 # both the primary and secondary platforms, and add
42 # "-Wl,-read_only_relocs -Wl,suppress" to whichever of those is x86-darwin,
43 # if any.  Hence there's a double-nested conditional that adds to the
44 # LDFLAGS in both cases.
46 vbit_test_SOURCES      = $(SOURCES)
47 vbit_test_CPPFLAGS     = $(AM_CPPFLAGS_PRI) \
48                          -I$(top_srcdir)/include  \
49                          -I$(top_srcdir)/memcheck \
50                          -I$(top_srcdir)/VEX/pub
51 vbit_test_CFLAGS       = $(AM_CFLAGS_PRI)
52 vbit_test_DEPENDENCIES = 
53 vbit_test_LDADD        = $(top_builddir)/VEX/libvex-@VGCONF_ARCH_PRI@-@VGCONF_OS@.a
54 vbit_test_LDFLAGS      = $(AM_CFLAGS_PRI) @LIB_UBSAN@
55 # If there is no secondary platform, and the platforms include x86-darwin,
56 # then the primary platform must be x86-darwin.  Hence:
57 if ! VGCONF_HAVE_PLATFORM_SEC
58 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
59 vbit_test_LDFLAGS      += -Wl,-read_only_relocs -Wl,suppress
60 endif
61 endif
63 if VGCONF_HAVE_PLATFORM_SEC
64 vbit_test_sec_SOURCES      = $(SOURCES)
65 vbit_test_sec_CPPFLAGS     = $(AM_CPPFLAGS_SEC) \
66                              $(AM_CPPFLAGS_@VGCONF_PLATFORM_SEC_CAPS@) \
67                              -I$(top_srcdir)/include  \
68                              -I$(top_srcdir)/memcheck \
69                              -I$(top_srcdir)/VEX/pub
70 vbit_test_sec_CFLAGS       = $(AM_CFLAGS_SEC) \
71                              $(AM_CFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
72 vbit_test_sec_DEPENDENCIES = 
73 vbit_test_sec_LDADD        = $(top_builddir)/VEX/libvex-@VGCONF_ARCH_SEC@-@VGCONF_OS@.a \
74                               $(TOOL_LDADD_@VGCONF_PLATFORM_SEC_CAPS@)
75 vbit_test_sec_LDFLAGS      = $(AM_CFLAGS_SEC) @LIB_UBSAN@ \
76                              $(TOOL_LDFLAGS_@VGCONF_PLATFORM_SEC_CAPS@)
77 endif
78 # If there is a secondary platform, and the platforms include x86-darwin,
79 # then the primary platform must be amd64-darwin and the secondary platform
80 # must be x86-darwin.  Hence:
81 if VGCONF_HAVE_PLATFORM_SEC
82 if VGCONF_PLATFORMS_INCLUDE_X86_DARWIN
83 vbit_test_sec_LDFLAGS      += -Wl,-read_only_relocs -Wl,suppress
84 endif
85 endif