Changes in kernel/Makefile [69dc065:646b996] in mainline


Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r69dc065 r646b996  
    5454ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h \
    5555        -fno-builtin -Wall -Wmissing-prototypes -Werror \
    56         -nostdlib -nostdinc -wd170
     56        -nostdlib -nostdinc \
     57        -wd170
    5758
    5859SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \
    5960        -xnolib -xc99=all -features=extensions \
    6061        -erroff=E_ZERO_SIZED_STRUCT_UNION
    61 
    62 CLANG_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) -imacros ../config.h \
    63         -fexec-charset=UTF-8 -fwide-exec-charset=UTF-32$(ENDIANESS) \
    64         -finput-charset=UTF-8 -fno-builtin -Wall -Wextra -Wno-unused-parameter \
    65         -Wmissing-prototypes -nostdlib -nostdinc -pipe
    6662
    6763LFLAGS = -M
     
    113109endif
    114110
    115 ifeq ($(COMPILER),gcc_cross)
    116         CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc
    117         GCC = $(CC)
    118         AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as
    119         LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld
    120         OBJCOPY = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objcopy
    121         OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump
    122         LIBDIR = $(TOOLCHAIN_DIR)/lib
    123         CFLAGS = $(GCC_CFLAGS)
    124         DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    125 endif
    126 
    127 ifeq ($(COMPILER),icc)
     111ifeq ($(COMPILER),icc_native)
    128112        CC = icc
    129113        GCC = gcc
     
    137121endif
    138122
    139 ifeq ($(COMPILER),suncc)
     123ifeq ($(COMPILER),suncc_native)
    140124        CC = suncc
    141125        GCC = gcc
     
    150134endif
    151135
    152 ifeq ($(COMPILER),clang)
    153         CC = clang
    154         GCC = gcc
    155         AS = $(BINUTILS_PREFIX)as
    156         LD = $(BINUTILS_PREFIX)ld
    157         OBJCOPY = $(BINUTILS_PREFIX)objcopy
    158         OBJDUMP = $(BINUTILS_PREFIX)objdump
    159         LIBDIR = /usr/lib
    160         CFLAGS = $(CLANG_CFLAGS)
     136ifeq ($(COMPILER),gcc_cross)
     137        CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc
     138        GCC = $(CC)
     139        AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as
     140        LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld
     141        OBJCOPY = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objcopy
     142        OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump
     143        LIBDIR = $(TOOLCHAIN_DIR)/lib
     144        CFLAGS = $(GCC_CFLAGS)
    161145        DEPEND_DEFS = $(DEFS) $(CONFIG_DEFS)
    162146endif
Note: See TracChangeset for help on using the changeset viewer.