Add test for rcu_assign_pointer()
[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_DEFER=${LIBDIR}/urcu-mb.o ${LIBDIR}/urcu-defer.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_defer \
27 test_uatomic test_urcu_assign test_urcu_assign_dynamic_link
28
29 api.h: ${APIHEADER}
30 cp -f ${APIHEADER} api.h
31
32 test_looplen: test_looplen.c ${LIBDIR}/urcu.h
33 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
34
35
36 test_urcu: test_urcu.c ${URCU_SIGNAL}
37 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
38
39 test_urcu_gc: test_urcu_gc.c ${URCU_SIGNAL}
40 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
41
42 test_urcu_lgc: test_urcu_gc.c ${URCU_SIGNAL}
43 $(CC) -DTEST_LOCAL_GC ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
44
45 test_urcu_assign: test_urcu_assign.c ${URCU_SIGNAL}
46 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
47
48 test_urcu_assign_dynamic_link: test_urcu.c ${URCU_SIGNAL}
49 $(CC) ${CFLAGS} -DDYNAMIC_LINK_TEST $(LDFLAGS) -o $@ $(SRC_DEP)
50
51
52 test_urcu_mb: test_urcu.c ${URCU_MB}
53 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
54
55 test_urcu_gc_mb: test_urcu_gc.c ${URCU_MB}
56 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
57
58 test_urcu_lgc_mb: test_urcu_gc.c ${URCU_MB}
59 $(CC) -DTEST_LOCAL_GC -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
60
61 test_urcu_mb_defer: test_urcu_defer.c ${URCU_MB_DEFER}
62 $(CC) -DURCU_MB ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
63
64
65 test_qsbr: test_qsbr.c ${URCU_QSBR}
66 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
67
68 test_qsbr_gc: test_qsbr_gc.c ${URCU_QSBR}
69 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
70
71 test_qsbr_lgc: test_qsbr_gc.c ${URCU_QSBR}
72 $(CC) -DTEST_LOCAL_GC ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
73
74 test_qsbr_dynamic_link: test_qsbr.c ${URCU_QSBR}
75 $(CC) ${CFLAGS} -DDYNAMIC_LINK_TEST $(LDFLAGS) -o $@ $(SRC_DEP)
76
77
78 test_rwlock: test_rwlock.c ${URCU_SIGNAL}
79 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
80
81 test_perthreadlock: test_perthreadlock.c ${URCU_SIGNAL}
82 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
83
84 test_mutex: test_mutex.c ${URCU_SIGNAL}
85 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
86
87 test_urcu_dynamic_link: test_urcu.c ${URCU_SIGNAL}
88 $(CC) ${CFLAGS} -DDYNAMIC_LINK_TEST $(LDFLAGS) -o $@ $(SRC_DEP)
89
90
91 test_urcu_yield: test_urcu.c ${URCU_SIGNAL_YIELD}
92 $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
93
94 test_urcu_timing: test_urcu_timing.c ${URCU_SIGNAL}
95 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
96
97 test_qsbr_timing: test_qsbr_timing.c ${URCU_QSBR}
98 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
99
100 test_rwlock_timing: test_rwlock_timing.c ${URCU_SIGNAL}
101 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
102
103 test_perthreadlock_timing: test_perthreadlock_timing.c ${URCU_SIGNAL}
104 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
105
106 urcu-asm.S: urcu-asm.c ${LIBDIR}/urcu.h
107 $(CC) ${CFLAGS} -S -o $@ $(SRC_DEP)
108
109 urcu-asm.o: urcu-asm.c ${LIBDIR}/urcu.h
110 $(CC) ${CFLAGS} -c -o $@ $(SRC_DEP)
111
112 urcutorture: urcutorture.c rcutorture.h api.h ${URCU_SIGNAL}
113 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
114
115 urcutorture-yield: urcutorture.c ${URCU_SIGNAL_YIELD} rcutorture.h api.h
116 $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
117
118 test_uatomic: test_uatomic.c ../urcu/arch_uatomic.h
119 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
120
121 ,PHONY: clean
122
123 clean:
124 rm -f *.o test_urcu test_urcu_dynamic_link test_urcu_timing \
125 test_rwlock_timing test_rwlock test_perthreadlock_timing \
126 test_perthreadlock test_urcu_yield test_urcu_mb \
127 urcu-asm.S test_qsbr_timing test_qsbr urcutorture \
128 urcutorture-yield liburcu.so api.h \
129 test_mutex test_urcu_gc test_urcu_gc_mb urcu-asm-1.S \
130 test_qsbr_lgc test_qsbr_gc test_looplen test_urcu_lgc \
131 test_urcu_lgc_mb test_qsbr_dynamic_link test_urcu_mb_defer \
132 test_uatomic
This page took 0.04318 seconds and 4 git commands to generate.