TRACE_LEVEL=@TRACE_VAR@ DEFAULT_CONF_DIR=@elapiconfdir@ DEFAULT_CONF_APP_DIR=@elapiconfappdir@ APP_NAME=@appname@ APP_NAME_SIZE=@appnamesize@ SUBDIRS = elapi_test topdir=$(srcdir)/.. prvdrdir=$(srcdir)/providers AM_CFLAGS = \ -DELAPI_DEFAULT_CONFIG_DIR=\"$(DEFAULT_CONF_DIR)\" \ -DELAPI_DEFAULT_CONFIG_APP_DIR=\"$(DEFAULT_CONF_APP_DIR)\" \ -DELAPI_DEFAULT_APP_NAME=\"$(APP_NAME)\" \ -DELAPI_DEFAULT_APP_NAME_SIZE=$(APP_NAME_SIZE) if HAVE_GCC AM_CFLAGS += \ -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual \ -Wcast-align -Wwrite-strings endif AM_CPPFLAGS = -I$(topdir) -I$(topdir)/ini -I$(topdir)/trace -I$(topdir)/collection \ -I$(topdir)/elapi/providers/file $(TRACE_LEVEL) ACLOCAL_AMFLAGS = -I m4 # Set up the pkg-config file pkgconfigdir = $(libdir)/pkgconfig dist_noinst_DATA = \ elapi.pc \ m4 # Build libraries noinst_LTLIBRARIES = libelapibasic.la libprovider.la libelapi.la libelapibasic_la_SOURCES = \ elapi_basic.c \ elapi_basic.h libprovider_la_SOURCES = \ $(prvdrdir)/file/file_provider.c \ $(prvdrdir)/file/file_provider.h \ $(prvdrdir)/file/file_util.c \ $(prvdrdir)/file/file_util.h \ $(prvdrdir)/file/file_fmt_csv.c \ $(prvdrdir)/file/file_fmt_csv.h libelapi_la_SOURCES = \ elapi_event.c \ elapi_log.c \ elapi_internal.c \ elapi_sink.c \ elapi_resolve.c \ elapi_async.c \ elapi_subst.c \ elapi_ioctl.c \ elapi_event.h \ elapi_priv.h \ elapi_sink.h \ elapi_log.h \ elapi_async.h \ elapi_net.h \ elapi_ioctl.h \ elapi_fd.h \ elapi_tm.h \ elapi_defines.h \ elapi.h libelapi_la_LIBADD = libprovider.la libelapibasic.la tests: all for subdir in $(SUBDIRS); do \ $(MAKE) -C $$subdir $@; \ done