summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/host/native.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2017-11-18 03:27:43 +0000
committermidipix <writeonce@midipix.org>2017-11-18 18:16:36 -0500
commitea5470e0a34f7154531b857413b39b25588193e8 (patch)
tree1e78107234842510f439a7ca1c9efbc36072cca2 /sysinfo/host/native.mk
parentb6c684b4f6323104fac9c8f8ec9be6f6856e904e (diff)
downloadw32lib-ea5470e0a34f7154531b857413b39b25588193e8.tar.bz2
w32lib-ea5470e0a34f7154531b857413b39b25588193e8.tar.xz
created skeleton.
Diffstat (limited to 'sysinfo/host/native.mk')
-rw-r--r--sysinfo/host/native.mk45
1 files changed, 45 insertions, 0 deletions
diff --git a/sysinfo/host/native.mk b/sysinfo/host/native.mk
new file mode 100644
index 0000000..f0cf720
--- /dev/null
+++ b/sysinfo/host/native.mk
@@ -0,0 +1,45 @@
+include $(PROJECT_DIR)/sysinfo/os/$(NATIVE_OS).mk
+
+OS = $(NATIVE_OS)
+HOST_BITS = $(NATIVE_OS_BITS)
+HOST_UNDERSCORE = $(NATIVE_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