2018-09-24 17:45:06 +02:00
|
|
|
AUTOMAKE_OPTIONS = subdir-objects
|
|
|
|
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
|
|
|
|
|
|
|
|
AM_CPPFLAGS = $(DEPS_CFLAGS)
|
|
|
|
|
|
|
|
DISTCLEANFILES = src/mc-hid-server-glue.hpp \
|
|
|
|
script/init.d/mediacore-hid
|
|
|
|
|
|
|
|
SUPPORT_SRC = src/log/log.hpp \
|
|
|
|
src/log/log.cpp \
|
|
|
|
src/thread/thread.hpp \
|
|
|
|
src/thread/thread.cpp \
|
|
|
|
src/buttontimer/buttontimer.hpp \
|
2021-04-23 13:12:32 +02:00
|
|
|
src/buttontimer/buttontimer.cpp \
|
|
|
|
src/gpio/gpio.hpp \
|
|
|
|
src/gpio/gpio.cpp \
|
|
|
|
src/gpio/dma.hpp \
|
|
|
|
src/gpio/dma.cpp \
|
|
|
|
src/gpio/mailbox.h \
|
|
|
|
src/gpio/mailbox.c
|
2018-09-24 17:45:06 +02:00
|
|
|
|
|
|
|
sbin_PROGRAMS = mediacore-hid-server
|
|
|
|
|
2021-04-23 13:12:32 +02:00
|
|
|
EXTRA_DIST = cfg/dbus/nl.miqra.MediaCore.Hid.conf \
|
2023-01-09 21:53:49 +01:00
|
|
|
lib/systemd/system/mediacore-hid.service.in \
|
2018-09-24 17:45:06 +02:00
|
|
|
cfg/rsyslog/syslog.MediaCore.Hid.conf \
|
2021-04-23 13:12:32 +02:00
|
|
|
src/mc-hid-introspect.xml
|
2018-09-24 17:45:06 +02:00
|
|
|
|
2023-01-14 18:03:37 +01:00
|
|
|
systemddir = /lib/systemd/system
|
|
|
|
systemd_DATA = lib/systemd/system/mediacore-hid.service
|
2018-09-24 17:45:06 +02:00
|
|
|
|
|
|
|
dbus_confdir = $(sysconfdir)/dbus-1/system.d
|
|
|
|
dbus_conf_DATA = cfg/dbus/nl.miqra.MediaCore.Hid.conf
|
|
|
|
|
|
|
|
rsyslog_confdir = $(sysconfdir)/rsyslog.d
|
|
|
|
rsyslog_conf_DATA = cfg/rsyslog/syslog.MediaCore.Hid.conf
|
|
|
|
|
2023-01-09 21:53:49 +01:00
|
|
|
|
|
|
|
|
2018-09-24 17:45:06 +02:00
|
|
|
src/mc-hid-server-glue.hpp: src/mc-hid-introspect.xml
|
|
|
|
dbusxx-xml2cpp $^ --adaptor=$@
|
|
|
|
|
|
|
|
BUILT_SOURCES = src/mc-hid-server-glue.hpp
|
|
|
|
|
2021-04-23 13:12:32 +02:00
|
|
|
mediacore_hid_server_CPPFLAGS = -std=c++17 -I/usr/include/dbus-c++-1/ -I/opt/vc/include/
|
2018-09-24 17:45:06 +02:00
|
|
|
mediacore_hid_server_SOURCES = src/mc-hid-server.cpp \
|
|
|
|
src/mc-hid-server.hpp \
|
|
|
|
src/mc-hid-server-glue.hpp \
|
2021-04-23 13:12:32 +02:00
|
|
|
src/exception/baseexceptions.hpp \
|
|
|
|
src/exception/baseexceptions.cpp \
|
2018-09-24 17:45:06 +02:00
|
|
|
$(SUPPORT_SRC)
|
|
|
|
|
2021-04-23 13:12:32 +02:00
|
|
|
mediacore_hid_server_LDADD = $(DEPS_LIBS) -L/opt/vc/lib -lpthread -lrt -lgpiodcxx -lbcm_host
|
2018-09-24 17:45:06 +02:00
|
|
|
|
|
|
|
|
2023-01-09 21:53:49 +01:00
|
|
|
lib/systemd/system/mediacore-hid.service: lib/systemd/system/mediacore-hid.service.in
|
2018-09-24 17:45:06 +02:00
|
|
|
cat $^ > $@
|
|
|
|
sed -i "s#@BIN_DIR@#$(bindir)#" $@
|
|
|
|
sed -i "s#@ETC_DIR@#$(sysconfdir)#" $@
|
|
|
|
sed -i "s#@SBIN_DIR@#$(sbindir)#" $@
|
|
|
|
|
|
|
|
version.py: version.py.in
|
|
|
|
cat $^ > $@
|
|
|
|
sed -i "s#@V_PACKAGE@#$(PACKAGE)#" $@
|
|
|
|
sed -i "s#@V_VERSION\@#$(VERSION)#" $@
|