From: Ivan Maidanski Date: Wed, 1 Mar 2017 22:50:24 +0000 (+0300) Subject: Fix missing .exe for test filenames in Makefile (MinGW) X-Git-Tag: v7.4.6~28 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ebb3a3bc0db3cb1eee201907b7e16013ccc2e1d1;p=libatomic_ops Fix missing .exe for test filenames in Makefile (MinGW) (Cherry-pick commit 3aacd48 from 'master' branch.) * tests/Makefile.am (TESTS): Add $(EXEEXT) suffix to each item (test). * tests/Makefile.am (TEST_OBJS): Reorder items (to match the that of TESTS). * tests/Makefile.am (check_PROGRAMS): Specify all items explicitly (so that to have all items without the suffix as before this change). --- diff --git a/tests/Makefile.am b/tests/Makefile.am index 2ac9d8d..156e1de 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -12,17 +12,17 @@ AM_CPPFLAGS = \ CFLAGS += $(CFLAGS_EXTRA) +TESTS = test_atomic$(EXEEXT) test_stack$(EXEEXT) test_malloc$(EXEEXT) +check_PROGRAMS = test_atomic test_stack test_malloc + if HAVE_PTHREAD_H -TESTS=test_atomic test_atomic_pthreads test_stack test_malloc +TESTS += test_atomic_pthreads$(EXEEXT) +check_PROGRAMS += test_atomic_pthreads test_atomic_pthreads_SOURCES=$(test_atomic_SOURCES) test_atomic_pthreads_CPPFLAGS=-DAO_USE_PTHREAD_DEFS $(AM_CPPFLAGS) test_atomic_pthreads_LDADD=$(test_atomic_LDADD) -else -TESTS=test_atomic test_stack test_malloc endif -check_PROGRAMS=$(TESTS) - test_atomic_SOURCES=test_atomic.c test_atomic_LDADD = $(THREADDLLIBS) $(top_builddir)/src/libatomic_ops.la