Subversion Repositories DevTools

Rev

Rev 4538 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4538 Rev 6177
Line 153... Line 153...
153
suncc_flags	+= -DDLVL=$(DLVL)
153
suncc_flags	+= -DDLVL=$(DLVL)
154
endif
154
endif
155
suncc_flags	+= -D__SOURCE__=\"$(notdir $<)\"
155
suncc_flags	+= -D__SOURCE__=\"$(notdir $<)\"
156
 
156
 
157
define cc_pre
157
define cc_pre
158
	@echo [$<] compiling..
158
	@echo '[$<] compiling..'
159
endef
159
endef
160
 
160
 
161
define cc_post
161
define cc_post
162
endef
162
endef
163
 
163
 
Line 269... Line 269...
269
		$(patsubst %,-I%,$(INCDIRS)) \
269
		$(patsubst %,-I%,$(INCDIRS)) \
270
		$(patsubst %,-I%,$(cxx_includes)) \
270
		$(patsubst %,-I%,$(cxx_includes)) \
271
		$(patsubst %,-I%,$(suncc_includes))
271
		$(patsubst %,-I%,$(suncc_includes))
272
 
272
 
273
define cxx_pre
273
define cxx_pre
274
	@echo [$<] compiling..
274
	@echo '[$<] compiling..'
275
endef
275
endef
276
 
276
 
277
define cxx_post
277
define cxx_post
278
endef
278
endef
279
 
279
 
Line 304... Line 304...
304
endif
304
endif
305
as_defines	:= $(addprefix -D,$(as_defines))
305
as_defines	:= $(addprefix -D,$(as_defines))
306
as_defines	+= $(as_flags)
306
as_defines	+= $(as_flags)
307
 
307
 
308
define as_pre
308
define as_pre
309
	@echo [$@] compiling
309
	@echo '[$@] compiling..'
310
	@$(cmdfile) -ko$(as_cmdfile) "\
310
	@$(cmdfile) -ko$(as_cmdfile) "\
311
		$(patsubst %,%\\n,$(ASFLAGS)) \
311
		$(patsubst %,%\\n,$(ASFLAGS)) \
312
		$(patsubst %,%\\n,$(as_defines)) \
312
		$(patsubst %,%\\n,$(as_defines)) \
313
		$(patsubst %,$(as_i_switch)%\\n,$(INCDIRS)) \
313
		$(patsubst %,$(as_i_switch)%\\n,$(INCDIRS)) \
314
		$(patsubst %,$(as_i_switch)%\\n,$(as_includes)) \
314
		$(patsubst %,$(as_i_switch)%\\n,$(as_includes)) \
Line 334... Line 334...
334
ar_init 	=
334
ar_init 	=
335
ar_flags	= -xar -o
335
ar_flags	= -xar -o
336
ar_o_switch	= $@ $^
336
ar_o_switch	= $@ $^
337
 
337
 
338
define ar_pre
338
define ar_pre
339
	@echo [$@] Building library..
339
	@echo '[$@] Building library ..'
340
endef
340
endef
341
 
341
 
342
define ar_post
342
define ar_post
343
endef
343
endef
344
 
344
 
Line 349... Line 349...
349
armerge_init	=
349
armerge_init	=
350
armerge_flags	= -d $(MLIBDIR) -t unix
350
armerge_flags	= -d $(MLIBDIR) -t unix
351
armerge_o_switch= $@ $^
351
armerge_o_switch= $@ $^
352
 
352
 
353
define armerge_pre
353
define armerge_pre
354
	@echo [$@] Building merged library..
354
	@echo '[$@] Building merged library ..'
355
	-@$(rm) -f $@
355
	-@$(rm) -f $@
356
endef
356
endef
357
 
357
 
358
armerge_post	=
358
armerge_post	=
359
 
359
 
Line 377... Line 377...
377
		$(patsubst %,-L%,$(LIBDIRS)) \
377
		$(patsubst %,-L%,$(LIBDIRS)) \
378
		$(patsubst %,-%,$(LDFLAGS)) \
378
		$(patsubst %,-%,$(LDFLAGS)) \
379
		$($(notdir $(SHBASE))_shld)
379
		$($(notdir $(SHBASE))_shld)
380
 
380
 
381
define shld_pre
381
define shld_pre
382
	@echo [$@] Linking shared library ..
382
	@echo '[$@] Linking shared library ..'
383
endef
383
endef
384
 
384
 
385
define shld_post
385
define shld_post
386
endef
386
endef
387
 
387
 
Line 406... Line 406...
406
		$(patsubst %,-L%,$(LIBDIRS)) \
406
		$(patsubst %,-L%,$(LIBDIRS)) \
407
		$(patsubst %,-%,$(LDFLAGS)) \
407
		$(patsubst %,-%,$(LDFLAGS)) \
408
		$($(notdir $(basename $@))_ld)
408
		$($(notdir $(basename $@))_ld)
409
 
409
 
410
define ld_pre
410
define ld_pre
411
	@echo [$@] Linking application ..
411
	@echo '[$@] Linking application ..'
412
endef
412
endef
413
 
413
 
414
define ld_post
414
define ld_post
415
endef
415
endef
416
 
416