X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=Makefile;h=20024c65496296734699abc6e9a7954414120bb5;hb=41e6b690646e062c78616bf9900a883e7ecced59;hp=5842b26872fae87e71681c4e67a6c0bcb8ae8dd0;hpb=121a5d44c8cc7197116df73854cb94c6cfbad0b0;p=urcu.git diff --git a/Makefile b/Makefile index 5842b26..20024c6 100644 --- a/Makefile +++ b/Makefile @@ -11,10 +11,15 @@ LDFLAGS=-lpthread SRC_DEP=`echo $^ | sed 's/[^ ]*.h//g'` -all: test_urcu test_urcu_dynamic_link test_urcu_timing \ +all: arch-api test_urcu test_urcu_dynamic_link test_urcu_timing \ test_rwlock_timing test_urcu_yield urcu-asm.S \ urcu-asm.o urcutorture urcutorture-yield liburcu.so +arch-api: api.h arch.h + # Run either make pthreads-x86 or make pthreads-ppc prior to build + # the RCU library. Architecture auto-detectection not implemented + # in the build system yet. + pthreads-x86: clean cp api_x86.h api.h cp arch_x86.h arch.h @@ -59,7 +64,7 @@ urcutorture: urcutorture.c urcu.o urcu.h rcutorture.h urcutorture-yield: urcutorture.c urcu-yield.o urcu.h rcutorture.h $(CC) -DDEBUG_YIELD ${CFLAGS} $(LDFLAGS) -o $@ $(SRC_DEP) -.PHONY: clean install +.PHONY: clean install arch-api install: liburcu.so cp -f liburcu.so /usr/lib/ @@ -67,4 +72,5 @@ install: liburcu.so clean: rm -f *.o test_urcu test_urcu_timing test_rwlock_timing urcu-asm.S \ - test_urcu_yield urcutorture urcutorture-yield + test_urcu_yield urcutorture urcutorture-yield liburcu.so \ + test_urcu_dynamic_link api.h arch.h