Subversion Repositories DevTools

Rev

Rev 227 | Rev 335 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 227 Rev 279
Line 62... Line 62...
62
ifdef cc_filter
62
ifdef cc_filter
63
cc_redirect_stderr     = 1
63
cc_redirect_stderr     = 1
64
cc_error_filter = $(awk) -f $(GBE_ROOT)/warnings.m16c
64
cc_error_filter = $(awk) -f $(GBE_ROOT)/warnings.m16c
65
endif
65
endif
66
 
66
 
67
ifdef LEAVETMP
67
ifneq ($(SHOWARGS),NONE)
68
cc_opts       += -g
68
cc_opts       += -v
69
endif
69
endif
70
 
70
 
71
ifdef USE_STRICT_ANSI
71
ifdef LEAVETMP
72
cc_opts       +=
72
cc_opts       += -g
73
else
-
 
74
cc_opts       +=
-
 
75
endif
73
endif
76
 
74
 
-
 
75
#ifdef USE_STRICT_ANSI
-
 
76
#cc_opts       +=
-
 
77
#else
-
 
78
#cc_opts       +=
-
 
79
#endif
77
 
80
 
78
ifdef USE_OPTIMISE
81
ifdef USE_OPTIMISE
79
cc_opts       += -OS
82
cc_opts       += -OS
80
else
83
else
81
cc_opts       +=
-
 
82
endif
84
endif
83
 
85
 
84
ifdef USE_DEBUGINFO
86
ifdef USE_DEBUGINFO
85
cc_opts       += -g -DDEBUG
87
cc_opts       += -g -DDEBUG
86
else
88
else
Line 101... Line 103...
101
cc_opts       += -DDLVL=$(DLVL)
103
cc_opts       += -DDLVL=$(DLVL)
102
endif
104
endif
103
 
105
 
104
cc_opts       += -D__SOURCE__=$(notdir $<)
106
cc_opts       += -D__SOURCE__=$(notdir $<)
105
 
107
 
106
cc_includes = $(patsubst %,-I%,$(INCDIRS))
108
cc_includes    = $(patsubst %,-I%,$(INCDIRS))
107
 
-
 
108
 
109
 
109
cc_pre = @$(echo) [$<] compiling..
110
cc_pre = @$(echo) [$<] compiling..
110
cc_post =
111
cc_post =
111
 
112
 
-
 
113
###############################################################################
-
 
114
#	Compiler sanity test
-
 
115
#	It can only handle 16 include paths
-
 
116
#	Create an error if there are too many
-
 
117
#
-
 
118
ifneq ($(word 17, $(INCDIRS)),)
-
 
119
$(info ERROR. Too many included directories for the MCR compiler)
-
 
120
$(info $(space)      The limit is 16. Complete list is:)
-
 
121
$(foreach aa,$(INCDIRS), $(info $(space)       $(aa)))
-
 
122
$(error Too many included directories for the MCR compiler)
-
 
123
endif
112
 
124
 
113
###############################################################################
125
###############################################################################
114
#..     C/C++ dependencies
126
#..     C/C++ dependencies
115
#       depend and depend.err
127
#       depend and depend.err
116
#
128
#