Subversion Repositories DevTools

Rev

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

Rev 267 Rev 303
Line 1... Line 1...
1
# -*- mode: mak; -*-
1
# -*- mode: mak; -*-
2
###############################################################################
2
###############################################################################
3
# File:         TOOLSET/vcwce.rul[e]
3
# File:         TOOLSET/vcwce.rul[e]
4
# Contents:     eMbedded C++ rules
4
# Contents:     eMbedded C++ rules
5
#
5
#
6
# Version   Who      Date        Description#
-
 
7
#           APY      26/04/04    Created
-
 
8
#
-
 
9
# $Source: /cvsroot/etm/devl/CFG/TOOLSET/VCWCE.RUL,v $
-
 
10
# $Revision: 1.8 $ $Date: 2004/06/29 06:40:24 $ $State: Exp $
-
 
11
# $Author: ayoung $ $Locker:  $
-
 
12
#............................................................................#
-
 
13
 
-
 
14
###############################################################################
6
###############################################################################
15
#..     Remove "undef" warnings
7
#..     Remove "undef" warnings
16
#
8
#
-
 
9
vc_includes	+=
-
 
10
vc_libs		+=
17
cc_includes	+=
11
cc_includes	+=
18
cc_defines	+=
12
cc_defines	+=
19
cxx_includes	+=
13
cxx_includes	+=
20
cxx_defines	+=
14
cxx_defines	+=
21
 
15
 
Line 31... Line 25...
31
else
25
else
32
ifneq "$(findstring purecov,$(OPTIONS))" ""	# Enable pure coverage
26
ifneq "$(findstring purecov,$(OPTIONS))" ""	# Enable pure coverage
33
endif
27
endif
34
endif
28
endif
35
 
29
 
36
ifneq "$(findstring ignoreenv,$(OPTIONS))" ""	# Ignore WCE_LIB and WCE_INCLUDE vars
-
 
37
IGNOREENV	= 1
-
 
38
endif
-
 
39
 
-
 
40
ifneq "$(findstring ccdepend,$(OPTIONS))" ""	# Build depends using CC
30
ifneq "$(findstring ccdepend,$(OPTIONS))" ""	# Build depends using CC
41
endif
31
endif
42
 
32
 
43
ifneq "$(findstring wall,$(OPTIONS))" ""	# Enable all warnings
33
ifneq "$(findstring wall,$(OPTIONS))" ""	# Enable all warnings
44
USE_WALL	= 1
34
USE_WALL	= 1
45
endif
35
endif
46
 
36
 
47
ifneq "$(findstring gensbr,$(OPTIONS))" ""     # Generate Source Browser Files
37
ifneq "$(findstring gensbr,$(OPTIONS))" ""      # Generate Source Browser Files
48
GEN_SBR_FILES	= 1
38
GEN_SBR_FILES	= 1
49
endif
39
endif
50
 
40
 
51
endif
41
endif
52
 
42
 
-
 
43
################################################################################
-
 
44
#   Define a macro to assist in selecting compiler options based on the
-
 
45
#   type of compiler being being used. New versions of compilers will deprecate
-
 
46
#   options or replace some
-
 
47
#
-
 
48
#   select_co	- Select Compiler Option
-
 
49
#		- Arguments are for the different compilers as defined by VSCOMPILER
-
 
50
#		  VSCOMPILER in the range 1.. as defined in the .PL file
-
 
51
#
-
 
52
#		  Current usage
-
 
53
#			1 - evc
-
 
54
#			2 - vs2005
-
 
55
#
-
 
56
$(if $(VSCOMPILER),,$(error VCWIN32 toolset requires VSCOMPILER to be defined))
-
 
57
select_co = $(subst --,,$(word $(VSCOMPILER),$1 $2 $3))
-
 
58
 
-
 
59
###############################################################################
-
 
60
#  Add in SDK specfic paths
-
 
61
#  Already have Framework specfic paths
-
 
62
#
-
 
63
 
-
 
64
# Standard includes
-
 
65
#
-
 
66
#..
-
 
67
vc_includes	+=\
-
 
68
		$(call encodepath,$(SDKROOT)/Include/$(WCE_TARGETCPU))\
-
 
69
		$(call encodepath,$(SDKROOT)/MFC/Include)\
-
 
70
		$(call encodepath,$(SDKROOT)/ATL/Include)
-
 
71
 
-
 
72
# Standard library paths
-
 
73
#
-
 
74
#..
-
 
