Statistics
| Branch: | Revision:

scoutos / prex-0.9.0 / mk / suncc.mk @ 03e9c04a

History | View | Annotate | Download (662 Bytes)

1
# sun studio specifc flags
2

    
3
ifndef _SUNCC_MK_
4
_SUNCC_MK_:=	1
5

    
6
OUTPUT_OPTION=	-o $@
7

    
8
DEFINES=	$(addprefix -D,$(DEFS))
9

    
10
CFLAGS+=	-c -xspace -features=none -xnolib -xc99=none
11
CPPFLAGS+=	$(DEFINES) -I. $(addprefix -I,$(INCSDIR))
12
ACPPFLAGS+=	-D__ASSEMBLY__
13
LDFLAGS+=	-static -nostdlib $(addprefix -L,$(LIBSDIR))
14

    
15
ifeq ($(_DEBUG_),1)
16
CFLAGS+=	-g
17
else
18
CFLAGS+=
19
endif
20

    
21
ifeq ($(_KERNEL_),1)
22
CFLAGS+=	-xbuiltin=%none
23
endif
24

    
25
ifeq ($(_STRICT_),1)
26
CFLAGS+=	-errwarn
27
endif
28

    
29
ifdef LDSCRIPT
30
LDFLAGS+=	-T $(LDSCRIPT)
31
endif
32

    
33
ifdef MAP
34
LDFLAGS+=	-Map $(MAP)
35
endif
36

    
37
ifeq ($(_RELOC_OBJ_),1)
38
LDFLAGS_S=	$(LDFLAGS) --error-unresolved-symbols
39
LDFLAGS+=	-r -d
40
endif
41

    
42
endif # !_SUNCC_MK_