Changes in kernel/Makefile [550b4e0:f0defd2] in mainline
- File:
-
- 1 edited
-
kernel/Makefile (modified) (8 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r550b4e0 rf0defd2 36 36 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common 37 37 COMMON_HEADER = $(ROOT_PATH)/common.h 38 COMMON_HEADER_ARCH = arch/$(KARCH)/include/ arch/common.h38 COMMON_HEADER_ARCH = arch/$(KARCH)/include/common.h 39 39 40 40 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config … … 59 59 REAL_MAP = generic/src/debug/real_map 60 60 61 ABI_INCLUDE = generic/include/abi 62 ARCH_INCLUDE = generic/include/arch 63 GENARCH_INCLUDE = generic/include/genarch 64 61 65 GENMAP = tools/genmap.py 62 66 JOBFILE = $(ROOT_PATH)/tools/jobfile.py … … 72 76 73 77 clean: 74 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* arch/*/_link.ld arch/*/include/arch/common.h78 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* $(ABI_INCLUDE) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) arch/*/_link.ld arch/*/include/common.h 75 79 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 76 80 … … 78 82 # 79 83 80 INCLUDES = generic/include genarch/include arch/$(KARCH)/include ../abi/include 81 INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES)) 84 INCLUDES = generic/include 82 85 83 86 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y) … … 89 92 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 90 93 91 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \94 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 92 95 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 93 96 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 96 99 -pipe 97 100 98 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \101 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 99 102 -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \ 100 103 -Werror-implicit-function-declaration -wd170 101 104 102 # clang does not support following options but I am not sure whether 103 # something won't break because of that: 104 # -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) -finput-charset=UTF-8 105 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 106 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 107 -Wall -Werror -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 105 CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 106 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 107 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ 108 -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \ 108 109 -Werror-implicit-function-declaration -Wwrite-strings \ 109 -integrated-as \ 110 -pipe -target $(CLANG_TARGET) 110 -pipe -arch $(CLANG_ARCH) 111 111 112 112 ifeq ($(CONFIG_DEBUG),y) … … 390 390 391 391 $(LINK): $(LINK).in $(DEPEND) 392 $( CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@392 $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $< | grep -v "^\#" > $@ 393 393 394 394 %.o: %.S $(DEPEND) … … 435 435 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 436 436 437 $(DEPEND): $( COMMON_HEADER_ARCH)437 $(DEPEND): $(ABI_INCLUDE) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH) 438 438 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 439 439 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ 440 440 441 $(ABI_INCLUDE): ../abi/include/ 442 ln -sfn ../../$< $@ 443 444 $(ARCH_INCLUDE): arch/$(KARCH)/include/ 445 ln -sfn ../../$< $@ 446 447 $(GENARCH_INCLUDE): genarch/include/ 448 ln -sfn ../../$< $@ 449 441 450 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 442 ln -sfn ../../../ ../$< $@451 ln -sfn ../../../$< $@
Note:
See TracChangeset
for help on using the changeset viewer.
