Subversion Repositories DevTools

Rev

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

Rev 335 Rev 6177
Line 148... Line 148...
148
		$(patsubst %,-I %,$(cc_includes)) \
148
		$(patsubst %,-I %,$(cc_includes)) \
149
		$(patsubst %,-I %,$(vrx_includes))
149
		$(patsubst %,-I %,$(vrx_includes))
150
cc_term		=
150
cc_term		=
151
 
151
 
152
define cc_pre
152
define cc_pre
153
	@echo [$<] compiling..
153
	@echo '[$<] compiling..'
154
endef
154
endef
155
 
155
 
156
ifdef USE_LIST
156
ifdef USE_LIST
157
define cc_post
157
define cc_post
158
		$(mv) $(basename $(@F)).lst $(basename $@).lst
158
		$(mv) $(basename $(@F)).lst $(basename $@).lst
Line 177... Line 177...
177
		$(patsubst %,-I %,$(INCDIRS)) \
177
		$(patsubst %,-I %,$(INCDIRS)) \
178
		$(patsubst %,-I %,$(cxx_includes)) \
178
		$(patsubst %,-I %,$(cxx_includes)) \
179
		$(patsubst %,-I %,$(vrx_includes))
179
		$(patsubst %,-I %,$(vrx_includes))
180
 
180
 
181
define cxx_pre
181
define cxx_pre
182
	@echo [$<] compiling..
182
	@echo '[$<] compiling..'
183
endef
183
endef
184
 
184
 
185
define cxx_post
185
define cxx_post
186
endef
186
endef
187
 
187
 
Line 214... Line 214...
214
ld_flags	= -map -symbols \
214
ld_flags	= -map -symbols \
215
		$(patsubst %,%,$(LDFLAGS)) \
215
		$(patsubst %,%,$(LDFLAGS)) \
216
		$($(notdir $(basename $@))_ld) \
216
		$($(notdir $(basename $@))_ld) \
217
                $(VRX_SYSLIBS)
217
                $(VRX_SYSLIBS)
218
 
218
 
219
ld_pre   	= @echo [$@] Linking..;
219
ld_pre   	= @echo '[$@] Linking..';
220
ld_post		=
220
ld_post		=
221
 
221
 
222
################################################################################
222
################################################################################
223
#	Library dependency file generation
223
#	Library dependency file generation
224
#	Use cmdfile to create a file that will be included in this makefile
224
#	Use cmdfile to create a file that will be included in this makefile
Line 240... Line 240...
240
ar_cmdfile      = $(basename $@).ar
240
ar_cmdfile      = $(basename $@).ar
241
ar_flags        =
241
ar_flags        =
242
ar_o_switch     = -via $(ar_cmdfile)
242
ar_o_switch     = -via $(ar_cmdfile)
243
 
243
 
244
define ar_pre
244
define ar_pre
245
        @$(echo) [\$@] Creating library archive.. ; \
245
        @$(echo) '[$@] Creating library archive..' ; \
246
        $(rm) -f $@ ;\
246
        $(rm) -f $@ ;\
247
        $(cmdfile) -ko$(ar_cmdfile) \
247
        $(cmdfile) -ko$(ar_cmdfile) \
248
                -create $@\\n\
248
                -create $@\\n\
249
                $(patsubst %,-r %\\n,$(filter %.o, $^))
249
                $(patsubst %,-r %\\n,$(filter %.o, $^))
250
endef
250
endef
Line 267... Line 267...
267
armerge_init         =
267
armerge_init         =
268
armerge_flags        = -create $@ -r $^
268
armerge_flags        = -create $@ -r $^
269
armerge_o_switch     =
269
armerge_o_switch     =
270
 
270
 
271
define armerge_pre
271
define armerge_pre
272
        @$(echo) [\$@] Creating a Merged library.. ; \
272
        @$(echo) '[$@] Creating a Merged library..' ; \
273
        $(rm) -f $@
273
        $(rm) -f $@
274
endef
274
endef
275
 
275
 
276
armerge_post 	     =
276
armerge_post 	     =
277
 
277
 
Line 284... Line 284...
284
#	$1 Command line arguments
284
#	$1 Command line arguments
285
#	$2 Comment
285
#	$2 Comment
286
#
286
#
287
# Assumes that $@ is the input/output file
287
# Assumes that $@ is the input/output file
288
define HEADER
288
define HEADER
289
        @$(echo) [$@] $(2)..
289
        @$(echo) '[$@] $(2)..'
290
        $(CC_PRE) $(VERIX_hdr) $1 $@ || ( $(rm) -f $@; exit 1 )
290
        $(CC_PRE) $(VERIX_hdr) $1 $@ || ( $(rm) -f $@; exit 1 )
291
endef
291
endef
292
 
292
 
293
 
293
 
294
################################################################################
294
################################################################################
Line 305... Line 305...
305
#        - '\' for its input file
305
#        - '\' for its input file
306
#        - Absolute pathname for its input file
306
#        - Absolute pathname for its input file
307
#
307
#
308
#
308
#
309
define FILESIGNATURE
309
define FILESIGNATURE
310
	@echo [$<] Signing Files ..;
310
	@echo '[$<] Signing Files ..';
311
	$(CC_PRE) $(subst /,\\,$(VERIX_FileSignature)) -C $2 -F $(subst /,\\,$(abspath  $1)) $3
311
	$(CC_PRE) $(subst /,\\,$(VERIX_FileSignature)) -C $2 -F $(subst /,\\,$(abspath  $1)) $3
312
endef
312
endef
313
 
313
 
314
 
314
 
315
#
315
#