75
ifdef WCE_EMULATOR
-
 
76
vc_libs		+=\
-
 
77
		$(call encodepath,$(SDKROOT)/Lib/$(WCE_TARGETCPU))\
-
 
78
		$(call encodepath,$(SDKROOT)/MFC/Lib/$(WCE_HOSTCPU))\
-
 
79
		$(call encodepath,$(SDKROOT)/ATL/Lib/$(WCE_HOSTCPU))
-
 
80
else
-
 
81
vc_libs		+=\
-
 
82
		$(call encodepath,$(SDKROOT)/Lib/$(WCE_TARGETCPU))\
-
 
83
		$(call encodepath,$(SDKROOT)/MFC/Lib/$(WCE_TARGETCPU))\
-
 
84
		$(call encodepath,$(SDKROOT)/ATL/Lib/$(WCE_TARGETCPU))
-
 
85
endif
-
 
86
 
-
 
87
###############################################################################
-
 
88
#   Standard include paths - in the order they should be searched
-
 
89
#	INCDIRS				- Local and Global Interface paths
-
 
90
#					  Relative and absolute
-
 
91
#					  No spaces in paths
-
 
92
#	cc_includes			- Toolset paths (this toolset)
-
 
93
#					  Relative and absolute
-
 
94
#					  No spaces in paths
-
 
95
#	vc_includes			- SDK paths
-
 
96
#					  Encoded to handle spaces in paths
-
 
97
#
-
 
98
#  These are then converted into
-
 
99
#	INCLUDE_LIST			- Encoded Path List
-
 
100
#	INCLUDE				- Colon Sep, May have spaces, Uses /
-
 
101
#
-
 
102
#  Note: Convert INCDIRS to absolute paths for project/solution builds
-
 
103
#
-
 
104
INCLUDE_LIST = $(wildcard $(call myabspath,$(INCDIRS))) $(cc_includes) $(vc_includes)
-
 
105
INCLUDE = $(call decodepath,,;,$(INCLUDE_LIST))
-
 
106
export INCLUDE
-
 
107
 
-
 
108
###############################################################################
-
 
109
#   Standard library paths - in the order they should be searched
-
 
110
#	LIBDIRS				- Local and Global Interface paths
-
 
111
#					  Relative and absolute
-
 
112
#					  No spaces in paths
-
 
113
#	vc_libs    			- SDK paths
-
 
114
#					  Encoded to handle spaces in paths
-
 
115
#
-
 
116
#  These are then converted into
-
 
117
#	INCLUDE_LIST			- Encoded Path List
-
 
118
#	INCLUDE				- Colon Sep, May have spaces, Uses /
-
 
119
#
-
 
120
#  Note: Convert INCDIRS to absolute paths for project/solution builds
-
 
121
#
-
 
122
LIB_LIST = $(wildcard $(call myabspath,$(LIBDIRS))) $(vc_libs)
-
 
123
LIB = $(call decodepath,,;,$(LIB_LIST))
-
 
124
export LIB
-
 
125
 
-
 
126
#$(info INCLUDE_LIST: $(INCLUDE_LIST))
-
 
127
#$(info INCLUDE: $(INCLUDE))
-
 
128
#
-
 
129
#$(info LIB_LIST: $(LIB_LIST))
-
 
130
#$(info LIB: $(LIB))
-
 
131
 
53
###############################################################################
132
###############################################################################
54
#..     Compiler definitions
133
#..     Compiler definitions
55
#
134
#
56
 
135
 
57
#..     C Compiler definition
136
#..     C Compiler definition
Line 196... Line 275...
196
endif
275
endif
197
 
276
 
198
ifndef PDB_NONE                 # Supress PDB generation
277
ifndef PDB_NONE                 # Supress PDB generation
199
vc_flags	+= -Zi
278
vc_flags	+= -Zi
200
endif
279
endif
201
vc_flags	+= -YX
280
vc_flags	+= $(call select_co,-YX,--)
202
vc_flags	+= -Fp$(subst /,\\,$(OBJDIR)/)
281
vc_flags	+= -Fp$(subst /,\\,$(OBJDIR)/)
203
vc_flags	+= -Fd$(subst /,\\,$(PDB))
282
vc_flags	+= -Fd$(subst /,\\,$(PDB))
204
 
283
 
