X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=Makefile;h=386856f9f5161848a9fba7e446860728e3b8682b;hb=bac061a165dc6a98ca31ae170c556aa8c89bb45e;hp=4b5f24efe94ccc05895e591bfbf8b8904269245a;hpb=9b171f4656b61d023c327af3d0b4de22eee37353;p=urcu.git diff --git a/Makefile b/Makefile index 4b5f24e..386856f 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,24 @@ -CFLAGS=-Wall -O2 +CFLAGS=-Wall -O2 -g +LDFLAGS=-lpthread + #debug #CFLAGS=-Wall -g -LDFLAGS=-lpthread +#CFLAGS+=-DDEBUG_FULL_MB SRC_DEP=`echo $^ | sed 's/[^ ]*.h//g'` all: test_urcu test_urcu_timing test_rwlock_timing test_urcu_yield urcu-asm.S \ urcu-asm.o urcutorture urcutorture-yield +pthreads-x86: clean + cp api_x86.h api.h + cp arch_x86.h arch.h + +pthreads-ppc: clean + cp api_ppc.h api.h + cp arch_ppc.h arch.h + test_urcu: urcu.o test_urcu.c urcu.h $(CC) ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP) @@ -43,4 +53,4 @@ urcutorture-yield: urcutorture.c urcu-yield.o urcu.h rcutorture.h clean: rm -f *.o test_urcu test_urcu_timing test_rwlock_timing urcu-asm.S \ - test_urcu_yield + test_urcu_yield urcutorture urcutorture-yield