summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/host/native.mk
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-09-25 22:17:03 -0400
committermidipix <writeonce@midipix.org>2015-09-26 11:10:25 -0400
commit18eb4842536d1c9df278e7f65c16ce5679b99d39 (patch)
tree8ba10e3d909ead6f145d442342fed5cfa6277e6f /sysinfo/host/native.mk
parent712b5fd9b720c18cc53d5627566525b96da3163f (diff)
downloadpemagine-18eb4842536d1c9df278e7f65c16ce5679b99d39.tar.bz2
pemagine-18eb4842536d1c9df278e7f65c16ce5679b99d39.tar.xz
makefile replacement: step 2/2: use the midipix build template.
Diffstat (limited to 'sysinfo/host/native.mk')
-rw-r--r--sysinfo/host/native.mk46
1 files changed, 46 insertions, 0 deletions
diff --git a/sysinfo/host/native.mk b/sysinfo/host/native.mk
new file mode 100644
index 0000000..465a01b
--- /dev/null
+++ b/sysinfo/host/native.mk
@@ -0,0 +1,46 @@
+include $(PROJECT_DIR)/sysinfo/os/$(NATIVE_OS).mk
+
+CC = $(CROSS_COMPILE)$(NATIVE_CC)
+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