Rev 2479 | Rev 3794 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2479 | Rev 2489 | ||
---|---|---|---|
Line 35... | Line 35... | ||
35 | ## Setup platform configuration |
35 | ## Setup platform configuration |
36 | # |
36 | # |
37 | 37 | ||
38 | include $(LIBC_PREFIX)/arch/$(ARCH)/Makefile.inc |
38 | include $(LIBC_PREFIX)/arch/$(ARCH)/Makefile.inc |
39 | 39 | ||
- | 40 | ## Simple detection of the host system |
|
- | 41 | # |
|
- | 42 | HOST = $(shell uname) |
|
- | 43 | ||
- | 44 | ## On Solaris, some utilities have different names |
|
- | 45 | # |
|
- | 46 | ifeq ($(HOST),SunOS) |
|
- | 47 | BINUTILS_PREFIX = "g" |
|
- | 48 | else |
|
- | 49 | BINUTILS_PREFIX = "" |
|
- | 50 | endif |
|
- | 51 | ||
40 | ## Toolchain configuration |
52 | ## Toolchain configuration |
41 | # |
53 | # |
42 | 54 | ||
43 | ifeq ($(COMPILER),gcc_native) |
55 | ifeq ($(COMPILER),gcc_native) |
44 | CC = gcc |
56 | CC = gcc |
45 | AS = as |
57 | AS = $(BINUTILS_PREFIX)as |
46 | LD = ld |
58 | LD = $(BINUTILS_PREFIX)ld |
47 | AR = ar |
59 | AR = $(BINUTILS_PREFIX)ar |
48 | OBJCOPY = objcopy |
60 | OBJCOPY = $(BINUTILS_PREFIX)objcopy |
49 | OBJDUMP = objdump |
61 | OBJDUMP = $(BINUTILS_PREFIX)objdump |
50 | endif |
62 | endif |
51 | 63 | ||
52 | ifeq ($(COMPILER),icc_native) |
64 | ifeq ($(COMPILER),icc_native) |
53 | CC = icc |
65 | CC = icc |
54 | AS = as |
66 | AS = as |
Line 64... | Line 76... | ||
64 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
76 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
65 | AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar |
77 | AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar |
66 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
78 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
67 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
79 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
68 | endif |
80 | endif |
- | 81 |