Browse Source

trying to make Makefile.am compatible with travis-ci's toolchain

Stasik0 11 years ago
parent
commit
0895dc81d8
1 changed files with 11 additions and 6 deletions
  1. 11 6
      tests/Makefile.am

+ 11 - 6
tests/Makefile.am

@@ -1,14 +1,19 @@
 INCLUDE = @CHECK_CFLAGS@ -I$(top_builddir)/src -I$(top_builddir)/include
-LIBS = $(top_builddir)/lib/libopen62541.a @CHECK_LIBS@
+LDADD = $(top_builddir)/lib/libopen62541.a @CHECK_LIBS@
+TESTS =
+# --- no changes above this line needed ---
 
-#STEP 1: add new tests to this line
-TESTS = check_stack check_list
-
-#STEP 2: add new tests to the following list
+#add new tests using the following templates
+TESTS += check_stack
 check_stack_SOURCES = check_stack.c
+check_stack_LDADD = $(LDADD)
+
+TESTS += check_list
 check_list_SOURCES = check_list.c
+check_list_LDADD = $(LDADD)
 
-AM_LDADD = $(LIBS)
+# --- no changes beyond this line needed ---
+check_PROGRAMS = $(TESTS)
 
 #optimization levels depending on debug
 if DEBUG