Changeset 60133d0 in mainline for kernel/Makefile


Ignore:
Timestamp:
2007-05-31T23:30:32Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
ff3a34b
Parents:
1e847fb
Message:

First fixes for suncc support.
It is going to be a long way…

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r1e847fb r60133d0  
    3939DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL
    4040CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
     41#SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all
    4142LFLAGS = -M
    4243AFLAGS =
     
    121122ifeq ($(COMPILER),gcc_native)
    122123        CC = gcc
     124        AS_CC = gcc
    123125        AS = as
    124126        LD = ld
     
    130132ifeq ($(COMPILER),icc_native)
    131133        CC = icc
     134        AS_CC = gcc
    132135        AS = as
    133136        LD = ld
     
    139142ifeq ($(COMPILER),suncc_native)
    140143        CC = suncc
     144        AS_CC = gcc
    141145        AS = as
    142146        LD = ld
     
    148152ifeq ($(COMPILER),gcc_cross)
    149153        CC = $(TOOLCHAIN_DIR)/bin/$(TARGET)-gcc
     154        AS_CC = $(CC)
    150155        AS = $(TOOLCHAIN_DIR)/bin/$(TARGET)-as
    151156        LD = $(TOOLCHAIN_DIR)/bin/$(TARGET)-ld
     
    332337
    333338%.o: %.S
    334         $(CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
     339        $(AS_CC) $(DEFS) $(CFLAGS) -D__ASM__ -c $< -o $@
    335340
    336341%.o: %.s
Note: See TracChangeset for help on using the changeset viewer.