2019-11-03 17:21:06 +01:00
|
|
|
# Copyright (c) 2018-2019 Joachim Nilsson <troglobit@gmail.com>
|
2018-08-02 22:23:26 +02:00
|
|
|
#
|
2019-11-03 17:21:06 +01:00
|
|
|
# This file is part of the sysklogd package, a kernel and system log daemon.
|
2018-08-02 22:23:26 +02:00
|
|
|
#
|
2019-11-03 17:21:06 +01:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
# (at your option) any later version.
|
2018-08-02 22:23:26 +02:00
|
|
|
#
|
2019-11-03 17:21:06 +01:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
2018-08-02 22:23:26 +02:00
|
|
|
#
|
2019-11-03 17:21:06 +01:00
|
|
|
# You should have received a copy of the GNU General Public License along
|
|
|
|
# with this program; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
2018-08-02 22:23:26 +02:00
|
|
|
|
2019-11-04 06:21:50 +01:00
|
|
|
bin_PROGRAMS = logger
|
|
|
|
sbin_PROGRAMS = syslogd klogd
|
|
|
|
lib_LTLIBRARIES = libsyslog.la
|
2019-11-04 10:59:45 +01:00
|
|
|
noinst_LTLIBRARIES = libcompat.la
|
2018-08-02 22:23:26 +02:00
|
|
|
|
2019-11-04 06:21:50 +01:00
|
|
|
AM_CFLAGS = -W -Wall -Wextra
|
|
|
|
AM_CFLAGS += -Wno-unused-result -Wno-unused-parameter -fno-strict-aliasing
|
|
|
|
AM_CPPFLAGS = -DSYSCONFDIR=\"@sysconfdir@\" -DLOCALSTATEDIR=\"@localstatedir@\"
|
|
|
|
AM_CPPFLAGS += -D_BSD_SOURCE -D_DEFAULT_SOURCE
|
2018-08-02 22:23:26 +02:00
|
|
|
|
2019-11-10 11:22:14 +01:00
|
|
|
syslogd_SOURCES = syslogd.c syslogd.h socket.c socket.h syslog.h queue.h compat.h
|
2019-11-04 06:21:50 +01:00
|
|
|
syslogd_CPPFLAGS = $(AM_CPPFLAGS) -D_XOPEN_SOURCE=600
|
|
|
|
syslogd_LDADD = $(LIBS) $(LIBOBJS)
|
2018-08-02 22:23:26 +02:00
|
|
|
|
2019-11-04 20:09:15 +01:00
|
|
|
klogd_SOURCES = klogd.c klogd.h syslog.h compat.h ksym.c ksyms.h ksym_mod.c module.h
|
2019-11-04 06:21:50 +01:00
|
|
|
klogd_CPPFLAGS = $(AM_CPPFLAGS) -DALLOW_KERNEL_LOGGING
|
|
|
|
klogd_LDADD = $(LIBS) $(LIBOBJS)
|
|
|
|
klogd_LDADD += libsyslog.la
|
2019-10-13 14:44:51 +02:00
|
|
|
|
2019-11-04 06:21:50 +01:00
|
|
|
logger_SOURCES = logger.c syslog.h
|
|
|
|
logger_CPPFLAGS = $(AM_CPPFLAGS) -D_XOPEN_SOURCE=600
|
|
|
|
logger_LDADD = $(LIBS) $(LIBOBJS)
|
|
|
|
logger_LDADD += libsyslog.la
|
2019-10-22 16:41:52 +02:00
|
|
|
|
2019-11-04 10:59:45 +01:00
|
|
|
# Convenience library for libsyslog instead of linking with $(LTLIBOBJS),
|
|
|
|
# which would pull in pidfile() and other (strong) symbols as well.
|
|
|
|
libcompat_la_SOURCES = ../lib/strlcpy.c ../lib/strlcat.c
|
|
|
|
|
2019-10-31 08:39:09 +01:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgincludedir = $(includedir)/syslog
|
|
|
|
pkgconfig_DATA = libsyslog.pc
|
|
|
|
pkginclude_HEADERS = syslog.h
|
2019-11-04 20:09:15 +01:00
|
|
|
libsyslog_la_SOURCES = syslog.c syslog.h compat.h
|
2019-11-02 20:57:07 +01:00
|
|
|
libsyslog_la_CPPFLAGS = $(AM_CPPFLAGS) -D_XOPEN_SOURCE=600
|
2019-10-31 08:39:09 +01:00
|
|
|
libsyslog_la_LDFLAGS = $(AM_LDFLAGS) -version-info 0:0:0
|
2019-11-04 10:59:45 +01:00
|
|
|
libsyslog_la_LIBADD = libcompat.la
|