Subversion Repositories DevTools

Rev

Rev 227 | Rev 367 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
227 dpurdie 1
# -*- mode: mak -*-
2
###############################################################################
3
# File:         TOOLSET/vcwce.def
4
# Contents:     Microsoft eMbedded C/C++ Toolset defines
5
###############################################################################
6
 
7
	# Standard definitions
8
	#
9
	#..
10
toolset		= vcwce
11
 
12
o		= obj
13
s		= asm
14
a		= lib
15
exe		= .exe
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
43
	#
44
	# Note:   Correct handling of embedded spaces within path
45
	#         specifications involves explicit conversion on import
46
	#         and export (Someone/all at Microsoft should be shot!).
47
	#..
48
.PHONY:		vcembedded
49
vcembedded:
50
  ifndef GBE_NOTOOLSTEST
51
	    $(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; \
53
	    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; \
55
	    if [ ! -d "$$SDKROOT" ]; then echo "[VCWCE.DEF] (E) SDKROOT directory not found: $$SDKROOT" ; exit 2; fi;
56
  endif
57
 
303 dpurdie 58
#
59
#   Sanitise root paths
60
#
61
WCEROOT		:= $(subst \,/,$(strip $(WCEROOT)))
62
SDKROOT		:= $(subst \,/,$(strip $(SDKROOT)))
227 dpurdie 63
 
64
ifeq "$(findstring $(wceroot),$(PATH))" ""
303 dpurdie 65
PATH		:= $(WCEROOT)/Common/EVC/Bin;$(WCEROOT)/EVC/wce$(WCE_VERSION)/Bin;$(PATH)
227 dpurdie 66
endif
67
ifdef OS	# XXX - need maybe gmake version specific (currently 3.80)
68
ifeq "$(OS)" "Windows_NT"
69
Path		:= $(PATH)
70
endif
71
endif
72
 
73
        # The program database file
74
PDB		= $(OBJDIR)/$(GBE_PBASE)$(GBE_TYPE).pdb
75
 
76
	# rpcgen configuration
77
	#..
78
RPCGEN_CPP	:= $(WCE_CC)
79
RPCGEN_CFLAGS	:= -EP
80
export RPCGEN_CPP RPCGEN_CFLAGS
81
 
82
#