2019-11-13 13:21:04 +01:00
|
|
|
AUTOMAKE_OPTIONS = foreign
|
|
|
|
|
2019-11-18 14:07:43 +01:00
|
|
|
# AM_CFLAGS = -g -O0
|
2019-11-13 13:21:04 +01:00
|
|
|
|
|
|
|
# check for system
|
2019-11-13 17:00:11 +01:00
|
|
|
#if LINUX
|
|
|
|
# AM_CPPFLAGS = -Wl,--no-as-needed
|
|
|
|
#else
|
|
|
|
# AM_CPPFLAGS = -Wl,-undefined,dynamic_lookup
|
|
|
|
#endif
|
2019-11-13 13:21:04 +01:00
|
|
|
|
|
|
|
|
2019-11-13 17:00:11 +01:00
|
|
|
AM_CPPFLAGS = -W -Wall -g -std=c99 -DCONFIG_FILE=\"$(sysconfdir)/antd-config.ini\"
|
|
|
|
# dynamic library
|
2019-11-13 13:21:04 +01:00
|
|
|
lib_LTLIBRARIES = libantd.la
|
|
|
|
libantd_la_SOURCES = lib/ini.c \
|
|
|
|
lib/handle.c \
|
|
|
|
lib/dictionary.c \
|
|
|
|
lib/base64.c \
|
|
|
|
lib/utils.c \
|
|
|
|
lib/ws.c \
|
|
|
|
lib/sha1.c \
|
|
|
|
lib/list.c \
|
2020-08-06 18:45:12 +02:00
|
|
|
lib/bst.c \
|
2019-11-13 17:00:11 +01:00
|
|
|
lib/scheduler.c
|
|
|
|
|
2019-11-13 13:21:04 +01:00
|
|
|
pkginclude_HEADERS = lib/ini.h \
|
|
|
|
lib/handle.h \
|
|
|
|
lib/dictionary.h \
|
|
|
|
lib/base64.h \
|
|
|
|
lib/utils.h \
|
|
|
|
lib/ws.h \
|
|
|
|
lib/sha1.h \
|
|
|
|
lib/list.h \
|
2020-08-06 18:45:12 +02:00
|
|
|
lib/bst.h \
|
2019-11-13 13:21:04 +01:00
|
|
|
lib/scheduler.h \
|
|
|
|
lib/plugin.h
|
|
|
|
|
2019-11-13 17:00:11 +01:00
|
|
|
|
2020-08-08 20:35:21 +02:00
|
|
|
EXTRA_DIST = plugin_manager.h http_server.h README.md LICENSE antd-config.ini ant-d antd.service
|
2019-11-13 13:21:04 +01:00
|
|
|
# check for db
|
|
|
|
if DB
|
|
|
|
libantd_la_SOURCES += lib/dbhelper.c
|
|
|
|
pkginclude_HEADERS += lib/dbhelper.h
|
|
|
|
endif
|
|
|
|
|
|
|
|
# bin
|
|
|
|
bin_PROGRAMS = antd
|
|
|
|
# lib source files
|
|
|
|
antd_SOURCES = plugin_manager.c http_server.c httpd.c
|
2019-11-13 14:22:25 +01:00
|
|
|
antd_LDADD = libantd.la
|
|
|
|
|
2020-08-08 20:35:21 +02:00
|
|
|
|
2019-11-13 14:22:25 +01:00
|
|
|
sysconf_DATA = antd-config.ini
|
|
|
|
|
2020-08-08 20:35:21 +02:00
|
|
|
install-data-local:
|
2022-08-02 09:15:08 +02:00
|
|
|
- install -c ant-d $(DESTDIR)/$(prefix)/bin
|
|
|
|
- [ -d $(DESTDIR)/etc/systemd/system/ ] && cp antd.service $(DESTDIR)/etc/systemd/system/
|
2020-08-08 20:35:21 +02:00
|
|
|
|
2019-11-13 14:22:25 +01:00
|
|
|
#install-data-local: $(srcdir)/conf/config.file $(srcdir)/conf/sub1/config.file
|
|
|
|
# mkdir $(sysconfdir)/conf
|
|
|
|
# cp $(srcdir)/conf/config.file $(sysconfdir)/conf
|
|
|
|
# mkdir $(sysconfdir)/conf/sub1
|
2022-08-02 09:15:08 +02:00
|
|
|
# cp $(srcdir)/conf/sub1/config.file $(sysconfdir)/conf/sub1
|