forked from WizardMac/librdata
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
65 lines (51 loc) · 1.32 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
AUTOMAKE_OPTIONS = foreign dist-zip
lib_LTLIBRARIES = librdata.la
librdata_la_SOURCES = \
src/CKHashTable.c \
src/rdata_bits.c \
src/rdata_error.c \
src/rdata_io_unistd.c \
src/rdata_parser.c \
src/rdata_read.c \
src/rdata_write.c
librdata_la_LIBADD =
librdata_la_CFLAGS = -Os -Wall -Wstrict-prototypes
librdata_la_LDFLAGS = @EXTRA_LDFLAGS@
if HAVE_BZIP2
librdata_la_LIBADD += -lbz2
librdata_la_CFLAGS += -DHAVE_BZIP2
endif
if HAVE_ZLIB
librdata_la_LIBADD += -lz
librdata_la_CFLAGS += -DHAVE_ZLIB=1
endif
if HAVE_APPLE_COMPRESSION
librdata_la_LIBADD += -lcompression
librdata_la_CFLAGS += -DHAVE_APPLE_COMPRESSION=1
else
if HAVE_LZMA
librdata_la_LIBADD += -llzma
librdata_la_CFLAGS += -DHAVE_LZMA=1
endif
endif
include_HEADERS = src/rdata.h
noinst_HEADERS = \
src/CKHashTable.h \
src/rdata_bits.h \
src/rdata_internal.h \
src/rdata_io_unistd.h \
src/test/test_buffer.h \
src/test/test_buffer_io.h
check_PROGRAMS = test_rdata
test_rdata_SOURCES = \
src/test/test_buffer.c \
src/test/test_buffer_io.c \
src/test/test_rdata.c
test_rdata_LDADD = librdata.la
TESTS = test_rdata
if HAVE_FUZZER
noinst_PROGRAMS = fuzz_rdata
fuzz_rdata_SOURCES = src/fuzz/fuzz_rdata.c
fuzz_rdata_LDADD = librdata.la -lstdc++ -lFuzzer
fuzz_rdata_CFLAGS = -g -Wall @EXTRA_WARNINGS@ -Werror -pedantic-errors -std=c99 @SANITIZERS@
endif