Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (526 Bytes)

1
# pcc specific flags
2

    
3
ifndef _PCC_MK_
4
_PCC_MK_:=	1
5

    
6
OUTPUT_OPTION=	-o $@
7

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

    
10
CFLAGS+=	-c -O -static -nostdinc -nostdlib
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
endif
18

    
19
ifdef LDSCRIPT
20
LDFLAGS+=	-T $(LDSCRIPT)
21
endif
22

    
23
ifdef MAP
24
LDFLAGS+=	-Map $(MAP)
25
endif
26

    
27
ifeq ($(_RELOC_OBJ_),1)
28
LDFLAGS_S=	$(LDFLAGS) --error-unresolved-symbols
29
LDFLAGS+=	-r -d
30
endif
31

    
32
endif # !_PCC_MK_