From 1305c6268e16df9812df870f7a947866df336790 Mon Sep 17 00:00:00 2001 From: lxsang Date: Wed, 13 Nov 2019 13:21:04 +0100 Subject: [PATCH] add Makefile.am --- .gitignore | 2 +- Makefile.am | 47 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 Makefile.am diff --git a/.gitignore b/.gitignore index 5f3b3bd..b9df76a 100644 --- a/.gitignore +++ b/.gitignore @@ -71,4 +71,4 @@ config.ini.tpl configure aclocal.m4 ltmain.sh -Makefile.* \ No newline at end of file +Makefile.in \ No newline at end of file diff --git a/Makefile.am b/Makefile.am new file mode 100644 index 0000000..5603e17 --- /dev/null +++ b/Makefile.am @@ -0,0 +1,47 @@ +AUTOMAKE_OPTIONS = foreign + + + +# check for system +if LINUX + AM_CPPFLAGS = -Wl,--no-as-needed +else + AM_CPPFLAGS = -Wl,-undefined,dynamic_lookup +endif + + +AM_CPPFLAGS += -W -Wall -g -std=c99 + +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 \ + lib/scheduler.c\ + lib/plugin.c +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 \ + lib/scheduler.h \ + lib/plugin.h + +# 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 +antd_LDADD = libantd.la \ No newline at end of file