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
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/
/*
* urcu-static.h
*
- * Userspace RCU header, to be included only in LGPL-compatible code.
+ * Userspace RCU header.
*
- * Copyright February 2009 - Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
+ * TO BE INCLUDED ONLY IN LGPL-COMPATIBLE CODE. See urcu.h for linking
+ * dynamically with the userspace rcu library.
*
- * Credits for Paul E. McKenney <paulmck@linux.vnet.ibm.com>
- * for inspiration coming from the Linux kernel RCU and rcu-preempt.
+ * Copyright (c) 2009 Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
+ * Copyright (c) 2009 Paul E. McKenney, IBM Corporation.
*
- * Distributed under LGPLv2.1
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2.1 of the License, or (at your option) any later version.
+ *
+ * This library is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* IBM's contributions to this file may be relicensed under LGPLv2 or later.
*/