Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (893 Bytes)

1
ifndef _OWN_MK_
2
_OWN_MK_:=	1
3

    
4
# Build flavor
5
#_DEBUG_:=	1
6
#_QUICK_:=	1
7
#_STRICT_:=	1
8
#_SILENT_:=	1
9

    
10
# Clean the slate
11
CFLAGS=
12
CPPFLAGS=
13
LDFLAGS=
14
ASFLAGS=
15
STRIPFLAG=
16

    
17
ifndef _CONFIG_MK_
18
-include $(SRCDIR)/conf/config.mk
19
export SRCDIR
20
endif
21

    
22
LINT:=		splint
23
#LINT:=		lint
24
RM:=		rm -f
25
CAT:=		cat
26
ifdef SHELL_PATH
27
SHELL:=		$(SHELL_PATH)
28
endif
29

    
30
# We assume GNU make...
31
MAKEFLAGS+=	-rR --no-print-directory
32

    
33
ifeq ($(LINT),splint)
34
LINTFLAGS:=	-D__lint__ -weak -nolib -retvalother -fcnuse
35
else
36
LINTFLAGS:=	-D__lint__ -x -u
37
endif
38

    
39
INCSDIR:=	$(SRCDIR) $(SRCDIR)/include
40
DEFS+=		__$(ARCH)__ __$(PLATFORM)__
41

    
42
ifneq ($(NDEBUG),1)
43
ifeq ($(_DEBUG_),1)
44
DEFS+=		DEBUG
45
DEBUG:=		1
46
endif
47
endif
48

    
49
RAWCC:=		$(CC)
50
ifeq ($(_SILENT_),1)
51
CC:=		@$(CC)
52
CPP:=		@$(CPP)
53
AS:=		@$(AS)
54
LD:=		@$(LD)
55
AR:=		@$(AR)
56
STRIP:=		@$(STRIP)
57
OBJCOPY:=	@$(OBJCOPY)
58
OBJDUMP:=	@$(OBJDUMP)
59
RM:=		@$(RM)
60
CAT:=		@$(CAT)
61
endif
62

    
63
endif # !_OWN_MK_