test/Makefile: cleanup
authorMarko Kreen <markokr@gmail.com>
Sat, 5 Jan 2013 23:04:25 +0000 (01:04 +0200)
committerMarko Kreen <markokr@gmail.com>
Sat, 5 Jan 2013 23:04:25 +0000 (01:04 +0200)
* regtest_compat is now EXTRA target
* regtest_system is built against libusual.a

test/Makefile

index ed9dd50c52ee34709e2eaf989c46f39493116126..5dc4ba0881c677fb36239657e3480ca1e640c60f 100644 (file)
@@ -16,22 +16,22 @@ regtest_system_SOURCES = \
        test_socket.c test_getopt.c test_ctype.c test_fnmatch.c \
        test_common.h tinytest.h tinytest_macros.h
 
-regtest_compat_SOURCES := $(regtest_system_SOURCES)
-nodist_regtest_compat_SOURCES = test_config.h
-
-regtest_compat_EMBED_LIBUSUAL = 1
-#regtest_system_EMBED_LIBUSUAL = 1
-
+# build regtest_system against actual library
 regtest_system_LDADD = ../libusual.a
-regtest_system_LDFLAGS = #-pthread
-
+regtest_system_LDFLAGS =
 regtest_system_CPPFLAGS = -I.. -I.
-regtest_compat_CPPFLAGS := $(regtest_system_CPPFLAGS) -DUSUAL_TEST_CONFIG
-regtest_compat_LDFLAGS = #-pthread
+
+# build regtest_compat as embedded project
+regtest_compat_EMBED_LIBUSUAL = 1
+regtest_compat_CPPFLAGS := -I.. -I. -DUSUAL_TEST_CONFIG
+regtest_compat_LDFLAGS =
+regtest_compat_SOURCES := $(regtest_system_SOURCES)
+nodist_regtest_compat_SOURCES = test_config.h
 
 EXTRA_DIST = Makefile tinytest_demo.c force_compat.sed test_cfparser.ini
 
-noinst_PROGRAMS = regtest_system regtest_compat
+noinst_PROGRAMS = regtest_system
+EXTRA_PROGRAMS = regtest_compat
 
 include ../build.mk