Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only install public header files. #321

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 16 additions & 24 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,32 @@ lib_LTLIBRARIES = liblognorm.la
liblognorm_la_SOURCES = \
liblognorm.c \
pdag.c \
pdag.h \
annot.c \
annot.h \
samp.c \
samp.h \
lognorm.c \
lognorm.h \
parser.c \
parser.h \
enc_syslog.c \
enc_csv.c \
enc_xml.c
enc_xml.c \
enc.h \
lognorm-features.h \
helpers.h \
internal.h

# Users violently requested that v2 shall be able to understand v1
# rulebases. As both are very very different, we now include the
# full v1 engine for this purpose. This here is what does this.
# see also: https://github.com/rsyslog/liblognorm/issues/103
liblognorm_la_SOURCES += \
v1_liblognorm.c \
v1_parser.c \
v1_ptree.c \
v1_samp.c
v1_liblognorm.c v1_liblognorm.h \
v1_parser.c v1_parser.h \
v1_ptree.c v1_ptree.h \
v1_samp.c v1_samp.h

liblognorm_la_CPPFLAGS = $(JSON_C_CFLAGS) $(WARN_CFLAGS) $(LIBESTR_CFLAGS) $(PCRE_CFLAGS)
liblognorm_la_LIBADD = $(rt_libs) $(JSON_C_LIBS) $(LIBESTR_LIBS) $(PCRE_LIBS) -lestr
Expand All @@ -49,22 +58,5 @@ liblognorm_la_LIBADD = $(rt_libs) $(JSON_C_LIBS) $(LIBESTR_LIBS) $(PCRE_LIBS) -l
# Note: v2 now starts at version 5, as v1 previously also had 4
liblognorm_la_LDFLAGS = -version-info 6:0:1

EXTRA_DIST = \
internal.h \
liblognorm.h \
lognorm.h \
pdag.h \
annot.h \
samp.h \
enc.h \
parser.h \
helpers.h

# and now the old cruft:
EXTRA_DIST += \
v1_liblognorm.h \
v1_parser.h \
v1_samp.h \
v1_ptree.h

include_HEADERS = liblognorm.h samp.h lognorm.h pdag.h annot.h enc.h parser.h lognorm-features.h
# Public API
include_HEADERS = liblognorm.h