Add barriers
[urcu.git] / Makefile
CommitLineData
27b012e2 1
bb488185
MD
2CFLAGS=-Wall -O2 -g
3LDFLAGS=-lpthread
4
20bf310a
MD
5#debug
6#CFLAGS=-Wall -g
bb488185 7#CFLAGS+=-DDEBUG_FULL_MB
20bf310a
MD
8
9SRC_DEP=`echo $^ | sed 's/[^ ]*.h//g'`
10
1430ee0b 11all: 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 14test_urcu: urcu.o test_urcu.c urcu.h
20bf310a
MD
15 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
16
1430ee0b 17test_urcu_yield: urcu-yield.o test_urcu.c urcu.h
cf380c2f
MD
18 $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
19
1430ee0b 20test_urcu_timing: urcu.o test_urcu_timing.c urcu.h
20bf310a
MD
21 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
22
1430ee0b 23test_rwlock_timing: urcu.o test_rwlock_timing.c urcu.h
20bf310a 24 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
27b012e2
MD
25
26urcu.o: urcu.c urcu.h
20bf310a 27 $(CC) ${CFLAGS} $(LDFLAGS) -c -o $@ $(SRC_DEP)
c777f0b1 28
cf380c2f
MD
29urcu-yield.o: urcu.c urcu.h
30 $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -c -o $@ $(SRC_DEP)
31
1430ee0b
MD
32urcu-asm.S: urcu-asm.c urcu.h
33 $(CC) ${CFLAGS} -S -o $@ $(SRC_DEP)
34
35urcu-asm.o: urcu-asm.c urcu.h
36 $(CC) ${CFLAGS} -c -o $@ $(SRC_DEP)
37
e7b43771 38urcutorture: urcutorture.c urcu.o urcu.h rcutorture.h
e462817e
MD
39 $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP)
40
9b171f46
MD
41urcutorture-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
46clean:
1430ee0b
MD
47 rm -f *.o test_urcu test_urcu_timing test_rwlock_timing urcu-asm.S \
48 test_urcu_yield
This page took 0.025568 seconds and 4 git commands to generate.