build: compile the c-rbtree library

This commit is contained in:
Beniamino Galvani 2018-09-04 10:50:40 +02:00
parent 51776b297e
commit 88072c6621
2 changed files with 29 additions and 0 deletions

View file

@ -1347,6 +1347,22 @@ shared_libcsiphash_la_SOURCES = \
###############################################################################
noinst_LTLIBRARIES += shared/libcrbtree.la
shared_libcrbtree_la_CFLAGS = $(AM_CFLAGS) -std=c11
shared_libcrbtree_la_CPPFLAGS = \
$(CODE_COVERAGE_CFLAGS) \
$(SANITIZER_LIB_CFLAGS) \
$(NULL)
shared_libcrbtree_la_SOURCES = \
shared/c-rbtree/src/c-rbtree.c \
shared/c-rbtree/src/c-rbtree.h \
shared/c-rbtree/src/c-rbtree-private.h
###############################################################################
noinst_LTLIBRARIES += shared/libnacd.la
shared_libnacd_la_CFLAGS = -std=gnu99

View file

@ -10,6 +10,19 @@ shared_c_siphash_dep = declare_dependency(
link_with: shared_c_siphash,
)
shared_c_rbtree = static_library(
'c-rbtree',
c_args: '-std=c11',
sources: files('c-rbtree/src/c-rbtree.c',
'c-rbtree/src/c-rbtree.h',
'c-rbtree/src/c-rbtree-private.h'),
)
shared_c_rbtree_dep = declare_dependency(
include_directories: shared_inc,
link_with: shared_c_rbtree,
)
shared_n_acd = static_library(
'n-acd',
sources: 'n-acd/src/n-acd.c',