Changes in kernel/Makefile [e8c5c11:c0699467] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    re8c5c11 rc0699467  
    5959REAL_MAP = generic/src/debug/real_map
    6060
     61ABI_INCLUDE = generic/include/abi
    6162ARCH_INCLUDE = generic/include/arch
    6263GENARCH_INCLUDE = generic/include/genarch
     
    7576
    7677clean:
    77         rm -f $(DEPEND) $(DEPEND_PREV) $(RAW) $(BIN) $(MAP) $(JOB) $(MAP_PREV) $(DISASM) $(DUMP) $(REAL_MAP).* $(ARCH_INCLUDE) $(GENARCH_INCLUDE) arch/*/_link.ld arch/*/include/common.h
     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.h
    7879        find generic/src/ arch/*/src/ genarch/src/ test/ -name '*.o' -follow -exec rm \{\} \;
    7980
     
    329330        endif
    330331       
    331         ifeq ($(CONFIG_FPU),y)
    332                 ifeq ($(KARCH),ia32)
    333                         TEST_FPU1 = y
    334                         TEST_SSE1 = y
    335                         GENERIC_SOURCES += test/fpu/fpu1_x86.c
    336                 endif
    337                
    338                 ifeq ($(KARCH),amd64)
    339                         TEST_FPU1 = y
    340                         TEST_SSE1 = y
    341                         GENERIC_SOURCES += test/fpu/fpu1_x86.c
    342                 endif
    343                
    344                 ifeq ($(KARCH),ia64)
    345                         TEST_FPU1 = y
    346                         GENERIC_SOURCES += test/fpu/fpu1_ia64.c
    347                 endif
    348                
    349                 ifeq ($(KARCH),mips32)
    350                         TEST_MIPS2 = y
    351                 endif
    352         endif
    353        
    354         ifneq ($(TEST_FPU1),y)
    355                 GENERIC_SOURCES += test/fpu/fpu1_skip.c
    356         endif
    357        
    358         ifeq ($(TEST_SSE1),y)
    359                 GENERIC_SOURCES += test/fpu/sse1.c
    360         else
    361                 GENERIC_SOURCES += test/fpu/sse1_skip.c
    362         endif
    363        
    364         ifeq ($(TEST_MIPS2),y)
    365                 GENERIC_SOURCES += test/fpu/mips2.c
    366         else
    367                 GENERIC_SOURCES += test/fpu/mips2_skip.c
    368         endif
    369        
    370332endif
    371333
     
    440402endif
    441403
    442 #
    443 # The FPU tests are the only objects for which we allow the compiler to generate
    444 # FPU instructions.
    445 #
    446 
    447 test/fpu/%.o: test/fpu/%.c $(DEPEND)
    448         $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) -c -o $@ $<
    449 ifeq ($(PRECHECK),y)
    450         $(JOBFILE) $(JOB) $< $@ cc test $(DEFS) $(CFLAGS) $(EXTRA_FLAGS)
    451 endif
    452 
    453 #
    454 # Ordinary objects.
    455 #
    456 
    457404%.o: %.c $(DEPEND)
    458405        $(CC) $(DEFS) $(CFLAGS) $(EXTRA_FLAGS) $(FPU_NO_CFLAGS) $(if $(findstring $<,$(INSTRUMENTED_SOURCES)),$(INSTRUMENTATION)) -c -o $@ $<
     
    486433        $(GENMAP) $(MAP_PREV) $(DUMP) $@
    487434
    488 $(DEPEND): $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH)
     435$(DEPEND): $(ABI_INCLUDE) $(ARCH_INCLUDE) $(GENARCH_INCLUDE) $(COMMON_HEADER_ARCH)
    489436        makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENARCH_SOURCES) $(GENERIC_SOURCES) > $@ 2> /dev/null
    490437        -[ -f $(DEPEND_PREV) ] && diff -q $(DEPEND_PREV) $@ && mv -f $(DEPEND_PREV) $@
    491438
     439$(ABI_INCLUDE): ../abi/include/
     440        ln -sfn ../../$< $@
     441
    492442$(ARCH_INCLUDE): arch/$(KARCH)/include/
    493443        ln -sfn ../../$< $@
Note: See TracChangeset for help on using the changeset viewer.