Changeset 44bec47 in mainline for kernel/Makefile


Ignore:
Timestamp:
2007-06-06T20:00:13Z (18 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3ee8a075
Parents:
99373fe
Message:

Better infrastructure for building with different compilers.
Separate ICC_CFLAGS added, SUNCC_CFLAGS extended.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/Makefile

    r99373fe r44bec47  
    3434-include Makefile.config
    3535
     36INCLUDES = generic/include
     37OPTIMIZATION = 3
     38
    3639## Common compiler flags
    3740#
     
    4043        -DKERNEL
    4144
    42 GCC_CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes \
    43         -Werror -O3 -nostdlib -nostdinc -Igeneric/include/
    44 
    45 SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \
     45GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \
     46        -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror \
     47        -nostdlib -nostdinc
     48
     49ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \
     50        -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror \
     51        -nostdlib -nostdinc \
     52        -wd170
     53
     54SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \
     55        -xnolib -xc99=all -xregs=no%float \
    4656        -D__FUNCTION__=__func__ -features=extensions \
    4757        -erroff=E_ZERO_SIZED_STRUCT_UNION
    48 
    4958
    5059LFLAGS = -M
     
    147156        OBJDUMP = objdump
    148157        LIBDIR = /usr/lib
    149         CFLAGS = $(GCC_CFLAGS)
     158        CFLAGS = $(ICC_CFLAGS)
    150159endif
    151160
Note: See TracChangeset for help on using the changeset viewer.