X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=Makefile;h=70709acad6eb8575c650dc6da9878dd5e1e306dc;hb=2d6debff95ad695255d2ea9d590d1e418590b238;hp=4b5f24efe94ccc05895e591bfbf8b8904269245a;hpb=9b171f4656b61d023c327af3d0b4de22eee37353;p=urcu.git diff --git a/Makefile b/Makefile index 4b5f24e..70709ac 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)