projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix precompiler error in arch_*.h, add arch-api test
[urcu.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 1965a775b0cc97fc2295e8b34942338ff3e3bd58..20024c65496296734699abc6e9a7954414120bb5 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-11,10
+11,15
@@
LDFLAGS=-lpthread
SRC_DEP=`echo $^ | sed 's/[^ ]*.h//g'`
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
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
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)
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/
install: liburcu.so
cp -f liburcu.so /usr/lib/
This page took
0.023509 seconds
and
4
git commands to generate.