Add rcu-reclaim.so library
[urcu.git] / tests / Makefile.inc
... / ...
CommitLineData
1
2include ../Makefile.build.inc
3
4ifeq ($(findstring ${ARCHTYPE},"x86 ppc"),)
5APIHEADER=api_gcc.h
6else
7APIHEADER=api_${ARCHTYPE}.h
8endif
9
10LIBDIR=..
11
12CFLAGS+=-I ${LIBDIR}
13
14URCU_SIGNAL=${LIBDIR}/urcu.o ${LIBDIR}/urcu.h
15URCU_SIGNAL_YIELD=${LIBDIR}/urcu-yield.o ${LIBDIR}/urcu.h
16URCU_MB=${LIBDIR}/urcu-mb.o ${LIBDIR}/urcu.h
17URCU_QSBR=${LIBDIR}/urcu-qsbr.o ${LIBDIR}/urcu-qsbr.h
18URCU_MB_RECLAIM=${LIBDIR}/urcu-mb.o ${LIBDIR}/urcu-reclaim.o ${LIBDIR}/urcu.h
19
20all: test_urcu test_urcu_dynamic_link test_urcu_timing \
21 test_rwlock_timing test_rwlock test_perthreadlock_timing \
22 test_perthreadlock test_urcu_yield test_urcu_mb \
23 urcu-asm.S test_qsbr_timing test_qsbr urcu-asm.o urcutorture \
24 urcutorture-yield test_mutex test_looplen test_urcu_gc \
25 test_urcu_gc_mb test_qsbr_gc test_qsbr_lgc test_urcu_lgc \
26 test_urcu_lgc_mb test_qsbr_dynamic_link test_urcu_mb_reclaim
27
28api.h: ${APIHEADER}
29 cp -f ${APIHEADER} api.h
30
31test_looplen: test_looplen.c ${LIBDIR}/urcu.h
32 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
33
34
35test_urcu: test_urcu.c ${URCU_SIGNAL}
36 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
37
38test_urcu_gc: test_urcu_gc.c ${URCU_SIGNAL}
39 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
40
41test_urcu_lgc: test_urcu_gc.c ${URCU_SIGNAL}
42 $(CC) -DTEST_LOCAL_GC ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
43
44
45test_urcu_mb: test_urcu.c ${URCU_MB}
46 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
47
48test_urcu_gc_mb: test_urcu_gc.c ${URCU_MB}
49 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
50
51test_urcu_lgc_mb: test_urcu_gc.c ${URCU_MB}
52 $(CC) -DTEST_LOCAL_GC -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
53
54test_urcu_mb_reclaim: test_urcu_reclaim.c ${URCU_MB_RECLAIM}
55 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
56
57
58test_qsbr: test_qsbr.c ${URCU_QSBR}
59 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
60
61test_qsbr_gc: test_qsbr_gc.c ${URCU_QSBR}
62 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
63
64test_qsbr_lgc: test_qsbr_gc.c ${URCU_QSBR}
65 $(CC) -DTEST_LOCAL_GC ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
66
67test_qsbr_dynamic_link: test_qsbr.c ${URCU_QSBR}
68 $(CC) ${CFLAGS} -DDYNAMIC_LINK_TEST $(LDFLAGS) -o $@ $(SRC_DEP)
69
70
71test_rwlock: test_rwlock.c ${URCU_SIGNAL}
72 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
73
74test_perthreadlock: test_perthreadlock.c ${URCU_SIGNAL}
75 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
76
77test_mutex: test_mutex.c ${URCU_SIGNAL}
78 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
79
80test_urcu_dynamic_link: test_urcu.c ${URCU_SIGNAL}
81 $(CC) ${CFLAGS} -DDYNAMIC_LINK_TEST $(LDFLAGS) -o $@ $(SRC_DEP)
82
83
84test_urcu_yield: test_urcu.c ${URCU_SIGNAL_YIELD}
85 $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
86
87test_urcu_timing: test_urcu_timing.c ${URCU_SIGNAL}
88 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
89
90test_qsbr_timing: test_qsbr_timing.c ${URCU_QSBR}
91 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
92
93test_rwlock_timing: test_rwlock_timing.c ${URCU_SIGNAL}
94 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
95
96test_perthreadlock_timing: test_perthreadlock_timing.c ${URCU_SIGNAL}
97 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
98
99urcu-asm.S: urcu-asm.c ${LIBDIR}/urcu.h
100 $(CC) ${CFLAGS} -S -o $@ $(SRC_DEP)
101
102urcu-asm.o: urcu-asm.c ${LIBDIR}/urcu.h
103 $(CC) ${CFLAGS} -c -o $@ $(SRC_DEP)
104
105urcutorture: urcutorture.c rcutorture.h api.h ${URCU_SIGNAL}
106 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
107
108urcutorture-yield: urcutorture.c ${URCU_SIGNAL_YIELD} rcutorture.h api.h
109 $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
110
111,PHONY: clean
112
113clean:
114 rm -f *.o test_urcu test_urcu_dynamic_link test_urcu_timing \
115 test_rwlock_timing test_rwlock test_perthreadlock_timing \
116 test_perthreadlock test_urcu_yield test_urcu_mb \
117 urcu-asm.S test_qsbr_timing test_qsbr urcutorture \
118 urcutorture-yield liburcu.so api.h \
119 test_mutex test_urcu_gc test_urcu_gc_mb urcu-asm-1.S \
120 test_qsbr_lgc test_qsbr_gc test_looplen test_urcu_lgc \
121 test_urcu_lgc_mb
This page took 0.022465 seconds and 4 git commands to generate.