Subversion Repositories DevTools

Rev

Rev 303 | Go to most recent revision | Details | 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
 
58
wceroot		:= $(subst \,/,$(strip $(WCEROOT)))
59
sdkroot		:= $(subst $(space),$(spacealt),$(subst \,/,$(strip $(SDKROOT))))
60
 
61
ifeq "$(findstring $(wceroot),$(PATH))" ""
62
PATH		:= $(wceroot)/Common/EVC/Bin;$(wceroot)/EVC/wce$(WCE_VERSION)/Bin;$(PATH)
63
endif
64
ifdef OS	# XXX - need maybe gmake version specific (currently 3.80)
65
ifeq "$(OS)" "Windows_NT"
66
Path		:= $(PATH)
67
endif
68
endif
69
 
70
        # The program database file
71
PDB		= $(OBJDIR)/$(GBE_PBASE)$(GBE_TYPE).pdb
72
 
73
	# rpcgen configuration
74
	#..
75
RPCGEN_CPP	:= $(WCE_CC)
76
RPCGEN_CFLAGS	:= -EP
77
export RPCGEN_CPP RPCGEN_CFLAGS
78
 
79
#