forked from open-switch/opx-logging
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
46 lines (32 loc) · 1.56 KB
/
Makefile.am
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = inc
#Script files
bin_SCRIPTS = src/opx_logging_cli
#Autogenerated files for this package
BUILT_SOURCES = $(top_srcdir)/src/event_log_levels.c
CLEANFILES = $(top_srcdir)/src/event_log_levels.c
$(top_srcdir)/src/event_log_levels.c : $(top_srcdir)/inc/opx/event_log_types.h
python $(top_srcdir)/src/enum_automation.py $(top_srcdir)/inc/opx/event_log_types.h $(top_srcdir)/inc/opx/event_log_utils.h $@
#The logging library
lib_LTLIBRARIES = libopx_logging.la
libopx_logging_la_SOURCES = src/event_log.c src/event_log_utils.c
nodist_libopx_logging_la_SOURCES= src/event_log_levels.c
libopx_logging_la_LDFLAGS = -lxml2 -lpthread -lrt -version-info 1:1:0
libopx_logging_la_CFLAGS = -I$(top_srcdir)/inc/opx -I$(includedir)/libxml2
#The CLI used to change levels at runtime
bin_PROGRAMS=opx_logging_cli_tool
opx_logging_cli_tool_SOURCES=src/event_log_cli.c
opx_logging_cli_tool_CFLAGS=-I$(top_srcdir)/inc/opx
opx_logging_cli_tool_LDFLAGS=
opx_logging_cli_tool_LDADD=libopx_logging.la
utdir = /usr/bin/tests
#ut_PROGRAMS = event_log_unittest
#event_log_unittest_SOURCES = src/unit_test/event_log_unittest.cpp
#event_log_unittest_CPPFLAGS = -I$(top_srcdir)/opx
#event_log_unittest_LDFLAGS = -lgtest -lgtest_main -lpthread
#logging module
pyexec_LTLIBRARIES = event_log.la
event_log_la_LDFLAGS = -module -avoid-version
event_log_la_SOURCES = src/python_extension/event_log.c
event_log_la_CPPFLAGS=-I$(top_srcdir)/src/python_extension -I$(top_srcdir)/inc/opx -I$(includedir)/opx -I$(includedir)/python2.7
event_log_la_LIBADD=libopx_logging.la -lpython2.7