rsyslog/Makefile.am
Rainer Gerhards 8f8f65abb6 moved files to the runtime
there are still some files left which could go into the
runtime, but I think we will delete most of them once we
are done with the full modularization.
2008-04-16 10:26:54 +02:00

162 lines
2.8 KiB
Makefile

sbin_PROGRAMS =
man_MANS =
if ENABLE_RSYSLOGD
sbin_PROGRAMS += rsyslogd
rsyslogd_SOURCES = \
syslogd.c \
syslogd.h \
omshell.c \
omshell.h \
omusrmsg.c \
omusrmsg.h \
omfwd.c \
omfwd.h \
omfile.c \
omfile.h \
omdiscard.c \
omdiscard.h \
iminternal.c \
iminternal.h \
pidfile.c \
pidfile.h \
\
action.c \
action.h \
threads.c \
threads.h \
\
parse.c \
parse.h \
\
outchannel.c \
outchannel.h \
template.c \
template.h \
conf.c \
conf.h \
tcpsyslog.c \
tcpsyslog.h \
cfsysline.c \
cfsysline.h
rsyslogd_CPPFLAGS = $(pthreads_cflags) $(rsrt_cflags)
rsyslogd_LDADD = $(zlib_libs) $(pthreads_libs) $(dl_libs) $(rt_libs) $(rsrt_libs)
rsyslogd_LDFLAGS = -export-dynamic
man_MANS += rsyslogd.8 rsyslog.conf.5
endif # if ENABLE_RSYSLOGD
# now come the library plugins
pkglib_LTLIBRARIES =
if ENABLE_RFC3195
# this does so far not work - a manual build is needed
sbin_PROGRAMS += rfc3195d
rfc3195d_SOURCES = rfc3195d.c rsyslog.h
man_MANS += rfc3195d.8
endif
if ENABLE_INET
pkglib_LTLIBRARIES += lmnet.la lmtcpsrv.la lmtcpclt.la
#
# network support
#
lmnet_la_SOURCES = net.c net.h
lmnet_la_CPPFLAGS = $(pthreads_cflags) $(rsrt_cflags)
lmnet_la_LDFLAGS = -module -avoid-version $(rsrt_libs)
lmnet_la_LIBADD =
#
#
# TCP (stream) server support
#
lmtcpsrv_la_SOURCES = \
tcps_sess.c \
tcps_sess.h \
tcpsrv.c \
tcpsrv.h
lmtcpsrv_la_CPPFLAGS = $(pthreads_cflags) $(rsrt_cflags)
lmtcpsrv_la_LDFLAGS = -module -avoid-version $(rsrt_libs)
lmtcpsrv_la_LIBADD =
#
# TCP (stream) client support
#
lmtcpclt_la_SOURCES = \
tcpclt.c \
tcpclt.h
lmtcpclt_la_CPPFLAGS = $(pthreads_cflags) $(rsrt_cflags)
lmtcpclt_la_LDFLAGS = -module -avoid-version $(rsrt_libs)
lmtcpclt_la_LIBADD =
endif # if ENABLE_INET
#
# gssapi support
#
if ENABLE_GSSAPI
pkglib_LTLIBRARIES += lmgssutil.la
lmgssutil_la_SOURCES = gss-misc.c gss-misc.h
lmgssutil_la_CPPFLAGS = $(pthreads_cflags) $(rsrt_cflags)
lmgssutil_la_LDFLAGS = -module -avoid-version $(rsrt_libs)
lmgssutil_la_LIBADD = $(gss_libs)
endif
EXTRA_DIST = \
redhat/rsyslog.conf \
redhat/rsyslog.init \
redhat/rsyslog.log \
redhat/rsyslog.sysconfig \
freebsd/rsyslogd \
slackware/rc.rsyslogd \
contrib/README \
rsyslog.conf \
COPYING.LESSER \
$(man_MANS)
SUBDIRS = doc runtime .
SUBDIRS += plugins/immark plugins/imuxsock plugins/imtcp plugins/imudp plugins/omtesting
if ENABLE_IMKLOG
SUBDIRS += plugins/imklog
endif
if ENABLE_GSSAPI
SUBDIRS += plugins/omgssapi plugins/imgssapi
endif
if ENABLE_RELP
SUBDIRS += plugins/omrelp plugins/imrelp
endif
if ENABLE_MYSQL
SUBDIRS += plugins/ommysql
endif
if ENABLE_OMLIBDBI
SUBDIRS += plugins/omlibdbi
endif
if ENABLE_PGSQL
SUBDIRS += plugins/ompgsql
endif
if ENABLE_SNMP
SUBDIRS += plugins/omsnmp
endif
if ENABLE_IMTEMPLATE
SUBDIRS += plugins/imtemplate
endif
if ENABLE_IMFILE
SUBDIRS += plugins/imfile
endif
if ENABLE_MAIL
SUBDIRS += plugins/ommail
endif