diff options
author | midipix <writeonce@midipix.org> | 2016-05-07 08:55:42 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2016-09-21 19:45:52 -0400 |
commit | ffea9c2724073e3b7d006f44670a32e625d5f5fb (patch) | |
tree | c5d854d5a709af9270a8995c7fc603326057f278 /sysinfo/host/native.mk | |
parent | 46cec9a261badf148df3409252d15c8d6aea9d6a (diff) | |
download | bcparser-ffea9c2724073e3b7d006f44670a32e625d5f5fb.tar.bz2 bcparser-ffea9c2724073e3b7d006f44670a32e625d5f5fb.tar.xz |
build system: switch: added skeleton.
Diffstat (limited to 'sysinfo/host/native.mk')
-rw-r--r-- | sysinfo/host/native.mk | 45 |
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 |