Commit | Line | Data |
---|---|---|
27b012e2 | 1 | |
bb488185 MD |
2 | CFLAGS=-Wall -O2 -g |
3 | LDFLAGS=-lpthread | |
4 | ||
20bf310a MD |
5 | #debug |
6 | #CFLAGS=-Wall -g | |
bb488185 | 7 | #CFLAGS+=-DDEBUG_FULL_MB |
20bf310a MD |
8 | |
9 | SRC_DEP=`echo $^ | sed 's/[^ ]*.h//g'` | |
10 | ||
1430ee0b | 11 | all: test_urcu test_urcu_timing test_rwlock_timing test_urcu_yield urcu-asm.S \ |
9b171f46 | 12 | urcu-asm.o urcutorture urcutorture-yield |
20bf310a | 13 | |
1430ee0b | 14 | test_urcu: urcu.o test_urcu.c urcu.h |
20bf310a MD |
15 | $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP) |
16 | ||
1430ee0b | 17 | test_urcu_yield: urcu-yield.o test_urcu.c urcu.h |
cf380c2f MD |
18 | $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP) |
19 | ||
1430ee0b | 20 | test_urcu_timing: urcu.o test_urcu_timing.c urcu.h |
20bf310a MD |
21 | $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP) |
22 | ||
1430ee0b | 23 | test_rwlock_timing: urcu.o test_rwlock_timing.c urcu.h |
20bf310a | 24 | $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP) |
27b012e2 MD |
25 | |
26 | urcu.o: urcu.c urcu.h | |
20bf310a | 27 | $(CC) ${CFLAGS} $(LDFLAGS) -c -o $@ $(SRC_DEP) |
c777f0b1 | 28 | |
cf380c2f MD |
29 | urcu-yield.o: urcu.c urcu.h |
30 | $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -c -o $@ $(SRC_DEP) | |
31 | ||
1430ee0b MD |
32 | urcu-asm.S: urcu-asm.c urcu.h |
33 | $(CC) ${CFLAGS} -S -o $@ $(SRC_DEP) | |
34 | ||
35 | urcu-asm.o: urcu-asm.c urcu.h | |
36 | $(CC) ${CFLAGS} -c -o $@ $(SRC_DEP) | |
37 | ||
e7b43771 | 38 | urcutorture: urcutorture.c urcu.o urcu.h rcutorture.h |
e462817e MD |
39 | $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP) |
40 | ||
9b171f46 MD |
41 | urcutorture-yield: urcutorture.c urcu-yield.o urcu.h rcutorture.h |
42 | $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP) | |
43 | ||
c777f0b1 MD |
44 | .PHONY: clean |
45 | ||
46 | clean: | |
1430ee0b MD |
47 | rm -f *.o test_urcu test_urcu_timing test_rwlock_timing urcu-asm.S \ |
48 | test_urcu_yield |