summaryrefslogtreecommitdiffhomepage
path: root/sysinfo/host/native.mk
blob: 97fcb14338846a9262f6a401f35406a7a5a74fa0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
include $(PROJECT_DIR)/sysinfo/os/$(BUILD_OS).mk

CC 		= $(BUILD_CC)
OS 		= $(BUILD_OS)
HOST_BITS 	= $(BUILD_OS_BITS)
HOST_UNDERSCORE = $(BUILD_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