summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/host
diff options
context:
space:
mode:
Diffstat (limited to 'sysinfo/host')
-rw-r--r--sysinfo/host/native.mk40
1 files changed, 40 insertions, 0 deletions
diff --git a/sysinfo/host/native.mk b/sysinfo/host/native.mk
index b697893..97fcb14 100644
--- a/sysinfo/host/native.mk
+++ b/sysinfo/host/native.mk
@@ -4,3 +4,43 @@ CC = $(BUILD_CC)
OS = $(BUILD_OS)
HOST_BITS = $(BUILD_OS_BITS)
HOST_UNDERSCORE = $(BUILD_OS_UNDERSCORE)
+
+ifeq ($(OS),linux)
+ ifeq ($(HOST_BITS),32)
+ ARCH = i386
+ else ifeq ($(HOST_BITS),64)
+ ARCH = x86_64
+ endif
+endif
+
+ifeq ($(OS),midipix)
+ ifeq ($(HOST_BITS),32)
+ ARCH = nt32
+ else ifeq ($(HOST_BITS),64)
+ ARCH = nt64
+ endif
+endif
+
+ifeq ($(OS),mingw)
+ ifeq ($(HOST_BITS),32)
+ ARCH = w32
+ else ifeq ($(HOST_BITS),64)
+ ARCH = w64
+ endif
+endif
+
+ifeq ($(OS),bsd)
+ ifeq ($(HOST_BITS),32)
+ ARCH = bsd32
+ else ifeq ($(HOST_BITS),64)
+ ARCH = bsd64
+ endif
+endif
+
+ifeq ($(OS),darwin)
+ ifeq ($(HOST_BITS),32)
+ ARCH = dw32
+ else ifeq ($(HOST_BITS),64)
+ ARCH = dw64
+ endif
+endif