firasuke / cross / slibtool

Forked from cross/slibtool a month ago
Clone

Blame sysinfo/host/native.mk

9ca8c4
include $(PROJECT_DIR)/sysinfo/os/$(NATIVE_OS).mk
9ca8c4
9ca8c4
OS		= $(NATIVE_OS)
9ca8c4
HOST_BITS	= $(NATIVE_OS_BITS)
9ca8c4
HOST_UNDERSCORE = $(NATIVE_OS_UNDERSCORE)
9ca8c4
9ca8c4
ifeq ($(OS),linux)
9ca8c4
	ifeq ($(HOST_BITS),32)
9ca8c4
		ARCH = i386
9ca8c4
	else ifeq ($(HOST_BITS),64)
9ca8c4
		ARCH = x86_64
9ca8c4
	endif
9ca8c4
endif
9ca8c4
9ca8c4
ifeq ($(OS),midipix)
9ca8c4
	ifeq ($(HOST_BITS),32)
9ca8c4
		ARCH = nt32
9ca8c4
	else ifeq ($(HOST_BITS),64)
9ca8c4
		ARCH = nt64
9ca8c4
	endif
9ca8c4
endif
9ca8c4
9ca8c4
ifeq ($(OS),mingw)
9ca8c4
	ifeq ($(HOST_BITS),32)
9ca8c4
		ARCH = w32
9ca8c4
	else ifeq ($(HOST_BITS),64)
9ca8c4
		ARCH = w64
9ca8c4
	endif
9ca8c4
endif
9ca8c4
9ca8c4
ifeq ($(OS),bsd)
9ca8c4
	ifeq ($(HOST_BITS),32)
9ca8c4
		ARCH = bsd32
9ca8c4
	else ifeq ($(HOST_BITS),64)
9ca8c4
		ARCH = bsd64
9ca8c4
	endif
9ca8c4
endif
9ca8c4
9ca8c4
ifeq ($(OS),darwin)
9ca8c4
	ifeq ($(HOST_BITS),32)
9ca8c4
		ARCH = dw32
9ca8c4
	else ifeq ($(HOST_BITS),64)
9ca8c4
		ARCH = dw64
9ca8c4
	endif
9ca8c4
endif