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) |
| 12 | AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS) |
| 13 | AM_LDFLAGS = $(GMOCK_LIBS) -lgmock_main \ |
| 14 | $(GTEST_LIBS) $(OESDK_TESTCASE_FLAGS) $(PTHREAD_LIBS) |
| 15 | |
Ed Tanous | 6052063 | 2018-06-11 17:46:52 -0700 | [diff] [blame] | 16 | sbin_PROGRAMS = mapper mapperx |
Matthew Barth | 7122244 | 2016-10-04 16:10:01 -0500 | [diff] [blame] | 17 | |
| 18 | mapper_SOURCES = libmapper/app.c |
| 19 | mapper_LDFLAGS = $(SYSTEMD_LIBS) |
| 20 | mapper_CFLAGS = $(SYSTEMD_CFLAGS) |
| 21 | mapper_LDADD = libmapper.la |
| 22 | |
| 23 | libmapperdir = ${libdir} |
| 24 | libmapper_LTLIBRARIES = libmapper.la |
| 25 | libmapper_la_SOURCES = libmapper/mapper.c |
| 26 | libmapper_la_LDFLAGS = $(SYSTEMD_LIBS) -version-info 1:0:0 -shared |
| 27 | libmapper_la_CFLAGS = $(SYSTEMD_CFLAGS) |
| 28 | |
Andrew Geissler | 3b025e6 | 2019-02-01 10:33:54 -0600 | [diff] [blame^] | 29 | mapperx_SOURCES = src/main.cpp src/argument.cpp src/processing.cpp |
Ed Tanous | 6052063 | 2018-06-11 17:46:52 -0700 | [diff] [blame] | 30 | mapperx_LDFLAGS = $(SDBUSPLUS_LIBS) -pthread -ltinyxml2 |
| 31 | mapperx_CXXFLAGS = $(SYSTEMD_CFLAGS) -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_ALL_NO_LIB |
| 32 | |
Patrick Williams | a33fbf5 | 2017-06-01 16:08:32 -0500 | [diff] [blame] | 33 | include_HEADERS = libmapper/mapper.h |
Matthew Barth | 7122244 | 2016-10-04 16:10:01 -0500 | [diff] [blame] | 34 | |
| 35 | if HAVE_PYTHON |
| 36 | |
| 37 | all-local: |
| 38 | $(AM_V_at)$(PYTHON) ${top_builddir}/setup.py build |
| 39 | |
| 40 | clean-local: |
| 41 | rm -rfv ${top_builddir}/build |
| 42 | |
| 43 | install-exec-hook: |
| 44 | $(AM_V_at)$(PYTHON) ${top_builddir}/setup.py install \ |
| 45 | --prefix=$(DESTDIR)${prefix} \ |
| 46 | --install-data=$(DESTDIR)${datadir} \ |
| 47 | --install-lib=$(DESTDIR)$(PYTHONDIR) \ |
| 48 | --install-scripts=$(DESTDIR)${sbindir} \ |
| 49 | --record=${top_builddir}/python_install.log |
| 50 | |
| 51 | uninstall-hook: |
| 52 | cat ${top_builddir}/python_install.log \ |
Matthew Barth | 4a6f998 | 2016-11-18 10:25:57 -0600 | [diff] [blame] | 53 | | $(AWK) '{print "$(DESTDIR)"$$1}' | xargs rm -fv |
Matthew Barth | 7122244 | 2016-10-04 16:10:01 -0500 | [diff] [blame] | 54 | |
| 55 | endif |
Matt Spinler | 62b36bd | 2017-06-02 12:15:59 -0500 | [diff] [blame] | 56 | |
| 57 | SUBDIRS = fail-monitor |
Andrew Geissler | 3b025e6 | 2019-02-01 10:33:54 -0600 | [diff] [blame^] | 58 | |
| 59 | check_PROGRAMS = |
| 60 | XFAIL_TESTS = |
| 61 | |
| 62 | # Ignore system headers |
| 63 | CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*' |
| 64 | |
| 65 | include src/test/Makefile.am.include |
| 66 | |
| 67 | TESTS = $(check_PROGRAMS) |