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