forked from bdrewery/bdlib
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
52 lines (46 loc) · 1.45 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
noinst_LIBRARIES= libbdlib.a
AM_CPPFLAGS= @TCL_INCLUDE_SPEC@
AM_CXXFLAGS= -Wall @AM_CXXFLAGS@ @DEBUG_CXXFLAGS@
libbdlib_a_SOURCES= \
src/Cstrings.cpp \
src/base64.cpp \
src/AtomicFile.cpp \
src/ReferenceCountedArray.cpp \
src/ScriptInterpTCL.cpp \
src/Stream.cpp \
src/String.cpp
libbdlib_a_CXXFLAGS= $(AM_CXXFLAGS)
TESTS= UnitRunner
check_PROGRAMS= UnitRunner
UnitRunner_SOURCES= src/tests/UnitRunner.cpp \
src/tests/ArrayTest.cpp \
src/tests/AtomicFileTest.cpp \
src/tests/HashTableTest.cpp \
src/tests/ScriptInterpTCLTest.cpp \
src/tests/StringTest.cpp \
src/tests/StreamTest.cpp
UnitRunner_CXXFLAGS= $(AM_CXXFLAGS) -Wno-effc++ -Wno-overloaded-virtual \
-Wno-unused-value \
@CPPUNIT_CFLAGS@ @CPPUNIT_CXXFLAGS@
#UnitRunner_LDADD= libbdlib.a
UnitRunner_LDADD= $(libbdlib_a_OBJECTS) @CPPUNIT_LIBS@ @TCL_LIB_SPEC@
clean-local:
-find $(top_builddir) \( -name "*.gcda" -o -name "*.gcno" -o \
-name "*.gcov" \) -delete
.PHONY: fix-gcov-names
fix-gcov-names:
@find $(top_builddir) -name '*.gcda' -o -name '*.gcno' | \
while read file; do \
dir=$${file%/*}; \
fname=$${file##*/}; \
fname=$${fname##*-}; \
mv -v "$${file}" "$${dir}/$${fname%.*}.$${fname##*.}"; \
done
.PHONY: test
test: check
# Move all-am dependency to check so that source and unit test objects
# can be built in parallel
#check-am:
# $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS)
# $(MAKE) $(AM_MAKEFLAGS) check-TESTS
#check: all-am check-am