blob: caa13dc0b37628c6ec088a246b84b334fa23e9d7 [file] [log] [blame]
Ed Tanous60520632018-06-11 17:46:52 -07001sbin_PROGRAMS = mapper mapperx
Matthew Barth71222442016-10-04 16:10:01 -05002
3mapper_SOURCES = libmapper/app.c
4mapper_LDFLAGS = $(SYSTEMD_LIBS)
5mapper_CFLAGS = $(SYSTEMD_CFLAGS)
6mapper_LDADD = libmapper.la
7
8libmapperdir = ${libdir}
9libmapper_LTLIBRARIES = libmapper.la
10libmapper_la_SOURCES = libmapper/mapper.c
11libmapper_la_LDFLAGS = $(SYSTEMD_LIBS) -version-info 1:0:0 -shared
12libmapper_la_CFLAGS = $(SYSTEMD_CFLAGS)
13
Matt Spinlerdd945862018-09-07 12:41:05 -050014mapperx_SOURCES = src/main.cpp src/argument.cpp
Ed Tanous60520632018-06-11 17:46:52 -070015mapperx_LDFLAGS = $(SDBUSPLUS_LIBS) -pthread -ltinyxml2
16mapperx_CXXFLAGS = $(SYSTEMD_CFLAGS) -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_ALL_NO_LIB
17
Patrick Williamsa33fbf52017-06-01 16:08:32 -050018include_HEADERS = libmapper/mapper.h
Matthew Barth71222442016-10-04 16:10:01 -050019
20if HAVE_PYTHON
21
22all-local:
23 $(AM_V_at)$(PYTHON) ${top_builddir}/setup.py build
24
25clean-local:
26 rm -rfv ${top_builddir}/build
27
28install-exec-hook:
29 $(AM_V_at)$(PYTHON) ${top_builddir}/setup.py install \
30 --prefix=$(DESTDIR)${prefix} \
31 --install-data=$(DESTDIR)${datadir} \
32 --install-lib=$(DESTDIR)$(PYTHONDIR) \
33 --install-scripts=$(DESTDIR)${sbindir} \
34 --record=${top_builddir}/python_install.log
35
36uninstall-hook:
37 cat ${top_builddir}/python_install.log \
Matthew Barth4a6f9982016-11-18 10:25:57 -060038 | $(AWK) '{print "$(DESTDIR)"$$1}' | xargs rm -fv
Matthew Barth71222442016-10-04 16:10:01 -050039
40endif
Matt Spinler62b36bd2017-06-02 12:15:59 -050041
42SUBDIRS = fail-monitor