blob: 48b926877cb0cf0dd1904d9334b5644bac207531 [file] [log] [blame]
Andrew Geissler3b025e62019-02-01 10:33:54 -06001if AUTOCONF_CODE_COVERAGE_2019_01_06
2include $(top_srcdir)/aminclude_static.am
3clean-local: code-coverage-clean
4distclean-local: code-coverage-dist-clean
5else
6@CODE_COVERAGE_RULES@
7endif
8
9AM_LIBS = $(CODE_COVERAGE_LIBS)
10AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) -UNDEBUG $(GTEST_CPPFLAGS)
11AM_CFLAGS = $(CODE_COVERAGE_CFLAGS)
Andrew Geissler271b7dd2019-02-05 11:23:30 -060012AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) \
13 -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY \
14 -DBOOST_ALL_NO_LIB
Andrew Geissler3b025e62019-02-01 10:33:54 -060015AM_LDFLAGS = $(GMOCK_LIBS) -lgmock_main \
Andrew Geissler271b7dd2019-02-05 11:23:30 -060016 $(GTEST_LIBS) $(OESDK_TESTCASE_FLAGS) $(PTHREAD_LIBS) \
Vernon Maueryc52be0d2020-01-14 11:14:25 -080017 $(SDBUSPLUS_LIBS)
Andrew Geissler3b025e62019-02-01 10:33:54 -060018
Patrick Venture096cf822019-03-28 13:42:01 -070019bin_PROGRAMS = mapper mapperx
Matthew Barth71222442016-10-04 16:10:01 -050020
21mapper_SOURCES = libmapper/app.c
22mapper_LDFLAGS = $(SYSTEMD_LIBS)
23mapper_CFLAGS = $(SYSTEMD_CFLAGS)
24mapper_LDADD = libmapper.la
25
26libmapperdir = ${libdir}
27libmapper_LTLIBRARIES = libmapper.la
28libmapper_la_SOURCES = libmapper/mapper.c
29libmapper_la_LDFLAGS = $(SYSTEMD_LIBS) -version-info 1:0:0 -shared
30libmapper_la_CFLAGS = $(SYSTEMD_CFLAGS)
31
Andrew Geisslera80a3af2019-02-04 14:01:49 -060032mapperx_SOURCES = src/main.cpp src/argument.cpp src/processing.cpp \
33 src/associations.cpp
Ed Tanous60520632018-06-11 17:46:52 -070034mapperx_LDFLAGS = $(SDBUSPLUS_LIBS) -pthread -ltinyxml2
35mapperx_CXXFLAGS = $(SYSTEMD_CFLAGS) -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_ALL_NO_LIB
36
Patrick Williamsa33fbf52017-06-01 16:08:32 -050037include_HEADERS = libmapper/mapper.h
Matthew Barth71222442016-10-04 16:10:01 -050038
Matt Spinler62b36bd2017-06-02 12:15:59 -050039SUBDIRS = fail-monitor
Andrew Geissler3b025e62019-02-01 10:33:54 -060040
41check_PROGRAMS =
42XFAIL_TESTS =
43
44# Ignore system headers
45CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*'
46
47include src/test/Makefile.am.include
48
49TESTS = $(check_PROGRAMS)