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