83 lines
2.6 KiB
Makefile
83 lines
2.6 KiB
Makefile
|
AUTOMAKE_OPTIONS = subdir-objects
|
||
|
ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
|
||
|
|
||
|
AM_CPPFLAGS = $(DEPS_CFLAGS)
|
||
|
|
||
|
DISTCLEANFILES = src/mc-hid-server-glue.hpp \
|
||
|
script/init.d/mediacore-hid
|
||
|
|
||
|
I2C_SRC = src/i2c/i2c.c \
|
||
|
src/i2c/i2c.h
|
||
|
|
||
|
MCP_GPIO_SRC = src/gpio/gpio.hpp \
|
||
|
src/gpio/gpio.cpp \
|
||
|
src/mcp23017/mcp23017.hpp \
|
||
|
src/mcp23017/mcp23017.cpp \
|
||
|
src/exception/baseexceptions.hpp \
|
||
|
src/exception/baseexceptions.cpp \
|
||
|
$(I2C_SRC)
|
||
|
|
||
|
SUPPORT_SRC = src/log/log.hpp \
|
||
|
src/log/log.cpp \
|
||
|
src/thread/thread.hpp \
|
||
|
src/thread/thread.cpp \
|
||
|
src/buttontimer/buttontimer.hpp \
|
||
|
src/buttontimer/buttontimer.cpp
|
||
|
|
||
|
sbin_PROGRAMS = mediacore-hid-server
|
||
|
check_PROGRAMS = mcp23017-i2ctest
|
||
|
TESTS = mcp23017-i2ctest
|
||
|
|
||
|
EXTRA_DIST = \
|
||
|
cfg/dbus/nl.miqra.MediaCore.Hid.conf \
|
||
|
cfg/init.d/mediacore-hid.in \
|
||
|
cfg/rsyslog/syslog.MediaCore.Hid.conf \
|
||
|
src/mc-hid-introspect.xml \
|
||
|
cfg/modules \
|
||
|
cfg/modprobe.d/raspi-blacklist.conf
|
||
|
|
||
|
init_d_dirdir = $(sysconfdir)/init.d
|
||
|
init_d_dir_SCRIPTS = cfg/init.d/mediacore-hid
|
||
|
|
||
|
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
|
||
|
|
||
|
etc_dirdir = $(sysconfdir)
|
||
|
etc_dir_DATA = cfg/modules
|
||
|
|
||
|
modprobe_d_dirdir = $(sysconfdir)/modprobe.d
|
||
|
modprobe_d_dir_DATA = cfg/modprobe.d/raspi-blacklist.conf
|
||
|
|
||
|
|
||
|
src/mc-hid-server-glue.hpp: src/mc-hid-introspect.xml
|
||
|
dbusxx-xml2cpp $^ --adaptor=$@
|
||
|
|
||
|
BUILT_SOURCES = src/mc-hid-server-glue.hpp
|
||
|
|
||
|
mediacore_hid_server_SOURCES = src/mc-hid-server.cpp \
|
||
|
src/mc-hid-server.hpp \
|
||
|
src/mc-hid-server-glue.hpp \
|
||
|
$(MCP_GPIO_SRC) \
|
||
|
$(SUPPORT_SRC)
|
||
|
|
||
|
mediacore_hid_server_LDADD = $(DEPS_LIBS) -lpthread -lrt
|
||
|
|
||
|
|
||
|
mcp23017_i2ctest_SOURCES = src/test/mcp23017-i2ctest.c \
|
||
|
$(I2C_SRC)
|
||
|
|
||
|
mcp23017_i2ctest_LDADD = -lpthread
|
||
|
|
||
|
cfg/init.d/mediacore-hid: cfg/init.d/mediacore-hid.in
|
||
|
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)#" $@
|