@@ -1,10 +1,6 @@
AUTOMAKE_OPTIONS = foreign
include $(top_srcdir)/test/Makefile.inc
-#libcunit_common_as_main.a is meant to be removed when all tests define
-#their own main
-noinst_LIBRARIES = libcunit_common.a libcunit_common_as_main.a
-libcunit_common_a_CFLAGS = $(AM_CFLAGS) -DMODULE_HAS_OWN_MAIN
+noinst_LIBRARIES = libcunit_common.a
+libcunit_common_a_CFLAGS = $(AM_CFLAGS)
libcunit_common_a_SOURCES = odp_cunit_common.c
-libcunit_common_as_main_a_CFLAGS = $(AM_CFLAGS)
-libcunit_common_as_main_a_SOURCES = odp_cunit_common.c
@@ -121,11 +121,3 @@ int odp_cunit_run(CU_SuiteInfo testsuites[])
return (ret) ? -1 : 0;
}
-
-/* this is left for old style main declartion. will be removed soon */
-#ifndef MODULE_HAS_OWN_MAIN
-int main(void)
-{
- return odp_cunit_run(odp_testsuites);
-}
-#endif
Now that all modules defines their own main(), the dual library builds for cunit_common (one with main(), the other without) is no longer needed. It is therefore removed. Signed-off-by: Christophe Milard <christophe.milard@linaro.org> --- test/validation/common/Makefile.am | 8 ++------ test/validation/common/odp_cunit_common.c | 8 -------- 2 files changed, 2 insertions(+), 14 deletions(-)