Rev 2455 | Rev 2462 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2455 | Rev 2460 | ||
---|---|---|---|
Line 31... | Line 31... | ||
31 | # |
31 | # |
32 | 32 | ||
33 | -include ../version |
33 | -include ../version |
34 | -include Makefile.config |
34 | -include Makefile.config |
35 | 35 | ||
- | 36 | INCLUDES = generic/include |
|
- | 37 | OPTIMIZATION = 3 |
|
- | 38 | ||
36 | ## Common compiler flags |
39 | ## Common compiler flags |
37 | # |
40 | # |
38 | 41 | ||
39 | DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" \ |
42 | DEFS = -D$(ARCH) -DARCH=\"$(ARCH)\" -DRELEASE=\"$(RELEASE)\" "-DNAME=\"$(NAME)\"" \ |
40 | -DKERNEL |
43 | -DKERNEL |
41 | 44 | ||
- | 45 | GCC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \ |
|
42 | GCC_CFLAGS = -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes \ |
46 | -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror \ |
- | 47 | -nostdlib -nostdinc |
|
- | 48 | ||
- | 49 | ICC_CFLAGS = -I$(INCLUDES) -O$(OPTIMIZATION) \ |
|
- | 50 | -fno-builtin -fomit-frame-pointer -Wall -Wmissing-prototypes -Werror \ |
|
43 | -Werror -O3 -nostdlib -nostdinc -Igeneric/include/ |
51 | -nostdlib -nostdinc \ |
- | 52 | -wd170 |
|
44 | 53 | ||
45 | SUNCC_CFLAGS = -xO3 -Igeneric/include/ -xnolib -xc99=all \ |
54 | SUNCC_CFLAGS = -I$(INCLUDES) -xO$(OPTIMIZATION) \ |
- | 55 | -xnolib -xc99=all -xregs=no%float \ |
|
46 | -D__FUNCTION__=__func__ -features=extensions \ |
56 | -D__FUNCTION__=__func__ -features=extensions \ |
47 | -erroff=E_ZERO_SIZED_STRUCT_UNION |
57 | -erroff=E_ZERO_SIZED_STRUCT_UNION |
48 | 58 | ||
49 | - | ||
50 | LFLAGS = -M |
59 | LFLAGS = -M |
51 | AFLAGS = |
60 | AFLAGS = |
52 | 61 | ||
53 | ifdef REVISION |
62 | ifdef REVISION |
54 | DEFS += "-DREVISION=\"$(REVISION)\"" |
63 | DEFS += "-DREVISION=\"$(REVISION)\"" |
Line 144... | Line 153... | ||
144 | AS = as |
153 | AS = as |
145 | LD = ld |
154 | LD = ld |
146 | OBJCOPY = objcopy |
155 | OBJCOPY = objcopy |
147 | OBJDUMP = objdump |
156 | OBJDUMP = objdump |
148 | LIBDIR = /usr/lib |
157 | LIBDIR = /usr/lib |
149 | CFLAGS = $(GCC_CFLAGS) |
158 | CFLAGS = $(ICC_CFLAGS) |
150 | endif |
159 | endif |
151 | 160 | ||
152 | ifeq ($(COMPILER),suncc_native) |
161 | ifeq ($(COMPILER),suncc_native) |
153 | CC = suncc |
162 | CC = suncc |
154 | GCC = gcc |
163 | GCC = gcc |