Changes in uspace/lib/libc/Makefile.toolchain [ac47b7c2:cc1f8d4] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/libc/Makefile.toolchain
rac47b7c2 rcc1f8d4 27 27 # 28 28 29 CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \29 GCC_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \ 30 30 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 31 -finput-charset=UTF-8 -fno-builtin -Wall -Wextra -Wno-unused-parameter \ 32 -Wmissing-prototypes -Werror-implicit-function-declaration -nostdlib \ 33 -nostdinc -pipe -g -D__$(ENDIANESS)__ 31 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 32 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 33 -Werror-implicit-function-declaration -pipe -g -D__$(ENDIANESS)__ 34 35 ICC_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \ 36 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 37 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 38 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 39 -Werror-implicit-function-declaration -pipe -g -D__$(ENDIANESS)__ 40 41 CLANG_CFLAGS = -I$(LIBC_PREFIX)/include -O3 -imacros $(LIBC_PREFIX)/../../../config.h \ 42 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 43 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 44 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 45 -Werror-implicit-function-declaration -pipe -g -arch $(CLANG_ARCH) \ 46 -D__$(ENDIANESS)__ 47 34 48 LFLAGS = -M -N $(SOFTINT_PREFIX)/libsoftint.a 35 49 AFLAGS = … … 45 59 # 46 60 47 -include $(LIBC_PREFIX)/../../../Makefile.config48 -include $(LIBC_PREFIX)/../../../config.defs49 -include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc61 include $(LIBC_PREFIX)/../../../Makefile.config 62 include $(LIBC_PREFIX)/../../../config.defs 63 include $(LIBC_PREFIX)/arch/$(UARCH)/Makefile.inc 50 64 51 65 ## Simple detection of the host system … … 64 78 # 65 79 80 ifeq ($(COMPILER),gcc_cross) 81 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 82 GCC = $(CC) 83 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 84 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 85 AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar 86 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 87 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 88 CFLAGS = $(GCC_CFLAGS) 89 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 90 endif 91 66 92 ifeq ($(COMPILER),gcc_native) 67 93 CC = gcc 94 GCC = $(CC) 68 95 AS = $(BINUTILS_PREFIX)as 69 96 LD = $(BINUTILS_PREFIX)ld … … 71 98 OBJCOPY = $(BINUTILS_PREFIX)objcopy 72 99 OBJDUMP = $(BINUTILS_PREFIX)objdump 100 CFLAGS = $(GCC_CFLAGS) 73 101 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 74 102 endif 75 103 76 ifeq ($(COMPILER),icc _native)104 ifeq ($(COMPILER),icc) 77 105 CC = icc 106 GCC = gcc 78 107 AS = as 79 108 LD = ld … … 81 110 OBJCOPY = objcopy 82 111 OBJDUMP = objdump 112 CFLAGS = $(ICC_CFLAGS) 83 113 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 84 114 endif 85 115 86 ifeq ($(COMPILER),gcc_cross) 87 CC = $(TOOLCHAIN_DIR)/$(TARGET)-gcc 88 AS = $(TOOLCHAIN_DIR)/$(TARGET)-as 89 LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld 90 AR = $(TOOLCHAIN_DIR)/$(TARGET)-ar 91 OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy 92 OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump 116 ifeq ($(COMPILER),clang) 117 CC = clang 118 GCC = gcc 119 AS = $(BINUTILS_PREFIX)as 120 LD = $(BINUTILS_PREFIX)ld 121 AR = $(BINUTILS_PREFIX)ar 122 OBJCOPY = $(BINUTILS_PREFIX)objcopy 123 OBJDUMP = $(BINUTILS_PREFIX)objdump 124 CFLAGS = $(CLANG_CFLAGS) 93 125 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 94 126 endif
Note:
See TracChangeset
for help on using the changeset viewer.