-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.
+checkarch:
+ifeq (${ARCHTYPE},)
+ @echo "Architecture ${HOSTTYPE} is currently unsupported by liburcu"
+ @exit 1
+endif
+
+arch.h: arch_${ARCHTYPE}.h
+ cp -f arch_${ARCHTYPE}.h arch.h
+
+api.h: api_${ARCHTYPE}.h
+ cp -f api_${ARCHTYPE}.h api.h
+
+arch_atomic.h: arch_atomic_${ARCHTYPE}.h
+ cp -f arch_atomic_${ARCHTYPE}.h arch_atomic.h