Blame src/Makefile.am

Packit 1422b7
# Uncomment for debugging
Packit 1422b7
DEBUG = -g
Packit 1422b7
PTHREADS_CFLAGS = -pthread
Packit 1422b7
Packit 1422b7
#CFLAGS += $(DEBUG)
Packit 1422b7
Packit 1422b7
# we need to clean the normalizer up once we have reached a decent
Packit 1422b7
# milestone (latest at initial release!)
Packit 1422b7
bin_PROGRAMS = lognormalizer
Packit 1422b7
lognormalizer_SOURCES = lognormalizer.c
Packit 1422b7
lognormalizer_CPPFLAGS =  -I$(top_srcdir) $(WARN_CFLAGS) $(JSON_C_CFLAGS) $(LIBESTR_CFLAGS)
Packit 1422b7
lognormalizer_LDADD = $(JSON_C_LIBS) $(LIBLOGNORM_LIBS) $(LIBESTR_LIBS) ../compat/compat.la 
Packit 1422b7
lognormalizer_DEPENDENCIES = liblognorm.la
Packit 1422b7
Packit 1422b7
check_PROGRAMS = ln_test
Packit 1422b7
ln_test_SOURCES = $(lognormalizer_SOURCES)
Packit 1422b7
ln_test_CPPFLAGS = $(lognormalizer_CPPFLAGS)
Packit 1422b7
ln_test_LDADD = $(lognormalizer_LDADD)
Packit 1422b7
ln_test_DEPENDENCIES = $(lognormalizer_DEPENDENCIES)
Packit 1422b7
ln_test_LDFLAGS = -no-install
Packit 1422b7
Packit 1422b7
lib_LTLIBRARIES = liblognorm.la
Packit 1422b7
Packit 1422b7
liblognorm_la_SOURCES = \
Packit 1422b7
	liblognorm.c \
Packit 1422b7
	pdag.c \
Packit 1422b7
	annot.c \
Packit 1422b7
	samp.c \
Packit 1422b7
	lognorm.c \
Packit 1422b7
	parser.c \
Packit 1422b7
	enc_syslog.c \
Packit 1422b7
	enc_csv.c \
Packit 1422b7
	enc_xml.c
Packit 1422b7
Packit 1422b7
# Users violently requested that v2 shall be able to understand v1
Packit 1422b7
# rulebases. As both are very very different, we now include the
Packit 1422b7
# full v1 engine for this purpose. This here is what does this.
Packit 1422b7
# see also: https://github.com/rsyslog/liblognorm/issues/103
Packit 1422b7
liblognorm_la_SOURCES += \
Packit 1422b7
	v1_liblognorm.c \
Packit 1422b7
	v1_parser.c \
Packit 1422b7
	v1_ptree.c \
Packit 1422b7
	v1_samp.c
Packit 1422b7
Packit 1422b7
liblognorm_la_CPPFLAGS = $(JSON_C_CFLAGS) $(WARN_CFLAGS) $(LIBESTR_CFLAGS) $(PCRE_CFLAGS)
Packit 1422b7
liblognorm_la_LIBADD = $(rt_libs) $(JSON_C_LIBS) $(LIBESTR_LIBS) $(PCRE_LIBS) -lestr
Packit 1422b7
# info on version-info:
Packit 1422b7
# http://www.gnu.org/software/libtool/manual/html_node/Updating-version-info.html
Packit 1422b7
# Note: v2 now starts at version 5, as v1 previously also had 4
Packit 1422b7
liblognorm_la_LDFLAGS = -version-info 6:0:1
Packit 1422b7
Packit 1422b7
EXTRA_DIST = \
Packit 1422b7
	internal.h \
Packit 1422b7
	liblognorm.h \
Packit 1422b7
	lognorm.h \
Packit 1422b7
	pdag.h \
Packit 1422b7
	annot.h \
Packit 1422b7
	samp.h \
Packit 1422b7
	enc.h \
Packit 1422b7
	parser.h \
Packit 1422b7
	helpers.h
Packit 1422b7
Packit 1422b7
# and now the old cruft:
Packit 1422b7
EXTRA_DIST += \
Packit 1422b7
	v1_liblognorm.h \
Packit 1422b7
	v1_parser.h \
Packit 1422b7
	v1_samp.h \
Packit 1422b7
	v1_ptree.h
Packit 1422b7
Packit 1422b7
include_HEADERS = liblognorm.h samp.h lognorm.h pdag.h annot.h enc.h parser.h lognorm-features.h