Skip to content

Commit 59aed0d

Browse files
committed
Fix build of test-cpp.cpp to use the proper automake method.
1 parent cb5131a commit 59aed0d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

test/Makefile.am

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11

2+
AM_CFLAGS = $(TEST_CFLAGS) -I../src
3+
AM_CXXFLAGS = $(AM_CFLAGS)
4+
LDADD = $(top_builddir)/src/libcalgtest.a libtestframework.a
5+
26
if USE_VALGRIND
37
TESTS_ENVIRONMENT=./valgrind-wrapper
48
endif
@@ -27,11 +31,7 @@ libtestframework_a_SOURCES=\
2731
alloc-testing.c alloc-testing.h \
2832
framework.c framework.h
2933

30-
AM_CFLAGS = $(TEST_CFLAGS) -I../src
31-
LDADD = $(top_builddir)/src/libcalgtest.a libtestframework.a
34+
test_cpp_SOURCES = test-cpp.cpp
3235

3336
EXTRA_DIST=valgrind-wrapper
3437

35-
test-cpp: test-cpp.cpp
36-
$(CXX) $(AM_CFLAGS) $^ -o $@ $(LDADD)
37-

0 commit comments

Comments
 (0)