205
ifdef GEN_SBR_FILES
284
ifdef GEN_SBR_FILES
206
vc_flags	+= -FR$(subst /,\\,$(basename $@).sbr)
285
vc_flags	+= -FR$(subst /,\\,$(basename $@).sbr)
Line 211... Line 290...
211
ifeq "\$(WCE_CC)" "cl"
290
ifeq "\$(WCE_CC)" "cl"
212
SHCFLAGS	+= -GD
291
SHCFLAGS	+= -GD
213
SHCXXFLAGS	+= -GD
292
SHCXXFLAGS	+= -GD
214
endif
293
endif
215
 
294
 
216
	# Standard includes
-
 
217
	#
-
 
218
	#..
-
 
219
ifndef IGNOREENV
-
 
220
ifdef WCE_INCLUDE
-
 
221
vc_includes	=\
-
 
222
		$(subst ;,$(space),$(subst \,/,$(subst $(space),$(spacealt),$(WCE_INCLUDE))))
-
 
223
endif
-
 
224
endif
-
 
225
ifndef vc_includes
-
 
226
vc_includes	=\
-
 
227
		$(sdkroot)/Include/$(WCE_TARGETCPU)\
-
 
228
		$(sdkroot)/MFC/Include\
-
 
229
		$(sdkroot)/ATL/Include
-
 
230
WCE_INCLUDE	=
-
 
231
export WCE_INCLUDE	# Zap env image
-
 
232
endif
-
 
233
ifdef MSVCDir
-
 
234
INCLUDE		=
-
 
235
export INCLUDE		# Dual installtion, clean env
-
 
236
endif
-
 
237
 
-
 
238
	# Command
295
# Command
239
	#
296
#
240
	#..
297
#..
241
cc		= $(CC_PRE) $(WCE_CC)
298
cc		= $(CC_PRE) $(WCE_CC)
242
cc_init 	=
299
cc_init 	=
243
cc_o_switch	= $(subst /,\\,-Fo$@)
300
cc_o_switch	= $(subst /,\\,-Fo$@)
244
cc_source	= $(subst /,\\,$<)
301
cc_source	= $(subst /,\\,$<)
245
cc_flags	= \
302
cc_flags	= \
246
		$(strip $(vc_compile_flags)) \
303
		$(strip $(vc_compile_flags)) \
247
		$(strip $(patsubst %,%,$(vc_flags))) \
304
		$(strip $(patsubst %,%,$(vc_flags))) \
248
		$(strip $(patsubst %,%,$(vc_defines))) \
305
		$(strip $(patsubst %,%,$(vc_defines))) \
249
		$(patsubst %,%,$(CFLAGS)) \
306
		$(patsubst %,%,$(CFLAGS)) \
250
		$(patsubst %,-D%,$(cc_defines)) \
307
		$(patsubst %,-D%,$(cc_defines)) \
251
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(INCDIRS)))) \
308
                $(call decodepath,-I","$(spacealt),$(INCLUDE_LIST))
252
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(cc_includes)))) \
-
 
253
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(vc_includes))))
-
 
254
cc_term		=
309
cc_term		=
255
 
310
 
256
define cc_pre
311
define cc_pre
257
	@$(echo) [$<] compiling..;
312
	@$(echo) [$<] compiling..;
258
endef
313
endef
Line 292... Line 347...
292
		$(patsubst %,%,$(vc_defines)) \
347
		$(patsubst %,%,$(vc_defines)) \
293
		$(patsubst %,%,$(CFLAGS)) \
348
		$(patsubst %,%,$(CFLAGS)) \
294
		$(patsubst %,%,$(CXXFLAGS)) \
349
		$(patsubst %,%,$(CXXFLAGS)) \
295
		$(patsubst %,-D%,$(cc_defines)) \
350
		$(patsubst %,-D%,$(cc_defines)) \
296
		$(patsubst %,-D%,$(cxx_defines)) \
351
		$(patsubst %,-D%,$(cxx_defines)) \
297
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(INCDIRS)))) \
-
 
298
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(cc_includes)))) \
352
                $(call decodepath,-I","$(spacealt),$(INCDIRS) $(cc_includes)) \
299
		$(subst $(spacealt),$(space),$(patsubst %,-Y"%",$(subst /,\,$(vc_includes)))) \
353
                $(call decodepath,-Y","$(spacealt),$(vc_includes)) \
300
		$(patsubst %,-Y %,$(NODEPDIRS))
354
		$(patsubst %,-Y %,$(NODEPDIRS))
301
 
355
 
302
ccdep_pre	=
356
ccdep_pre	=
303
ccdep_post	=
357
ccdep_post	=
304
 
