Changes in boot/Makefile.build [fe171357:4761f54] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • boot/Makefile.build

    rfe171357 r4761f54  
    3131include Makefile.common
    3232
    33 INCLUDES = -Igeneric/include -Iarch/$(KARCH)/include -Igenarch/include -I$(ROOT_PATH)/abi/include
     33INCLUDES = -Igeneric/include -I$(ROOT_PATH)/abi/include
    3434OPTIMIZATION = 3
    3535
    3636DEFS = -DBOOT -DRELEASE=$(RELEASE) "-DCOPYRIGHT=$(COPYRIGHT)" "-DNAME=$(NAME)" -D__$(BITS)_BITS__ -D__$(ENDIANESS)__
    3737
    38 AFLAGS = --fatal-warnings
    39 LFLAGS = --fatal-warnings --warn-common
     38AFLAGS =
     39LFLAGS = --fatal-warnings
     40
     41# FIXME: This condition is a workaround for issue #693.
     42ifneq ($(BARCH),mips32)
     43        AFLAGS += --fatal-warnings
     44endif
    4045
    4146COMMON_CFLAGS = $(INCLUDES) -O$(OPTIMIZATION) -imacros $(CONFIG_HEADER) \
    4247        -ffreestanding -fno-builtin -nostdlib -nostdinc \
    43         -fexec-charset=UTF-8 -finput-charset=UTF-8 -fno-common \
    44         -fdebug-prefix-map=$(realpath $(ROOT_PATH))=.
     48        -fexec-charset=UTF-8 -finput-charset=UTF-8
    4549
    4650GCC_CFLAGS = -Wall -Wextra -Wno-unused-parameter -Wmissing-prototypes \
     
    7276
    7377clean:
    74         rm -f $(RAW) $(MAP)
     78        rm -f $(RAW) $(MAP) $(ARCH_INCLUDE) $(GENARCH_INCLUDE)
    7579
    7680-include $(DEPENDS)
     
    8791        $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -D__LINKER__ -E -x c $(LINK).in | grep -v "^\#" > $(LINK)
    8892
    89 %.o: %.s | depend
    90         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__
    91 
    9293%.o: %.S | depend
    93         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__
     94        $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@
     95ifeq ($(PRECHECK),y)
     96        $(JOBFILE) $(JOB) $< $@ as asm/preproc $(DEFS) $(CFLAGS) -D__ASM__
     97endif
    9498
    9599%.o: %.c | depend
    96         $(CC_JOB) -c -MD -MP $(DEFS) $(CFLAGS)
     100        $(CC) -MD $(DEFS) $(CFLAGS) -c $< -o $@
     101ifeq ($(PRECHECK),y)
     102        $(JOBFILE) $(JOB) $< $@ cc core $(DEFS) $(CFLAGS)
     103endif
    97104
    98 depend: $(PRE_DEPEND)
     105%.o: %.s | depend
     106        $(CC) -MD $(DEFS) $(CFLAGS) $(AS_CFLAGS) -D__ASM__ -c $< -o $@
     107ifeq ($(PRECHECK),y)
     108        $(JOBFILE) $(JOB) $< $@ as asm
     109endif
     110
     111depend: $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH) $(PRE_DEPEND)
    99112
    100113$(COMPS).s: $(COMPS).zip
     
    115128include Makefile.initrd
    116129
     130$(ARCH_INCLUDE): arch/$(KARCH)/include/
     131        ln -sfn ../../$< $@
     132
     133$(GENARCH_INCLUDE): genarch/include/
     134        ln -sfn ../../$< $@
     135
     136$(COMMON_HEADER_ARCH): $(COMMON_HEADER)
     137        ln -sfn ../../../$< $@
Note: See TracChangeset for help on using the changeset viewer.