Changeset b535aeb in mainline for uspace/lib/libc/Makefile.toolchain
- Timestamp:
- 2010-03-20T22:02:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 37f527b
- Parents:
- 39e8406 (diff), 4e9aaf5 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/Makefile.toolchain
r39e8406 rb535aeb 53 53 AFLAGS = 54 54 55 ## Cross-toolchain prefix56 #57 58 ifndef CROSS_PREFIX59 CROSS_PREFIX = /usr/local60 endif61 62 55 ## Setup platform configuration 63 56 # 64 57 58 -include $(LIBC_PREFIX)/../../../Makefile.common 65 59 -include $(LIBC_PREFIX)/../../../Makefile.config 66 -include $(LIBC_PREFIX)/../../../config.defs67 60 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc 68 61 69 ## Simple detection of the host system 70 # 71 HOST = $(shell uname) 72 73 ## On Solaris, some utilities have different names 74 # 75 ifeq ($(HOST),SunOS) 76 BINUTILS_PREFIX = "g" 77 else 78 BINUTILS_PREFIX = "" 79 endif 80 81 ## Toolchain configuration 62 ## Compilation options 82 63 # 83 64 … … 85 66 86 67 ifeq ($(COMPILER),gcc_cross) 87 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc88 GCC = $(CC)89 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as90 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld91 AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar92 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy93 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump94 68 CFLAGS = $(GCC_CFLAGS) 95 69 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 97 71 98 72 ifeq ($(COMPILER),gcc_native) 99 CC = gcc100 GCC = $(CC)101 AS = $(BINUTILS_PREFIX)as102 LD = $(BINUTILS_PREFIX)ld103 AR = $(BINUTILS_PREFIX)ar104 OBJCOPY = $(BINUTILS_PREFIX)objcopy105 OBJDUMP = $(BINUTILS_PREFIX)objdump106 73 CFLAGS = $(GCC_CFLAGS) 107 74 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 109 76 110 77 ifeq ($(COMPILER),icc) 111 CC = icc112 GCC = gcc113 AS = as114 LD = ld115 AR = ar116 OBJCOPY = objcopy117 OBJDUMP = objdump118 78 CFLAGS = $(ICC_CFLAGS) 119 79 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) … … 121 81 122 82 ifeq ($(COMPILER),clang) 123 CC = clang124 GCC = gcc125 AS = $(BINUTILS_PREFIX)as126 LD = $(BINUTILS_PREFIX)ld127 AR = $(BINUTILS_PREFIX)ar128 OBJCOPY = $(BINUTILS_PREFIX)objcopy129 OBJDUMP = $(BINUTILS_PREFIX)objdump130 83 CFLAGS = $(CLANG_CFLAGS) 131 84 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
Note:
See TracChangeset
for help on using the changeset viewer.