Changes in kernel/Makefile [247fdea:874ed210] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/Makefile
r247fdea r874ed210 87 87 INCLUDES_FLAGS = $(addprefix -I,$(INCLUDES)) 88 88 89 DEFS = -D KERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__89 DEFS = -D_HELENOS_SOURCE -DKERNEL -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__ 90 90 91 91 COMMON_CFLAGS = $(INCLUDES_FLAGS) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \ 92 92 -ffreestanding -nostdlib \ 93 93 -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \ 94 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. 94 -fdebug-prefix-map=$(realpath $(ROOT_PATH))=. \ 95 -Wa,--fatal-warnings 95 96 96 97 GCC_CFLAGS = -std=gnu11 -Wall -Wextra -Wno-unused-parameter \ … … 101 102 -Wno-missing-field-initializers -Wno-unused-command-line-argument \ 102 103 -Wmissing-prototypes -Werror-implicit-function-declaration \ 103 -Wwrite-strings -pipe -fno-stack-protector -fno-PIC 104 -Wwrite-strings -pipe -fno-stack-protector -fno-PIC \ 105 -mllvm -asm-macro-max-nesting-depth=1000 104 106 105 107 ifeq ($(CONFIG_DEBUG),y) … … 119 121 endif 120 122 121 AFLAGS += --fatal-warnings122 123 LDFLAGS += -Wl,-n -T $(LINK) -Wl,-M,--fatal-warnings,--warn-common 123 124 … … 207 208 generic/src/lib/gsort.c \ 208 209 generic/src/lib/str.c \ 210 generic/src/lib/strtol.c \ 209 211 generic/src/lib/str_error.c \ 210 212 generic/src/lib/elf.c \ … … 340 342 GENARCH_DEPENDS := $(addsuffix .d,$(basename $(GENARCH_SOURCES))) 341 343 342 AS_CFLAGS := $(addprefix -Xassembler ,$(AFLAGS))343 344 344 -include $(GENERIC_DEPENDS) 345 345 -include $(ARCH_DEPENDS) 346 346 -include $(GENARCH_DEPENDS) 347 347 348 ifeq ($(COMPILER),clang)349 AS_CFLAGS += -mllvm -asm-macro-max-nesting-depth=1000350 endif351 352 348 ifeq ($(CONFIG_SYMTAB),y) 353 349 SYMTAB_OBJECTS := generic/src/debug/real_map.o … … 373 369 374 370 %.o: %.S 375 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)371 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) 376 372 377 373 %.o: %.s 378 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS)374 $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) 379 375 380 376 %.o: %.c … … 382 378 383 379 $(REAL_MAP).o: $(REAL_MAP).bin 384 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$<\"" | $(CC) $(CFLAGS) $(AS_CFLAGS)-x assembler -c -o $@ -380 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$<\"" | $(CC) $(CFLAGS) -x assembler -c -o $@ - 385 381 386 382 $(REAL_MAP).bin: $(LINK) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) 387 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)" | $(CC) $(CFLAGS) $(AS_CFLAGS)-x assembler -c -o $(EMPTY_MAP) -383 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)" | $(CC) $(CFLAGS) -x assembler -c -o $(EMPTY_MAP) - 388 384 $(CC) $(DEFS) $(CFLAGS) $(LDFLAGS) -Wl,-Map,$(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) 389 385 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP) … … 393 389 # on architectures that have bss after symtab 394 390 395 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$@\"" | $(CC) $(CFLAGS) $(AS_CFLAGS)-x assembler -c -o $(SIZEOK_MAP) -391 echo "$(AS_PROLOG)""$(SYMTAB_SECTION)"" .incbin \"$@\"" | $(CC) $(CFLAGS) -x assembler -c -o $(SIZEOK_MAP) - 396 392 $(CC) $(DEFS) $(CFLAGS) $(LDFLAGS) -Wl,-Map,$(MAP_PREV) -o $@ $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) 397 393 $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP)
Note:
See TracChangeset
for help on using the changeset viewer.