summaryrefslogtreecommitdiff
path: root/Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.am')
-rwxr-xr-xMakefile.am54
1 files changed, 38 insertions, 16 deletions
diff --git a/Makefile.am b/Makefile.am
index 65bd8b8..b0d79d5 100755
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,8 +1,7 @@
-
-
-AM_CFLAGS = @CFLAGS@ -I$(srcdir)/include \
- -I$(srcdir)/include/internal
-
+AM_CFLAGS = -I$(srcdir)/include \
+ $(DEBUG_CFLAGS) \
+ -Werror \
+ $(CAPI_BASE_COMMON_CFLAGS)
dlog_includedir = $(includedir)/dlog
dlog_include_HEADERS = \
@@ -11,24 +10,47 @@ dlog_include_HEADERS = \
lib_LTLIBRARIES = libdlog.la
libdlog_la_SOURCES = \
- log.c \
- include/dlog.h
+ src/libdlog/log.c \
+ include/dlog.h \
+ src/libdlog/logconfig.c \
+ include/logconfig.h \
+ src/libdlog/loglimiter.c \
+ include/loglimiter.h
-libdlog_la_LIBADD = -lpthread
+libdlog_la_LIBADD = -lpthread \
+ $(systemd_journal_LIBS) \
+ $(CAPI_BASE_COMMON_LIBS)
-bin_PROGRAMS= dlogutil
+bin_PROGRAMS = dlogutil dlog_logger
+
+dlogutil_CFLAGS = \
+ $(AM_CFLAGS) \
+ -fPIE
+
+dlogutil_LDFLAGS = \
+ $(AM_LDFLAGS) \
+ -pie
dlogutil_SOURCES = \
- logutil.c \
- logprint.c \
+ src/shared/logprint.c \
+ src/logutil/logutil.c \
include/logger.h \
include/logprint.h
-# conf file
-pkgconfigdir = $(libdir)/pkgconfig
-pkgconfig_DATA = dlog.pc
+dlog_logger_CFLAGS = \
+ $(AM_CFLAGS) \
+ -fPIE
-bootscriptdir = /etc/rc.d/init.d
-bootscript_SCRIPTS = dlog.sh
+dlog_logger_LDFLAGS = \
+ $(AM_LDFLAGS) \
+ -pie
+dlog_logger_SOURCES = \
+ src/shared/logprint.c \
+ src/logger/logger.c \
+ include/logger.h \
+ include/logprint.h
+# conf file
+pkgconfigdir = $(libdir)/pkgconfig
+pkgconfig_DATA = dlog.pc