diff options
author | midipix <writeonce@midipix.org> | 2015-11-28 05:08:48 -0500 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-11-28 05:30:31 -0500 |
commit | 52d60ddf8ef31cdfa2c014e24733cd9bf8333564 (patch) | |
tree | 22874d286222b389b3123a4665680b771e8c4765 /sysinfo/host/native.mk | |
parent | 742443424b7fd3f972e72e6bc4e9ca39d344abcb (diff) | |
download | ntcon-52d60ddf8ef31cdfa2c014e24733cd9bf8333564.tar.bz2 ntcon-52d60ddf8ef31cdfa2c014e24733cd9bf8333564.tar.xz |
initial commit.
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..08b02b6 --- /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 |