Changeset 6ecf5b8 in mainline for kernel/Makefile
- Timestamp:
- 2012-10-24T02:11:42Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- aebcd42
- Parents:
- b800b0e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
rb800b0e r6ecf5b8 36 36 COMMON_MAKEFILE = $(ROOT_PATH)/Makefile.common 37 37 COMMON_HEADER = $(ROOT_PATH)/common.h 38 COMMON_HEADER_ARCH = arch/$(KARCH)/include/ common.h38 COMMON_HEADER_ARCH = arch/$(KARCH)/include/arch/common.h 39 39 40 40 CONFIG_MAKEFILE = $(ROOT_PATH)/Makefile.config … … 60 60 61 61 ABI_INCLUDE = generic/include/abi 62 ARCH_INCLUDE = generic/include/arch63 GENARCH_INCLUDE = generic/include/genarch64 62 65 63 GENMAP = tools/genmap.py … … 76 74 77 75 clean: 78 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.h76 rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* $(ABI_INCLUDE) arch/*/_link.ld arch/*/include/arch/common.h 79 77 find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \; 80 78 … … 82 80 # 83 81 84 INCLUDES = generic/include 82 INCLUDES = generic/include genarch/include arch/$(KARCH)/include 83 INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES)) 85 84 86 85 ifeq ($(CONFIG_OPTIMIZE_FOR_SIZE),y) … … 92 91 DEFS = -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 93 92 94 GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \93 GCC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 95 94 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 96 95 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 99 98 -pipe 100 99 101 ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \100 ICC_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 102 101 -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \ 103 102 -Werror-implicit-function-declaration -wd170 104 103 105 CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \104 CLANG_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 106 105 -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \ 107 106 -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \ … … 435 434 $(GENMAP) $(MAP_PREV) $(DUMP) $@ 436 435 437 $(DEPEND): $(ABI_INCLUDE) $( ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH)436 $(DEPEND): $(ABI_INCLUDE) $(COMMON_HEADER_ARCH) 438 437 makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null 439 438 -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@ … … 442 441 ln -sfn ../../$< $@ 443 442 444 $(ARCH_INCLUDE): arch/$(KARCH)/include/445 ln -sfn ../../$< $@446 447 $(GENARCH_INCLUDE): genarch/include/448 ln -sfn ../../$< $@449 450 443 $(COMMON_HEADER_ARCH): $(COMMON_HEADER) 451 ln -sfn ../../../ $< $@444 ln -sfn ../../../../$< $@
Note:
See TracChangeset
for help on using the changeset viewer.