Changes in boot/Makefile.build [a0a273e:94c05b89] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.build
ra0a273e r94c05b89 36 36 DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 37 37 38 AFLAGS =39 38 LFLAGS = --fatal-warnings 40 39 41 # FIXME: This condition is a workaround for issue #693. 42 ifneq ($(BARCH),mips32) 43 AFLAGS += --fatal-warnings 44 endif 45 46 COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 47 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 48 -fexec-charset=UTF-8 -finput-charset=UTF-8 49 50 GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 40 GCC_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 41 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 42 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 43 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 51 44 -std=gnu99 -Werror-implicit-function-declaration -Wwrite-strings \ 52 45 -pipe 53 46 54 ICC_CFLAGS = -Wall -Wmissing-prototypes -Werror-implicit-function-declaration -wd170 47 ICC_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 48 -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \ 49 -Werror-implicit-function-declaration -wd170 55 50 56 CLANG_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 51 CLANG_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 52 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 53 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 54 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 57 55 -Werror-implicit-function-declaration -Wwrite-strings \ 58 -pipe -fno-stack-protector -fno-PIC56 -pipe 59 57 60 58 ifeq ($(CONFIG_DEBUG),y) 61 COMMON_CFLAGS += -Werror 59 GCC_CFLAGS += -Werror 60 ICC_CFLAGS += -Werror 62 61 endif 63 62 64 63 ifeq ($(CONFIG_LINE_DEBUG),y) 65 COMMON_CFLAGS += -g 64 GCC_CFLAGS += -g 65 ICC_CFLAGS += -g 66 CLANG_CFLAGS += -g 66 67 endif 67 68 68 69 ifeq ($(COMPILER),gcc_native) 69 CFLAGS = $( COMMON_CFLAGS) $(GCC_CFLAGS) $(EXTRA_CFLAGS)70 CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS) 70 71 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 71 72 endif 72 73 73 74 ifeq ($(COMPILER),gcc_cross) 74 CFLAGS = $( COMMON_CFLAGS) $(GCC_CFLAGS) $(EXTRA_CFLAGS)75 CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS) 75 76 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 76 77 endif 77 78 78 79 ifeq ($(COMPILER),gcc_helenos) 79 CFLAGS = $( COMMON_CFLAGS) $(GCC_CFLAGS) $(EXTRA_CFLAGS)80 CFLAGS = $(GCC_CFLAGS) $(EXTRA_CFLAGS) 80 81 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 81 82 endif … … 83 84 84 85 ifeq ($(COMPILER),icc) 85 CFLAGS = $( COMMON_CFLAGS) $(ICC_CFLAGS) $(EXTRA_CFLAGS)86 CFLAGS = $(ICC_CFLAGS) $(EXTRA_CFLAGS) 86 87 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 87 88 endif 88 89 89 90 ifeq ($(COMPILER),clang) 90 CFLAGS = $(C OMMON_CFLAGS) $(CLANG_CFLAGS) $(EXTRA_CFLAGS)91 CFLAGS = $(CLANG_CFLAGS) $(EXTRA_CFLAGS) 91 92 DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS) 92 93 endif … … 104 105 endif 105 106 106 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS))107 108 107 $(BOOT_OUTPUT): $(RAW) 109 108 $(OBJCOPY) -O $(BFD_OUTPUT) $< $@ … … 113 112 114 113 $(LINK): $(DEPEND) 115 $( CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK)114 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK) 116 115 117 116 %.o: %.S $(DEPEND) 118 $(CC) $(DEFS) $(CFLAGS) $(AS_CFLAGS)-D__ASM__ -c $< -o $@117 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@ 119 118 ifeq ($(PRECHECK),y) 120 119 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ … … 128 127 129 128 %.o: %.s $(DEPEND) 130 $( CC) $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@129 $(AS) $(AFLAGS) -o $@ $< 131 130 ifeq ($(PRECHECK),y) 132 131 $(JOBFILE) $(JOB) $< $@ as asm
Note:
See TracChangeset
for help on using the changeset viewer.