Subversion Repositories DevTools

Rev

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

Rev 227 Rev 245
Line 69... Line 69...
69
#..     C Compiler definition
69
#..     C Compiler definition
70
#
70
#
71
ifndef SUNWSPRO_SC
71
ifndef SUNWSPRO_SC
72
    $(error Internal: SUNWSPRO_SC has not been defined by the build system)
72
    $(error Internal: SUNWSPRO_SC has not been defined by the build system)
73
endif
73
endif
-
 
74
ifndef AR_PATH
-
 
75
    $(error Internal: AR_PATH has not been defined by the build system)
-
 
76
endif
-
 
77
 
-
 
78
#
-
 
79
#	Ensure that AR can be found in the path
-
 
80
#	Place the compiler in the path for good measure
-
 
81
 
-
 
82
#
-
 
83
PATH := $(AR_PATH):$(SUNWSPRO_SC)/bin:$(PATH)
-
 
84
export PATH
74
 
85
 
75
CCOMPILER       := cc
86
CCOMPILER       := cc
76
 
87
 
77
ifdef FORCE_C_COMPILE
88
ifdef FORCE_C_COMPILE
78
 CCOMPILER      := cc
89
 CCOMPILER      := cc
Line 170... Line 181...
170
ifndef USE_CCDEPEND
181
ifndef USE_CCDEPEND
171
ccdep		= $(XX_PRE) $(GBE_BIN)/mkdepend
182
ccdep		= $(XX_PRE) $(GBE_BIN)/mkdepend
172
ccdep_init	=
183
ccdep_init	=
173
ccdep_o_switch	= -o.${o} -f -
184
ccdep_o_switch	= -o.${o} -f -
174
else
185
else
175
ccdep		= $(XX_PRE) CC
186
ccdep		= $(XX_PRE) $(SUNWSPRO_SC)/bin/CC
176
ccdep_init	=
187
ccdep_init	=
177
ccdep_o_switch	= -E
188
ccdep_o_switch	= -E
178
endif
189
endif
179
 
190
 
180
ccdep_source	= $(filter %.c %.cc %.cpp, $+) > $(subst /,/,$@).tmp 2> depend.err
191
ccdep_source	= $(filter %.c %.cc %.cpp, $+) > $(subst /,/,$@).tmp 2> depend.err
Line 245... Line 256...
245
ifdef suncc_filter
256
ifdef suncc_filter
246
cxx_redirect_stderr = 1
257
cxx_redirect_stderr = 1
247
cxx_error_filter = $(awk) -f $(suncc_filter)
258
cxx_error_filter = $(awk) -f $(suncc_filter)
248
endif
259
endif
249
 
260
 
250
cxx		= $(CC_PRE)$(CC_PURIFY) CC
261
cxx		= $(CC_PRE)$(CC_PURIFY) $(SUNWSPRO_SC)/bin/CC
251
cxx_init	=
262
cxx_init	=
252
cxx_o_switch	= -o $@
263
cxx_o_switch	= -o $@
253
cxx_source	= $<
264
cxx_source	= $<
254
cxx_flags	= \
265
cxx_flags	= \
255
		$(patsubst %,%,$(CXXFLAGS)) \
266
		$(patsubst %,%,$(CXXFLAGS)) \