Changes in kernel/Makefile.build [f6069801:9647c86] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile.build

    rf6069801 r9647c86  
    5555        -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    5656        -finput-charset=UTF-8 -ffreestanding -fno-builtin -nostdlib -nostdinc \
    57         -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes -Werror \
    58         -pipe
     57        -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
     58        -Werror-implicit-function-declaration -Werror -pipe
    5959
    6060ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h \
    6161        -ffreestanding -fno-builtin -nostdlib -nostdinc -Wall -Wmissing-prototypes \
    62         -Werror -wd170
     62        -Werror-implicit-function-declaration -Werror -wd170
    6363
    6464SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \
     
    376376%.o: %.S $(DEPEND)
    377377        $(GCC) $(DEFS) $(GCC_CFLAGS) -D__ASM__ -c $< -o $@
     378ifeq ($(PRECHECK),y)
     379        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(GCC_CFLAGS) -D__ASM__
     380endif
    378381
    379382%.o: %.s $(DEPEND)
    380383        $(AS) $(AFLAGS) $< -o $@
     384ifeq ($(PRECHECK),y)
     385        $(JOBFILE) $(JOB) $< $@ as asm $(DEFS) $(CFLAGS) $(EXTRA_FLAGS)
     386endif
    381387
    382388#
     
    386392test/fpu/%.o: test/fpu/%.c $(DEPEND)
    387393        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) -c $< -o $@
    388 ifeq ($(EXTRA_TOOL),stanse)
    389         ../tools/jobfile.py $(JOB) $< $@ $(DEFS) $(CFLAGS) $(EXTRA_FLAGS)
     394ifeq ($(PRECHECK),y)
     395        $(JOBFILE) $(JOB) $< $@ cc test $(DEFS) $(CFLAGS) $(EXTRA_FLAGS)
    390396endif
    391397
     
    395401%.o: %.c $(DEPEND)
    396402        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) -c $< -o $@
    397 ifeq ($(EXTRA_TOOL),stanse)
    398         ../tools/jobfile.py $(JOB) $< $@ $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)
     403ifeq ($(PRECHECK),y)
     404        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS)
    399405endif
    400406
     
    406412        $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(EMPTY_MAP) -o $@ -Map $(MAP_PREV)
    407413        $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP)
    408         tools/genmap.py $(MAP_PREV) $(DUMP) $@
     414        $(GENMAP) $(MAP_PREV) $(DUMP) $@
    409415       
    410416        # Do it once again, this time to get correct even the symbols
     
    414420        $(LD) -T $(LINK) $(LFLAGS) $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) $(EXTRA_OBJECTS) $(SIZEOK_MAP) -o $@ -Map $(MAP_PREV)
    415421        $(OBJDUMP) -t $(ARCH_OBJECTS) $(GENARCH_OBJECTS) $(GENERIC_OBJECTS) > $(DUMP)
    416         tools/genmap.py $(MAP_PREV) $(DUMP) $@
     422        $(GENMAP) $(MAP_PREV) $(DUMP) $@
    417423
    418424$(DEPEND): $(ARCH_INCLUDE) $(GENARCH_INCLUDE)
Note: See TracChangeset for help on using the changeset viewer.