Simplify the test binary cxx/ld flag specification

Rather than set the flags for each binary we can use global flags for
this file and cut down on redundancy.
This commit is contained in:
Danny Robson 2013-07-30 14:25:38 +10:00
parent 0c223d106d
commit d74b8ad40f
3 changed files with 5 additions and 60 deletions

2
test/.gitignore vendored
View File

@ -11,7 +11,7 @@
/maths*
/matrix*
/md[245]*
/option
/options
/pool*
/range*
/region*

View File

@ -20,7 +20,7 @@ TEST_BIN = \
md2 \
md4 \
md5 \
option \
options \
pool \
range \
region \
@ -28,64 +28,9 @@ TEST_BIN = \
sha1 \
version
AM_DEFAULT_SOURCE_EXT = .cpp
LDADD = $(builddir)/../libutil.la
TESTS = $(TEST_BIN) json.pl
check_PROGRAMS = $(TEST_BIN)
EXTRA_DIST = json.pl
backtrace_CPPFLAGS = $(COMMON_CXXFLAGS)
backtrace_LDADD = $(builddir)/../libutil.la
backtrace_SOURCES = backtrace.cpp
bitwise_LDADD = $(builddir)/../libutil.la
bitwise_SOURCES = bitwise.cpp
checksum_LDADD = $(builddir)/../libutil.la
checksum_SOURCES = checksum.cpp
float_LDADD = $(builddir)/../libutil.la
float_SOURCES = float.cpp
hton_LDADD = $(builddir)/../libutil.la
hton_SOURCES = hton.cpp
ip_LDADD = $(builddir)/../libutil.la
ip_SOURCES = ip.cpp
json_LDADD = $(builddir)/../libutil.la
json_SOURCES = json.cpp
maths_LDADD = $(builddir)/../libutil.la
maths_SOURCES = maths.cpp
matrix_LDADD = $(builddir)/../libutil.la
matrix_SOURCES = matrix.cpp
md2_LDADD = $(builddir)/../libutil.la
md2_SOURCES = md2.cpp
md4_LDADD = $(builddir)/../libutil.la
md4_SOURCES = md4.cpp
md5_LDADD = $(builddir)/../libutil.la
md5_SOURCES = md5.cpp
option_LDADD = $(builddir)/../libutil.la
option_SOURCES = options/success.cpp
pool_LDADD = $(builddir)/../libutil.la
pool_SOURCES = pool.cpp
range_LDADD = $(builddir)/../libutil.la
range_SOURCES = range.cpp
region_LDADD = $(builddir)/../libutil.la
region_SOURCES = region.cpp
signal_LDADD = $(builddir)/../libutil.la
signal_SOURCES = signal.cpp
sha1_LDADD = $(builddir)/../libutil.la
sha1_SOURCES = sha1.cpp
version_LDADD = $(builddir)/../libutil.la
version_SOURCES = version.cpp