Andrew Geissler | 3b025e6 | 2019-02-01 10:33:54 -0600 | [diff] [blame] | 1 | if AUTOCONF_CODE_COVERAGE_2019_01_06 |
| 2 | include $(top_srcdir)/aminclude_static.am |
| 3 | clean-local: code-coverage-clean |
| 4 | distclean-local: code-coverage-dist-clean |
| 5 | else |
| 6 | @CODE_COVERAGE_RULES@ |
| 7 | endif |
| 8 | |
| 9 | AM_LIBS = $(CODE_COVERAGE_LIBS) |
| 10 | AM_CPPFLAGS = $(CODE_COVERAGE_CPPFLAGS) -UNDEBUG $(GTEST_CPPFLAGS) |
| 11 | AM_CFLAGS = $(CODE_COVERAGE_CFLAGS) |
Andrew Geissler | 271b7dd | 2019-02-05 11:23:30 -0600 | [diff] [blame] | 12 | AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) \ |
| 13 | -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY \ |
| 14 | -DBOOST_ALL_NO_LIB |
Andrew Geissler | 3b025e6 | 2019-02-01 10:33:54 -0600 | [diff] [blame] | 15 | AM_LDFLAGS = $(GMOCK_LIBS) -lgmock_main \ |
Andrew Geissler | 271b7dd | 2019-02-05 11:23:30 -0600 | [diff] [blame] | 16 | $(GTEST_LIBS) $(OESDK_TESTCASE_FLAGS) $(PTHREAD_LIBS) \ |
| 17 | $(SDBUSPLUS_LIBS) -lboost_system |
Andrew Geissler | 3b025e6 | 2019-02-01 10:33:54 -0600 | [diff] [blame] | 18 | |
Patrick Venture | 096cf82 | 2019-03-28 13:42:01 -0700 | [diff] [blame] | 19 | bin_PROGRAMS = mapper mapperx |
Matthew Barth | 7122244 | 2016-10-04 16:10:01 -0500 | [diff] [blame] | 20 | |
| 21 | mapper_SOURCES = libmapper/app.c |
| 22 | mapper_LDFLAGS = $(SYSTEMD_LIBS) |
| 23 | mapper_CFLAGS = $(SYSTEMD_CFLAGS) |
| 24 | mapper_LDADD = libmapper.la |
| 25 | |
| 26 | libmapperdir = ${libdir} |
| 27 | libmapper_LTLIBRARIES = libmapper.la |
| 28 | libmapper_la_SOURCES = libmapper/mapper.c |
| 29 | libmapper_la_LDFLAGS = $(SYSTEMD_LIBS) -version-info 1:0:0 -shared |
| 30 | libmapper_la_CFLAGS = $(SYSTEMD_CFLAGS) |
| 31 | |
Andrew Geissler | a80a3af | 2019-02-04 14:01:49 -0600 | [diff] [blame] | 32 | mapperx_SOURCES = src/main.cpp src/argument.cpp src/processing.cpp \ |
| 33 | src/associations.cpp |
Ed Tanous | 6052063 | 2018-06-11 17:46:52 -0700 | [diff] [blame] | 34 | mapperx_LDFLAGS = $(SDBUSPLUS_LIBS) -pthread -ltinyxml2 |
| 35 | mapperx_CXXFLAGS = $(SYSTEMD_CFLAGS) -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_ALL_NO_LIB |
| 36 | |
Patrick Williams | a33fbf5 | 2017-06-01 16:08:32 -0500 | [diff] [blame] | 37 | include_HEADERS = libmapper/mapper.h |
Matthew Barth | 7122244 | 2016-10-04 16:10:01 -0500 | [diff] [blame] | 38 | |
Matt Spinler | 62b36bd | 2017-06-02 12:15:59 -0500 | [diff] [blame] | 39 | SUBDIRS = fail-monitor |
Andrew Geissler | 3b025e6 | 2019-02-01 10:33:54 -0600 | [diff] [blame] | 40 | |
| 41 | check_PROGRAMS = |
| 42 | XFAIL_TESTS = |
| 43 | |
| 44 | # Ignore system headers |
| 45 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
| 46 | |
| 47 | include src/test/Makefile.am.include |
| 48 | |
| 49 | TESTS = $(check_PROGRAMS) |