Changes in boot/Makefile.build [fe171357:4761f54] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/Makefile.build
rfe171357 r4761f54 31 31 include Makefile.common 32 32 33 INCLUDES = -Igeneric/include -I arch/$(KARCH)/include -Igenarch/include -I$(ROOT_PATH)/abi/include33 INCLUDES = -Igeneric/include -I$(ROOT_PATH)/abi/include 34 34 OPTIMIZATION = 3 35 35 36 36 DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 37 37 38 AFLAGS = --fatal-warnings 39 LFLAGS = --fatal-warnings --warn-common 38 AFLAGS = 39 LFLAGS = --fatal-warnings 40 41 # FIXME: This condition is a workaround for issue #693. 42 ifneq ($(BARCH),mips32) 43 AFLAGS += --fatal-warnings 44 endif 40 45 41 46 COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 42 47 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 43 -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \ 44 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. 48 -fexec-charset=UTF-8 -finput-charset=UTF-8 45 49 46 50 GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ … … 72 76 73 77 clean: 74 rm -f $(RAW) $(MAP) 78 rm -f $(RAW) $(MAP) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) 75 79 76 80 -include $(DEPENDS) … … 87 91 $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK) 88 92 89 %.o: %.s | depend90 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__91 92 93 %.o: %.S | depend 93 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ 94 $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 95 ifeq ($(PRECHECK),y) 96 $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__ 97 endif 94 98 95 99 %.o: %.c | depend 96 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) 100 $(CC) -MD $(DEFS) $(CFLAGS) -c $< -o $@ 101 ifeq ($(PRECHECK),y) 102 $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) 103 endif 97 104 98 depend: $(PRE_DEPEND) 105 %.o: %.s | depend 106 $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@ 107 ifeq ($(PRECHECK),y) 108 $(JOBFILE) $(JOB) $< $@ as asm 109 endif 110 111 depend: $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH) $(PRE_DEPEND) 99 112 100 113 $(COMPS).s: $(COMPS).zip … … 115 128 include Makefile.initrd 116 129 130 $(ARCH_INCLUDE): arch/$(KARCH)/include/ 131 ln -sfn ../../$< $@ 132 133 $(GENARCH_INCLUDE): genarch/include/ 134 ln -sfn ../../$< $@ 135 136 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 137 ln -sfn ../../../$< $@
Note:
See TracChangeset
for help on using the changeset viewer.