forked from dcreager/cppcsp2
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am
More file actions
73 lines (45 loc) · 2.56 KB
/
Makefile.am
File metadata and controls
73 lines (45 loc) · 2.56 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
## Process this file with automake to produce Makefile.in
AM_CXXFLAGS = -ggdb3 -Wall -O2 -D_REENTRANT -I. -Woverloaded-virtual
AM_CXXFLAGS += -Wctor-dtor-privacy -Wsign-promo -Wextra -Wfloat-equal -Wpointer-arith
AM_CXXFLAGS += -Wcast-align -Wwrite-strings -Wconversion -Wsign-compare
#-Werror -Wold-style-cast
libcppcsp2_a_SOURCES = src/cppcsp.cpp src/kernel.cpp src/process.cpp src/atomic.cpp src/alt.cpp
libcppcsp2_adir = $(includedir)/cppcsp
libcppcsp2_a_HEADERS = src/process.h src/kernel.h src/channel_ends.h src/barrier.h src/cppcsp.h src/run.h src/mutex.h src/alt.h src/time.h
libcppcsp2_a_HEADERS += src/atomic.h src/atomic_impl.h src/mobile.h src/channel.h src/channel_buffers.h src/buffered_channel.h src/channel_factory.h
libcppcsp2_a_HEADERS += src/csprocess.h src/channel_base.h src/thread_local.h src/net_channels.h src/bucket.h
nodist_libcppcsp2_a_HEADERS = cppcsp_config.h
libcppcsp2_a_commondir = $(includedir)/cppcsp/common
libcppcsp2_a_common_HEADERS = src/common/basic.h src/common/barrier_bucket.h
libcppcsp2_a_DEPENDENCIES = cppcsp_config.h
lib_LIBRARIES = libcppcsp2.a
CPPCSP = $(lib_LIBRARIES)
libcppcsp2_a_CXXFLAGS = $(AM_CXXFLAGS)
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = cppcsp2-2.0.pc
noinst_PROGRAMS = TestNorm TestPerf
test: cppcsp_config.h $(CPPCSP) TestNorm
./TestNorm
#valgrind keeps reporting huge amounts of errors because of the stack switching, so leaving it out for now:
# valgrind --tool=memcheck --max-stackframe=-104675448 --leak-check=yes ./TestNorm
#Can't run valgrind on the performance test because valgrind bombs when we eat all the threads!
testperf: cppcsp_config.h $(CPPCSP) TestPerf
./TestPerf
Shared_Test_Sources = test/test.h test/test.cpp test/time_test.cpp test/barrier_test.cpp test/run_test.cpp test/channel_test.cpp test/mutex_test.cpp test/alt_test.cpp test/buffered_channel_test.cpp test/alt_channel_test.cpp test/net_channel_test.cpp
TestNorm_DEPENDENCIES = cppcsp_config.h $(CPPCSP)
TestNorm_SOURCES = test/test_normal.cpp $(Shared_Test_Sources)
TestNorm_LDADD = -L. -lcppcsp2
TestNorm_LDFLAGS = $(CPPCSP_LINK_LIBS)
TestPerf_DEPENDENCIES = cppcsp_config.h $(CPPCSP)
TestPerf_SOURCES = test/test_perf.cpp $(Shared_Test_Sources)
TestPerf_LDADD = -L. -lcppcsp2
TestPerf_LDFLAGS = $(CPPCSP_LINK_LIBS)
check_PROGRAMS = TestNorm
TESTS = $(check_PROGRAMS)
SUBDIRS =
EXTRA_DIST = cppcsp.dox cppcsp_internal.dox
docs: cppcsp.dox $(nobase_include_HEADERS)
doxygen cppcsp.dox
docs-dist: docs
tar -zcvf $(distdir)-docs.tar.gz docs/html/*
zip -j $(distdir)-docs.zip docs/html/*