diff options
author | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-02-19 09:52:05 +0000 |
---|---|---|
committer | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2009-02-19 09:52:05 +0000 |
commit | 53044577de81d6d2d76d51bc5952c7c8cfedd368 (patch) | |
tree | a6ec5847e0f9d4a643be9bfe14d1c3ee32d1e4d1 /none | |
parent | 466ed6e1efeab3b32a30a9002622fb03c0686688 (diff) | |
download | valgrind-53044577de81d6d2d76d51bc5952c7c8cfedd368.tar.gz |
Various build system clean-ups and simplifications:
- Created Makefile.tool-tests.am, put standard AM_CFLAGS et al for tests in
it.
- A number of tests are shared between Helgrind and DRD. They used to be
built in both directories. Now they are only built in helgrind/tests/,
and the DRD .vgtest files just point to the executable in helgrind/tests/.
Most of these (about 30) had the source files in helgrind/tests/; I moved
the three that were in drd/tests/ into helgrind/tests/ for consistency.
- Fixed rwlock_test, which was failing to run due to a wrong name in the
.vgtest file.
- Removed remnants of unused 'hello' test for Memcheck.
- Avoided redundant flag specification in various places, esp.
memcheck/tests/Makefile.am.
- Removed unnecessary _AIX guards in some Linux-only tests.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@9202 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'none')
-rw-r--r-- | none/tests/Makefile.am | 13 | ||||
-rw-r--r-- | none/tests/amd64/Makefile.am | 8 | ||||
-rw-r--r-- | none/tests/linux/Makefile.am | 6 | ||||
-rw-r--r-- | none/tests/ppc32/Makefile.am | 8 | ||||
-rw-r--r-- | none/tests/ppc64/Makefile.am | 8 | ||||
-rw-r--r-- | none/tests/x86/Makefile.am | 10 |
6 files changed, 28 insertions, 25 deletions
diff --git a/none/tests/Makefile.am b/none/tests/Makefile.am index 41d21d901..8957b3339 100644 --- a/none/tests/Makefile.am +++ b/none/tests/Makefile.am @@ -1,6 +1,5 @@ -# For AM_FLAG_M3264_PRI -include $(top_srcdir)/Makefile.flags.am +include $(top_srcdir)/Makefile.tool-tests.am SUBDIRS = . @@ -150,18 +149,14 @@ check_PROGRAMS = \ tls tls.so tls2.so vgprintf \ coolo_sigaction gxx304 -AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI) -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include -AM_CXXFLAGS = $(AM_CFLAGS) - # Extra stuff for C tests -ansi_CFLAGS = $(AM_FLAG_M3264_PRI) -ansi +ansi_CFLAGS = $(AM_CFLAGS) -ansi floored_LDADD = -lm manythreads_LDADD = -lpthread mq_LDADD = -lrt pth_atfork1_LDADD = -lpthread pth_blockedsig_LDADD = -lpthread -pth_cancel1_CFLAGS = $(AM_FLAG_M3264_PRI) -Wno-shadow +pth_cancel1_CFLAGS = $(AM_CFLAGS) -Wno-shadow pth_cancel1_LDADD = -lpthread pth_cancel2_LDADD = -lpthread pth_cvsimple_LDADD = -lpthread @@ -199,7 +194,7 @@ else tls_so_LDFLAGS = -Wl,-rpath,$(top_builddir)/none/tests -shared -fPIC tls_so_LDADD = tls2.so endif -tls_so_CFLAGS = $(AM_FLAG_M3264_PRI) -fPIC +tls_so_CFLAGS = $(AM_CFLAGS) -fPIC tls2_so_SOURCES = tls2_so.c tls2_so_LDFLAGS = -shared diff --git a/none/tests/amd64/Makefile.am b/none/tests/amd64/Makefile.am index ce72028d5..b1a5b68fe 100644 --- a/none/tests/amd64/Makefile.am +++ b/none/tests/amd64/Makefile.am @@ -1,4 +1,6 @@ +include $(top_srcdir)/Makefile.tool-tests.am + noinst_SCRIPTS = filter_cpuid filter_stderr filter_int gen_insn_test.pl CLEANFILES = $(addsuffix .c,$(INSN_TESTS)) @@ -61,9 +63,9 @@ if BUILD_SSSE3_TESTS check_PROGRAMS += ssse3_misaligned endif -AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include - @FLAG_M64@ -AM_CXXFLAGS = $(AM_CFLAGS) +AM_CFLAGS += @FLAG_M64@ +AM_CXXFLAGS += @FLAG_M64@ +AM_CCASFLAGS = @FLAG_M64@ # generic C ones bug132918_LDADD = -lm diff --git a/none/tests/linux/Makefile.am b/none/tests/linux/Makefile.am index 2760a8a4f..eeefe526b 100644 --- a/none/tests/linux/Makefile.am +++ b/none/tests/linux/Makefile.am @@ -1,3 +1,6 @@ + +include $(top_srcdir)/Makefile.tool-tests.am + noinst_SCRIPTS = filter_stderr EXTRA_DIST = $(noinst_SCRIPTS) \ @@ -9,6 +12,3 @@ check_PROGRAMS = \ mremap \ mremap2 -AM_CPPFLAGS = -I$(top_srcdir) -I$(top_srcdir)/include -I$(top_builddir)/include -AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g $(AM_FLAG_M3264_PRI) -AM_CXXFLAGS = $(AM_CFLAGS) diff --git a/none/tests/ppc32/Makefile.am b/none/tests/ppc32/Makefile.am index f168bb7cf..fe0a31303 100644 --- a/none/tests/ppc32/Makefile.am +++ b/none/tests/ppc32/Makefile.am @@ -1,4 +1,6 @@ +include $(top_srcdir)/Makefile.tool-tests.am + noinst_SCRIPTS = filter_stderr EXTRA_DIST = $(noinst_SCRIPTS) \ @@ -27,9 +29,9 @@ check_PROGRAMS = \ ldstrev lsw jm-insns mftocrf mcrfs round test_fx test_gx \ testVMX twi tw xlc_dbl_u32 -AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include \ - @FLAG_M32@ -AM_CXXFLAGS = $(AM_CFLAGS) @FLAG_M32@ +AM_CFLAGS += @FLAG_M32@ +AM_CXXFLAGS += @FLAG_M32@ +AM_CCASFLAGS = @FLAG_M32@ jm_insns_CFLAGS = -Winline -Wall -O -g -mregnames -maltivec @FLAG_M32@ testVMX_CFLAGS = -O -g -Wall -maltivec -mabi=altivec -DALTIVEC \ diff --git a/none/tests/ppc64/Makefile.am b/none/tests/ppc64/Makefile.am index c12475e0f..1f49e4148 100644 --- a/none/tests/ppc64/Makefile.am +++ b/none/tests/ppc64/Makefile.am @@ -1,4 +1,6 @@ +include $(top_srcdir)/Makefile.tool-tests.am + noinst_SCRIPTS = filter_stderr EXTRA_DIST = $(noinst_SCRIPTS) \ @@ -14,8 +16,8 @@ EXTRA_DIST = $(noinst_SCRIPTS) \ check_PROGRAMS = \ jm-insns lsw round std_reg_imm twi_tdi tw_td -AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow -g -I$(top_srcdir)/include \ - @FLAG_M64@ -AM_CXXFLAGS = $(AM_CFLAGS) @FLAG_M64@ +AM_CFLAGS += @FLAG_M64@ +AM_CXXFLAGS += @FLAG_M64@ +AM_CCASFLAGS = @FLAG_M64@ jm_insns_CFLAGS = -Winline -Wall -O -g -mregnames -maltivec @FLAG_M64@ diff --git a/none/tests/x86/Makefile.am b/none/tests/x86/Makefile.am index b57813730..f018e68f5 100644 --- a/none/tests/x86/Makefile.am +++ b/none/tests/x86/Makefile.am @@ -1,3 +1,6 @@ + +include $(top_srcdir)/Makefile.tool-tests.am + noinst_SCRIPTS = filter_cpuid filter_stderr gen_insn_test.pl CLEANFILES = $(addsuffix .c,$(INSN_TESTS)) @@ -73,12 +76,11 @@ if BUILD_SSSE3_TESTS check_PROGRAMS += ssse3_misaligned endif -AM_CFLAGS = $(WERROR) -Winline -Wall -Wshadow \ - @FLAG_M32@ -g -I$(top_srcdir)/include \ - $(FLAG_MMMX) $(FLAG_MSSE) -AM_CXXFLAGS = $(AM_CFLAGS) +AM_CFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) +AM_CXXFLAGS += @FLAG_M32@ $(FLAG_MMMX) $(FLAG_MSSE) AM_CCASFLAGS = @FLAG_M32@ + # generic C ones cpuid_SOURCES = cpuid_c.c cpuid_s.s # fpu_lazy_eflags must use these flags -- the bug only occurred with them |