Changeset 52d30c4 in mainline for kernel/Makefile


Ignore:
Timestamp:
2007-06-05T21:24:40Z (17 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
4a8635b
Parents:
92d349c8
Message:

A bit of infrastructure for building with different compilers.
CFLAGS split into GCC_CFLAGS and SUNCC_CFLAGS.
As of now, there are no separate ICC_CFLAGS, but can be easily added.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r92d349c8 r52d30c4  
    3737#
    3838
    39 DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" -DKERNEL
    40 CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
    41 
    42 #SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \
    43 #-D__FUNCTION__=__func__ -features=extensions \
    44 #-erroff=E_ZERO_SIZED_STRUCT_UNION
     39DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" \
     40        -DKERNEL
     41
     42GCC_CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes \
     43        -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
     44
     45SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \
     46        -D__FUNCTION__=__func__ -features=extensions \
     47        -erroff=E_ZERO_SIZED_STRUCT_UNION
     48
    4549
    4650LFLAGS = -M
     
    132136        OBJDUMP = objdump
    133137        LIBDIR = /usr/lib
     138        CFLAGS = $(GCC_CFLAGS)
    134139endif
    135140
     
    142147        OBJDUMP = objdump
    143148        LIBDIR = /usr/lib
     149        CFLAGS = $(GCC_CFLAGS)
    144150endif
    145151
     
    152158        OBJDUMP = objdump
    153159        LIBDIR = /usr/lib
     160        CFLAGS = $(SUNCC_CFLAGS)
    154161endif
    155162
     
    162169        OBJDUMP = $(TOOLCHAIN_DIR)/bin/$(TARGET)-objdump
    163170        LIBDIR = $(TOOLCHAIN_DIR)/lib
     171        CFLAGS = $(GCC_CFLAGS)
    164172endif
    165173
Note: See TracChangeset for help on using the changeset viewer.