From: Jan Blunck Date: Wed, 17 Jun 2009 11:40:38 +0000 (+0200) Subject: Add S390 support X-Git-Tag: v0.1~109 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=98dcc5ca0ba740c56ecbc1f1c9d2977ef1b2a969;p=userspace-rcu.git Add S390 support This patch adds support for the S390 architecture. Signed-off-by: Jan Blunck --- diff --git a/Makefile b/Makefile index c46a3f9..658a7fb 100644 --- a/Makefile +++ b/Makefile @@ -19,6 +19,18 @@ endif ifeq ("${HOSTTYPE}","ppc64") ARCHTYPE=ppc endif +ifeq ("${HOSTTYPE}","s390") +ARCHTYPE=s390 +endif +ifeq ("${HOSTTYPE}","s390x") +ARCHTYPE=s390 +endif + +ifeq ($(findstring ${ARCHTYPE},"x86 ppc"),) +APIHEADER=api_gcc.h +else +APIHEADER=api_${ARCHTYPE}.h +endif #debug #CFLAGS=-Wall -g @@ -46,8 +58,8 @@ 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 +api.h: ${APIHEADER} + cp -f ${APIHEADER} api.h arch_atomic.h: arch_atomic_${ARCHTYPE}.h cp -f arch_atomic_${ARCHTYPE}.h arch_atomic.h