358
 
Line 308... Line 362...
308
lint_flags	+= \
362
lint_flags	+= \
309
	$(patsubst %,%,$(vc_depend)) \
363
	$(patsubst %,%,$(vc_depend)) \
310
	$(subst -D$(space),-D,$(patsubst %,%,$(vc_defines))) \
364
	$(subst -D$(space),-D,$(patsubst %,%,$(vc_defines))) \
311
	$(patsubst %,%,$(CLINTFLAGS)) \
365
	$(patsubst %,%,$(CLINTFLAGS)) \
312
	$(patsubst %,-D%,$(cc_defines)) \
366
	$(patsubst %,-D%,$(cc_defines)) \
313
	$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(INCDIRS))) \
367
        $(call decodepath,-I","$(spacealt),$(INCLUDE_LIST))
314
	$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(cc_includes))) \
-
 
315
	$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(vc_includes)))
-
 
316
 
368
 
317
lint_libpath	= $(VC_LIB)
369
lint_libpath	= $(LIB)
318
 
370
 
319
#..     C++ Compiler definitions
371
#..     C++ Compiler definitions
320
#
372
#
321
cxx		= $(CC_PRE) $(WCE_CC)
373
cxx		= $(CC_PRE) $(WCE_CC)
322
cxx_init	=
374
cxx_init	=
Line 325... Line 377...
325
cxx_flags	= -TP \
377
cxx_flags	= -TP \
326
		$(patsubst %,%,$(vc_flags)) \
378
		$(patsubst %,%,$(vc_flags)) \
327
		$(patsubst %,%,$(vc_defines)) \
379
		$(patsubst %,%,$(vc_defines)) \
328
		$(patsubst %,%,$(CXXFLAGS)) \
380
		$(patsubst %,%,$(CXXFLAGS)) \
329
		$(patsubst %,-D%,$(cxx_defines)) \
381
		$(patsubst %,-D%,$(cxx_defines)) \
330
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(INCDIRS)))) \
382
                $(call decodepath,-I","$(spacealt),$(INCLUDE_LIST))
331
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(cxx_includes)))) \
-
 
332
		$(subst $(spacealt),$(space),$(patsubst %,-I"%",$(subst /,\,$(vc_includes))))
-
 
333
cxx_term	=
383
cxx_term	=
334
 
384
 
335
define cxx_pre
385
define cxx_pre
336
	@echo [$<] compiling..;
386
	@echo [$<] compiling..;
337
endef
387
endef
Line 374... Line 424...
374
define as_pre
424
define as_pre
375
	@$(cmdfile) -wkWeo$(as_cmdfile) "\
425
	@$(cmdfile) -wkWeo$(as_cmdfile) "\
376
		$(patsubst %,%\\n,$(ASFLAGS)) \
426
		$(patsubst %,%\\n,$(ASFLAGS)) \
377
		$(patsubst %,%\\n,$(as_defines)) \
427
		$(patsubst %,%\\n,$(as_defines)) \
378
		$(patsubst %,$(as_i_switch)%\\n,$(subst /,\\\\,$(INCLUDES))) \
428
		$(patsubst %,$(as_i_switch)%\\n,$(subst /,\\\\,$(INCLUDES))) \
379
		$(patsubst %,$(as_i_switch)%\\n,$(subst /,\\\\,$(as_includes)))"
429
		$(patsubst %,$(as_i_switch)%\\n,$(subst /,\\\\,$(as_includes)))";\
-
 
430
	        $(call show_cmdfile,$(as_cmdfile))
-
 
431
                
380
endef
432
endef
381
 
433
 
382
ifndef LEAVETMP
434
ifndef LEAVETMP
383
define as_post
435
define as_post
384
	@$(rm) -f $(as_cmdfile)
436
	@$(rm) -f $(as_cmdfile)
Line 396... Line 448...
396
#..     Archiver
448
#..     Archiver
397
#       Need to set up LIB to allow the librarian to locate libraries
449
#       Need to set up LIB to allow the librarian to locate libraries
398
#       This feature is needed when building DLL stub libraries
450
#       This feature is needed when building DLL stub libraries
399
#
451
#
400
#
452
#
401
ar		= $(XX_PRE)export LIB; LIB="$(VC_LIB)"; lib
453
ar		= $(XX_PRE)lib
402
ar_init 	=
454
ar_init 	=
403
ar_flags	= -nologo $(WCE_LIBFLAGS)
455
ar_flags	= -nologo $(WCE_LIBFLAGS)
404
ifeq "$(DEBUG)" "1"
456
ifeq "$(DEBUG)" "1"
405
ar_flags	+= -debugtype:cv
457
ar_flags	+= -debugtype:cv
406
endif
458
endif
Line 436... Line 488...
436
 
