Subversion Repositories DevTools

Rev

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

Rev 303 Rev 367
Line 2... Line 2...
2
###############################################################################
2
###############################################################################
3
# File:         TOOLSET/vcwce.def
3
# File:         TOOLSET/vcwce.def
4
# Contents:     Microsoft eMbedded C/C++ Toolset defines
4
# Contents:     Microsoft eMbedded C/C++ Toolset defines
5
###############################################################################
5
###############################################################################
6
 
6
 
7
	# Standard definitions
7
# Standard definitions
8
	#
8
#
9
	#..
9
#..
10
toolset		= vcwce
10
toolset		= vcwce
11
 
11
 
12
o		= obj
12
o		= obj
13
s		= asm
13
s		= asm
14
a		= lib
14
a		= lib
15
exe		= .exe
15
exe		= .exe
16
 
16
 
17
	# Dual installtion detection and handling
-
 
18
	#
-
 
19
	# Note:   If MSVCDir is defined, neither INCLUDE or LIB can be
-
 
20
	#         trusted, a such both are removed from the working env
-
 
21
	#         prior to invoking the toolchain.  Use the alternative
-
 
22
	#         forms of WCE_INCLUDE and WCE_LIB.
-
 
23
	#
-
 
24
	#         The follow also deals with environment variable
-
 
25
	#         case issues between the various Windows versions.
-
 
26
	#..
-
 
27
  
-
 
28
ifndef MSVCDir
-
 
29
ifdef MSVCDIR						# Win9x
-
 
30
MSVCDir		:= 1
-
 
31
endif
-
 
32
endif
-
 
33
ifndef MSVCDir
-
 
34
ifneq "$(findstring MSDEV98,$(PATH))" ""		# Win9x
-
 
35
MSVCDir		:= 1
-
 
36
endif
-
 
37
ifneq "$(findstring Visual Studio,$(PATH))" ""		# xp/200x
-
 
38
MSVCDir		:= 1
-
 
39
endif
-
 
40
endif
-
 
41
 
-
 
42
	# Verify and import environment variable requirements
17
# Verify and import environment variable requirements
43
	#
18
#
44
	# Note:   Correct handling of embedded spaces within path
19
# Note:   Correct handling of embedded spaces within path
45
	#         specifications involves explicit conversion on import
20
#         specifications involves explicit conversion on import
46
	#         and export (Someone/all at Microsoft should be shot!).
21
#         and export.
47
	#..
22
#..
48
.PHONY:		vcembedded
23
.PHONY:		vcembedded
49
vcembedded:
24
vcembedded:
50
  ifndef GBE_NOTOOLSTEST
25
  ifndef GBE_NOTOOLSTEST
51
	    $(AA_PRE)$(echo) [Toolset VCWCE - eMbedded C/C++ - WINCE $(WCE_VERSION)]; \
26
	    $(AA_PRE)$(echo) [Toolset VCWCE - eMbedded C/C++ - WINCE $(WCE_VERSION)]; \
52
	    if [ -z "$$WCEROOT" ]; then echo   "[VCWCE.DEF] (E) WCEROOT env var not set"; exit 2; fi; \
27
	    if [ -z "$$WCEROOT" ]; then echo   "[VCWCE.DEF] (E) WCEROOT env var not set"; exit 2; fi; \
53
	    if [ -z "$$SDKROOT" ]; then echo   "[VCWCE.DEF] (E) SDKROOT env var not set"; exit 2; fi; \
28
	    if [ -z "$$SDKROOT" ]; then echo   "[VCWCE.DEF] (E) SDKROOT env var not set"; exit 2; fi; \
54
	    if [ ! -d "$$WCEROOT" ]; then echo "[VCWCE.DEF] (E) WCEROOT directory not found: $$WCEROOT" ; exit 2; fi; \
29
	    if [ ! -d "$$WCEROOT" ]; then echo "[VCWCE.DEF] (E) WCEROOT directory not found: $$WCEROOT" ; exit 2; fi; \
55
	    if [ ! -d "$$SDKROOT" ]; then echo "[VCWCE.DEF] (E) SDKROOT directory not found: $$SDKROOT" ; exit 2; fi;
30
	    if [ ! -d "$$SDKROOT" ]; then echo "[VCWCE.DEF] (E) SDKROOT directory not found: $$SDKROOT" ; exit 2; fi; \
-
 
31
        for item in "$(WCEROOT)/EVC/wce$(WCE_VERSION)/Bin" "$(WCEROOT)/Common/EVC/Bin"; do \
-
 
32
	        if [ ! -d "$$item" ]; then echo "[VCWCE.DEF] (E) Toolset component not found: $$item" ; exit 2; fi; \
-
 
33
	    done
56
  endif
34
  endif
57
 
35
 
58
#
36
#
59
#   Sanitise root paths
37
#   Sanitise root paths
60
#
38
#
61
WCEROOT		:= $(subst \,/,$(strip $(WCEROOT)))
39
WCEROOT		:= $(subst \,/,$(strip $(WCEROOT)))
62
SDKROOT		:= $(subst \,/,$(strip $(SDKROOT)))
40
SDKROOT		:= $(subst \,/,$(strip $(SDKROOT)))
63
 
41
 
64
ifeq "$(findstring $(wceroot),$(PATH))" ""
42
ifeq "$(findstring $(wceroot),$(PATH))" ""
65
PATH		:= $(WCEROOT)/Common/EVC/Bin;$(WCEROOT)/EVC/wce$(WCE_VERSION)/Bin;$(PATH)
43
PATH		:= $(WCEROOT)/EVC/wce$(WCE_VERSION)/Bin;$(PATH)
-
 
44
PATH		:= $(WCEROOT)/Common/EVC/Bin;$(PATH)
66
endif
45
endif
67
ifdef OS	# XXX - need maybe gmake version specific (currently 3.80)
-
 
68
ifeq "$(OS)" "Windows_NT"
-
 
69
Path		:= $(PATH)
46
Path		:= $(PATH)
70
endif
-
 
71
endif
-
 
72
 
47
 
73
        # The program database file
48
        # The program database file
74
PDB		= $(OBJDIR)/$(GBE_PBASE)$(GBE_TYPE).pdb
49
PDB		= $(OBJDIR)/$(GBE_PBASE)$(GBE_TYPE).pdb
75
 
50
 
76
	# rpcgen configuration
51
	# rpcgen configuration