mirror of
https://github.com/jezhiggins/arabica
synced 2024-12-28 22:23:21 +01:00
64 lines
2.2 KiB
Makefile
Executable file
64 lines
2.2 KiB
Makefile
Executable file
|
|
noinst_PROGRAMS = utils_test utils_test_silly
|
|
TESTS = utils_test utils_test_silly
|
|
if HAS_STD_WSTRING
|
|
noinst_PROGRAMS += utils_test_wide
|
|
TESTS += utils_test_wide
|
|
endif
|
|
|
|
AM_CPPFLAGS = -I$(top_srcdir)/include @PARSER_HEADERS@ $(BOOST_CPPFLAGS)
|
|
LIBARABICA = $(top_builddir)/src/libarabica.la
|
|
|
|
cppunit_sources = ../CppUnit/framework/CppUnitException.h \
|
|
../CppUnit/framework/estring.h \
|
|
../CppUnit/framework/Guards.h \
|
|
../CppUnit/framework/Test.h \
|
|
../CppUnit/framework/TestCaller.h \
|
|
../CppUnit/framework/TestCase.cpp \
|
|
../CppUnit/framework/TestCase.h \
|
|
../CppUnit/framework/TestFailure.cpp \
|
|
../CppUnit/framework/TestFailure.h \
|
|
../CppUnit/framework/TestResult.cpp \
|
|
../CppUnit/framework/TestResult.h \
|
|
../CppUnit/framework/TestSuite.cpp \
|
|
../CppUnit/framework/TestSuite.h \
|
|
../CppUnit/TestRunner.cpp \
|
|
../CppUnit/TestRunner.hpp \
|
|
../CppUnit/textui/TextTestResult.cpp \
|
|
../CppUnit/textui/TextTestResult.h
|
|
|
|
silly_string_sources = ../silly_string/silly_string.cpp \
|
|
../silly_string/silly_string.hpp
|
|
|
|
|
|
test_sources = util_test_suite.hpp \
|
|
test_normalize_whitespace.hpp \
|
|
test_base64.hpp \
|
|
test_uri.hpp
|
|
|
|
|
|
utils_test_SOURCES = utils_test.cpp \
|
|
$(cppunit_sources) \
|
|
$(test_sources)
|
|
utils_test_LDADD = $(LIBARABICA)
|
|
utils_test_DEPENDENCIES = $(LIBARABICA)
|
|
|
|
utils_test_silly_SOURCES = utils_test.cpp \
|
|
$(cppunit_sources) \
|
|
$(test_sources) \
|
|
$(silly_string_sources)
|
|
utils_test_silly_LDADD = $(LIBARABICA)
|
|
utils_test_silly_DEPENDENCIES = $(LIBARABICA)
|
|
|
|
utils_test_wide_SOURCES = utils_test.cpp \
|
|
$(cppunit_sources) \
|
|
$(test_sources)
|
|
utils_test_wide_LDADD = $(LIBARABICA)
|
|
utils_test_wide_DEPENDENCIES = $(LIBARABICA)
|
|
|
|
test: $(noinst_PROGRAMS)
|
|
@for p in $(noinst_PROGRAMS); do \
|
|
echo Running $$p; \
|
|
./$$p -q; \
|
|
done
|
|
|