488
 
437
###############################################################################
489
###############################################################################
438
#..     Linker
490
#..     Linker
439
#
491
#
440
 
492
 
441
	# Standard library paths
-
 
442
	#
-
 
443
	#..
-
 
444
ifndef IGNOREENV
-
 
445
ifdef WCE_LIB
-
 
446
vc_libs		=\
-
 
447
		$(subst ;,$(space),$(subst \,/,$(subst $(space),$(spacealt),$(WCE_LIB))))
-
 
448
endif
-
 
449
endif
-
 
450
ifndef vc_libs
-
 
451
ifdef WCE_EMULATOR
-
 
452
vc_libs		=\
-
 
453
		$(sdkroot)/Lib/$(WCE_TARGETCPU)\
-
 
454
		$(sdkroot)/MFC/Lib/$(WCE_HOSTCPU)\
-
 
455
		$(sdkroot)/ATL/Lib/$(WCE_HOSTCPU)
-
 
456
else
-
 
457
vc_libs		=\
-
 
458
		$(sdkroot)/Lib/$(WCE_TARGETCPU)\
-
 
459
		$(sdkroot)/MFC/Lib/$(WCE_TARGETCPU)\
-
 
460
		$(sdkroot)/ATL/Lib/$(WCE_TARGETCPU)
-
 
461
endif
-
 
462
WCE_LIB		=
-
 
463
export WCE_LIB		# Zap env image
-
 
464
endif
-
 
465
ifdef MSVCDir
-
 
466
LIB		=
-
 
467
export LIB		# Dual installation, clean env
-
 
468
endif
-
 
469
 
-
 
470
ALL_LIBDIRS = $(LIBDIRS);$(vc_libs)
-
 
471
VC_LIB		=\
-
 
472
		$(subst $(spacealt),$(space),$(subst $(space),$(empty),$(patsubst %,%;,$(subst /,\,$(ALL_LIBDIRS)))))
-
 
473
 
-
 
474
	# Standard flags
493
	# Standard flags
475
	#
494
	#
476
	#..
495
	#..
477
vc_ldflags	= \
496
vc_ldflags	= \
478
		-nologo\\n\
497
		-nologo\\n\
479
		-incremental:no\\n\
498
		-incremental:no\\n
480
		-debug:full\\n
-
 
481
 
499
 
482
ifdef WCE_LDFLAGS				# Platform specific
500
ifdef WCE_LDFLAGS				# Platform specific
483
vc_ldflags	+= $(patsubst %,%\\n,$(WCE_LDFLAGS))              
501
vc_ldflags	+= $(patsubst %,%\\n,$(WCE_LDFLAGS))              
484
endif
502
endif
485
 
503
 
Line 492... Line 510...
492
vc_ldflags	+= $(patsubst %,%\\n,$(WCE_LDFLAGSP))
510
vc_ldflags	+= $(patsubst %,%\\n,$(WCE_LDFLAGSP))
493
endif
511
endif
494
endif
512
endif
495
 
513
 
