modified for systemd journal support
[framework/system/dlog.git] / Makefile.am
1
2
3 if SD_JOURNAL_SUPPORT
4 AM_CFLAGS = @CFLAGS@ -I$(srcdir)/include \
5               -I$(srcdir)/include/internal -DSD_JOURNAL_SUPPORT
6 else
7 AM_CFLAGS = @CFLAGS@ -I$(srcdir)/include \
8               -I$(srcdir)/include/internal
9 endif
10
11 dlog_includedir = $(includedir)/dlog
12 dlog_include_HEADERS = \
13         include/dlog.h
14
15 lib_LTLIBRARIES = libdlog.la
16
17 libdlog_la_SOURCES =  \
18         log.c \
19         include/dlog.h
20
21 if SD_JOURNAL_SUPPORT
22 libdlog_la_LIBADD = -lpthread -lsystemd-journal
23 else
24 libdlog_la_LIBADD = -lpthread
25 endif
26 bin_PROGRAMS= dlogutil
27
28 dlogutil_SOURCES = \
29         logutil.c \
30         logprint.c \
31         include/logger.h \
32         include/logprint.h
33
34 # conf file
35 pkgconfigdir = $(libdir)/pkgconfig
36 pkgconfig_DATA = dlog.pc
37
38 bootscriptdir = /etc/rc.d/init.d
39 bootscript_SCRIPTS = dlog.sh
40
41