summaryrefslogtreecommitdiff
path: root/sysinfo/host/native.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-10-29 13:58:33 -0400
committermidipix <writeonce@midipix.org>2016-10-31 14:57:14 -0400
commit8be3778f436d9e60d9e33bc7bbd07a1453ecd1f6 (patch)
tree9a521176bbe2505810f895b4ef6be15922585c24 /sysinfo/host/native.mk
parent5c577bdd1f6ecc2b76d125b5af69177467c8d2f3 (diff)
downloadbfirm-8be3778f436d9e60d9e33bc7bbd07a1453ecd1f6.tar.bz2
bfirm-8be3778f436d9e60d9e33bc7bbd07a1453ecd1f6.tar.xz
build system: 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