496
vc_ldflags	+= \
514
vc_ldflags	+= \
497
		$(subst $(spacealt),$(space),$(patsubst %,-libpath:\"%\"\\n,$(subst /,\\\\,$(LIBDIRS))))\
515
		$(call decodepath,-libpath:\",\"\\n,$(LIB_LIST)) \
498
		$(subst $(spacealt),$(space),$(patsubst %,-libpath:\"%\"\\n,$(subst /,\\\\,$(vc_libs))))\
-
 
499
		$(patsubst %,-%\\n,$(LDFLAGS))
516
		$(patsubst %,-%\\n,$(LDFLAGS))
500
 
517
 
501
 
518
 
502
#..     Shared library (dll)
519
#..     Shared library (dll)
503
#
520
#
Line 507... Line 524...
507
shld_flags	=
524
shld_flags	=
508
shld_o_switch	= @$(shld_cmdfile)
525
shld_o_switch	= @$(shld_cmdfile)
509
shld_term	=
526
shld_term	=
510
 
527
 
511
define shld_pre
528
define shld_pre
512
	@export VC_LIB; VC_LIB="$(VC_LIB)"; \
-
 
513
	$(cmdfile) -wkWeo$(shld_cmdfile) \
529
	@$(cmdfile) -wkWeo$(shld_cmdfile) \
514
		"$(vc_ldflags) $($(notdir $(SHBASE))_shld)"; \
530
		"$(vc_ldflags) $($(notdir $(SHBASE))_shld)"; \
515
	echo [$@] Linking shared library ..;
531
	echo [$@] Linking shared library ..;\
-
 
532
        $(call show_cmdfile,$(shld_cmdfile))
-
 
533
        
516
endef
534
endef
517
 
535
 
518
ifndef LEAVETMP
536
ifndef LEAVETMP
519
define shld_post
537
define shld_post
520
	@$(rm) -f $(shld_cmdfile)
538
	@$(rm) -f $(shld_cmdfile)
Line 523... Line 541...
523
define shld_post
541
define shld_post
524
endef
542
endef
525
endif
543
endif
526
 
544
 
527
define SHLDDEPEND
545
define SHLDDEPEND
528
	@export VC_LIB; VC_LIB="$(VC_LIB)"; \
-
 
529
	$(cmdfile) -wkWeo$(@) \
546
	@$(cmdfile) -wkWeo$(@) \
530
		"$($(notdir $(SHNAME))_shdp)";
547
		"$($(notdir $(SHNAME))_shdp)";
531
endef
548
endef
532
 
549
 
533
#..      Application
550
#..      Application
534
#
551
#
Line 539... Line 556...
539
ld_flags	=
556
ld_flags	=
540
ld_o_switch	= @$(ld_cmdfile)
557
ld_o_switch	= @$(ld_cmdfile)
541
ld_term		=
558
ld_term		=
542
 
559
 
543
define ld_pre
560
define ld_pre
544
	@export VC_LIB; VC_LIB="$(VC_LIB)"; \
-
 
545
	$(cmdfile) -wkWeo$(ld_cmdfile) \
561
	@$(cmdfile) -wkWeo$(ld_cmdfile) \
546
		"$(vc_ldflags) $($(notdir $(basename $@))_ld)"; \
562
		"$(vc_ldflags) $($(notdir $(basename $@))_ld)"; \
547
	echo [$@] Linking application ..
563
	echo [$@] Linking application ..;\
-
 
564
        $(call show_cmdfile,$(ld_cmdfile))
548
endef
565
endef
549
 
566
 
550
ifndef LEAVETMP
567
ifndef LEAVETMP
551
define ld_post
568
define ld_post
552
	@$(rm) -f $(ld_cmdfile)
569
	@$(rm) -f $(ld_cmdfile)
Line 555... Line 572...
555
define ld_post
572
define ld_post
556
endef
573
endef
557
endif
574
endif
558
 
575
 
559
define LDDEPEND
576
define LDDEPEND
560
	@export VC_LIB; VC_LIB="$(VC_LIB)"; \
-
 
561
	$(cmdfile) -wkWeo$(ld_depfile) \
577
	@$(cmdfile) -wkWeo$(ld_depfile) \
562
		"$($(notdir $(basename $@))_dp)";
578
		"$($(notdir $(basename $@))_dp)";
563
endef
579
endef
564
 
580
 
565
#.. Resource Compiler
581
#.. Resource Compiler
566
#   Convert a .rc file into a .res file
582
#   Convert a .rc file into a .res file
Line 573... Line 589...
573
#
589
#
574
rc_defines = $(subst -D,/d ,$(vc_defines))
590
rc_defines = $(subst -D,/d ,$(vc_defines))
575
rc_dirs = $(subst /,\,$(sort $(dir $^)))
591
rc_dirs = $(subst /,\,$(sort $(dir $^)))
576
rc_dirs += $(LINCDIRS)
592
rc_dirs += $(LINCDIRS)
577
rc_dirs += $(vc_includes)
593
rc_dirs += $(vc_includes)
578
rc_include = $(subst $(spacealt),$(space),$(subst $(space),$(empty),$(patsubst %,%;,$(subst /,\,$(rc_dirs)))))
594
rc_include = $(call decodepath,,;,$(rc_dirs))
579
rc_include1 = $(subst \;,;,$(rc_include))
595
rc_include1 = $(subst \;,;,$(rc_include))
580
 
596
 
581
define RC
597
define RC
582
	@$(echo) [$@] Compile Resource File ..
598
	@$(echo) [$@] Compile Resource File ..
583
	@$(show_environment)
599
	@$(show_environment)