summaryrefslogtreecommitdiff
path: root/lib/util/Makemodule.am
blob: 9578fb207ec9ba5b46862959ac30e455a1bfb083 (plain)
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
libutil_a_SOURCES = include/util/util.h include/util/str_table.h
libutil_a_SOURCES += include/util/hash_table.h include/util/test.h
libutil_a_SOURCES += lib/util/str_table.c lib/util/alloc.c
libutil_a_SOURCES += lib/util/rbtree.c include/util/rbtree.h
libutil_a_SOURCES += lib/util/array.c include/util/array.h
libutil_a_SOURCES += lib/util/xxhash.c lib/util/hash_table.c
libutil_a_SOURCES += lib/util/fast_urem_by_const.h
libutil_a_SOURCES += include/util/threadpool.h
libutil_a_SOURCES += include/util/w32threadwrap.h
libutil_a_SOURCES += lib/util/threadpool_serial.c
libutil_a_SOURCES += lib/util/is_memory_zero.c
libutil_a_CFLAGS = $(AM_CFLAGS)
libutil_a_CPPFLAGS = $(AM_CPPFLAGS)

if WINDOWS
libutil_a_CFLAGS += -DWINVER=0x0600 -D_WIN32_WINNT=0x0600
endif

if HAVE_PTHREAD
libutil_a_SOURCES += lib/util/threadpool.c
libutil_a_CFLAGS += $(PTHREAD_CFLAGS)
else
if WINDOWS
libutil_a_SOURCES += lib/util/threadpool.c
else
libutil_a_CPPFLAGS += -DNO_THREAD_IMPL
endif
endif

if CUSTOM_ALLOC
libutil_a_SOURCES += lib/util/mempool.c include/util/mempool.h
endif

noinst_LIBRARIES += libutil.a