summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 55da9a2f989e35ea0c37d8cc163d557e2f8f2ac6 (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
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
EXTRA_DIST =
MOSTLYCLEANFILES =

AM_CPPFLAGS = \
	-pipe \
	-std=gnu99 \
	-imacros config.h \
	-I$(top_srcdir)

AM_CFLAGS = \
	-Wall \
	-Wextra \
	-Wmissing-prototypes

lib_LTLIBRARIES = librbraun.la

librbraun_la_SOURCES = \
	avltree.c \
	avltree.h \
	avltree_i.h \
	cpu.h \
	error.c \
	error.h \
	hash.h \
	list.c \
	list.h \
	macros.h \
	mem.c \
	mem.h \
	mem_malloc.c \
	mem_malloc.h \
	phys.c \
	phys.h \
	rbtree.c \
	rbtree.h \
	rbtree_i.h \
	rdxtree.c \
	rdxtree.h \
	xprintf.c \
	xprintf.h
librbraun_la_LIBADD = -lrt -lpthread

bin_PROGRAMS = \
	test_avltree \
	test_mem \
	test_mem_cache \
	test_mem_cache_invalid_free \
	test_mem_cache_double_free \
	test_mem_cache_write_free \
	test_mem_cache_write_beyond \
	test_mem_cache_write_buftag \
	test_mem_offbyone \
	test_phys \
	test_rbtree \
	test_rdxtree \
	test_xprintf

test_avltree_SOURCES = test/test_avltree.c
test_avltree_LDADD = librbraun.la

test_mem_SOURCES = test/test_mem.c
test_mem_LDADD = librbraun.la

test_mem_cache_SOURCES = test/test_mem_cache.c
test_mem_cache_LDADD = -lrt -lpthread

test_mem_cache_invalid_free_SOURCES = test/test_mem_cache_invalid_free.c
test_mem_cache_invalid_free_LDADD = librbraun.la

test_mem_cache_double_free_SOURCES = test/test_mem_cache_double_free.c
test_mem_cache_double_free_LDADD = librbraun.la

test_mem_cache_write_free_SOURCES = test/test_mem_cache_write_free.c
test_mem_cache_write_free_LDADD = librbraun.la

test_mem_cache_write_beyond_SOURCES = test/test_mem_cache_write_beyond.c
test_mem_cache_write_beyond_LDADD = librbraun.la

test_mem_cache_write_buftag_SOURCES = test/test_mem_cache_write_buftag.c
test_mem_cache_write_buftag_LDADD = librbraun.la

test_mem_offbyone_SOURCES = test/test_mem_offbyone.c
test_mem_offbyone_LDADD = librbraun.la

test_phys_SOURCES = test/test_phys.c
test_phys_LDADD = -lrt -lpthread

test_rbtree_SOURCES = test/test_rbtree.c
test_rbtree_LDADD = librbraun.la

test_rdxtree_SOURCES = test/test_rdxtree.c
test_rdxtree_LDADD = -lrt -lpthread

test_xprintf_SOURCES = test/test_xprintf.c
test_xprintf_CFLAGS = $(AM_CFLAGS) -Wno-format
test_xprintf_LDADD = librbraun.la