mirror of
https://github.com/rsyslog/rsyslog.git
synced 2025-12-17 15:10:42 +01:00
When using --disable-libcurl, libgrammar should not be linked against libcurl unconditionally as CURL_LIBS might be set if one of the modules using libcurl, like elasticsearch, is enabled.
25 lines
632 B
Makefile
25 lines
632 B
Makefile
BUILT_SOURCES = grammar.h
|
|
CLEANFILES = grammar.h grammar.c lexer.c
|
|
AM_YFLAGS = -d
|
|
noinst_LTLIBRARIES = libgrammar.la
|
|
#bin_PROGRAMS = testdriver # TODO: make this conditional
|
|
|
|
libgrammar_la_SOURCES = \
|
|
grammar.y \
|
|
lexer.l \
|
|
rainerscript.c \
|
|
rainerscript.h \
|
|
parserif.h \
|
|
grammar.h
|
|
libgrammar_la_CPPFLAGS = $(RSRT_CFLAGS) $(LIBLOGGING_STDLOG_CFLAGS)
|
|
libgrammar_la_LIBADD =
|
|
if ENABLE_LIBCURL
|
|
libgrammar_la_CPPFLAGS += $(CURL_CFLAGS)
|
|
libgrammar_la_LIBADD += $(CURL_LIBS)
|
|
endif
|
|
|
|
#testdriver_SOURCES = testdriver.c libgrammar.la
|
|
#testdriver_CPPFLAGS = $(RSRT_CFLAGS)
|
|
#testdriver_LDADD = libgrammar.la
|
|
#testdriver_LDFLAGS = -lestr
|