blob: 62fe99e237823df148b953e712608605e8511d8a [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)
12AM_CXXFLAGS = $(CODE_COVERAGE_CXXFLAGS)
13AM_LDFLAGS = $(GMOCK_LIBS) -lgmock_main \
14 $(GTEST_LIBS) $(OESDK_TESTCASE_FLAGS) $(PTHREAD_LIBS)
15
Ed Tanous60520632018-06-11 17:46:52 -070016sbin_PROGRAMS = mapper mapperx
Matthew Barth71222442016-10-04 16:10:01 -050017
18mapper_SOURCES = libmapper/app.c
19mapper_LDFLAGS = $(SYSTEMD_LIBS)
20mapper_CFLAGS = $(SYSTEMD_CFLAGS)
21mapper_LDADD = libmapper.la
22
23libmapperdir = ${libdir}
24libmapper_LTLIBRARIES = libmapper.la
25libmapper_la_SOURCES = libmapper/mapper.c
26libmapper_la_LDFLAGS = $(SYSTEMD_LIBS) -version-info 1:0:0 -shared
27libmapper_la_CFLAGS = $(SYSTEMD_CFLAGS)
28
Andrew Geissler3b025e62019-02-01 10:33:54 -060029mapperx_SOURCES = src/main.cpp src/argument.cpp src/processing.cpp
Ed Tanous60520632018-06-11 17:46:52 -070030mapperx_LDFLAGS = $(SDBUSPLUS_LIBS) -pthread -ltinyxml2
31mapperx_CXXFLAGS = $(SYSTEMD_CFLAGS) -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_ALL_NO_LIB
32
Patrick Williamsa33fbf52017-06-01 16:08:32 -050033include_HEADERS = libmapper/mapper.h
Matthew Barth71222442016-10-04 16:10:01 -050034
35if HAVE_PYTHON
36
37all-local:
38 $(AM_V_at)$(PYTHON) ${top_builddir}/setup.py build
39
40clean-local:
41 rm -rfv ${top_builddir}/build
42
43install-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
51uninstall-hook:
52 cat ${top_builddir}/python_install.log \
Matthew Barth4a6f9982016-11-18 10:25:57 -060053 | $(AWK) '{print "$(DESTDIR)"$$1}' | xargs rm -fv
Matthew Barth71222442016-10-04 16:10:01 -050054
55endif
Matt Spinler62b36bd2017-06-02 12:15:59 -050056
57SUBDIRS = fail-monitor
Andrew Geissler3b025e62019-02-01 10:33:54 -060058
59check_PROGRAMS =
60XFAIL_TESTS =
61
62# Ignore system headers
63CODE_COVERAGE_IGNORE_PATTERN = '/include/*' '/usr/include/*' '$(includedir)/*'
64
65include src/test/Makefile.am.include
66
67TESTS = $(check_PROGRAMS)