]> granicus.if.org Git - libatomic_ops/commitdiff
Fix missing .exe for test filenames in Makefile (MinGW)
authorIvan Maidanski <ivmai@mail.ru>
Wed, 1 Mar 2017 22:50:24 +0000 (01:50 +0300)
committerIvan Maidanski <ivmai@mail.ru>
Fri, 31 Mar 2017 07:51:47 +0000 (10:51 +0300)
(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).

tests/Makefile.am

index 2ac9d8dd3483b8e7e7b4d4fc2c33903dbaede818..156e1de77ce85c22e3695c602bfcce1e95cb920a 100644 (file)
@@ -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