Add S390 support
authorJan Blunck <jblunck@suse.de>
Wed, 17 Jun 2009 11:40:38 +0000 (13:40 +0200)
committerJan Blunck <jblunck@suse.de>
Mon, 29 Jun 2009 09:47:22 +0000 (11:47 +0200)
This patch adds support for the S390 architecture.

Signed-off-by: Jan Blunck <jblunck@suse.de>
Makefile

index c46a3f96d01f009a07bcaf0d07f43cae6d185aef..658a7fb5b57b9326217232eb3b1ca07a7f6c162d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -19,6 +19,18 @@ endif
 ifeq ("${HOSTTYPE}","ppc64")
 ARCHTYPE=ppc
 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
 
 #debug
 #CFLAGS=-Wall -g
@@ -46,8 +58,8 @@ endif
 arch.h: arch_${ARCHTYPE}.h
        cp -f arch_${ARCHTYPE}.h arch.h
 
 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
 
 arch_atomic.h: arch_atomic_${ARCHTYPE}.h
        cp -f arch_atomic_${ARCHTYPE}.h arch_atomic.h
This page took 0.026174 seconds and 4 git commands to generate.