Rev 303 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | RSS feed
# -*- mode: mak -*-################################################################################ File: TOOLSET/vcwce.def# Contents: Microsoft eMbedded C/C++ Toolset defines################################################################################ Standard definitions##..toolset = vcwceo = objs = asma = libexe = .exe# Dual installtion detection and handling## Note: If MSVCDir is defined, neither INCLUDE or LIB can be# trusted, a such both are removed from the working env# prior to invoking the toolchain. Use the alternative# forms of WCE_INCLUDE and WCE_LIB.## The follow also deals with environment variable# case issues between the various Windows versions.#..ifndef MSVCDirifdef MSVCDIR # Win9xMSVCDir := 1endifendififndef MSVCDirifneq "$(findstring MSDEV98,$(PATH))" "" # Win9xMSVCDir := 1endififneq "$(findstring Visual Studio,$(PATH))" "" # xp/200xMSVCDir := 1endifendif# Verify and import environment variable requirements## Note: Correct handling of embedded spaces within path# specifications involves explicit conversion on import# and export (Someone/all at Microsoft should be shot!).#...PHONY: vcembeddedvcembedded:ifndef GBE_NOTOOLSTEST$(AA_PRE)$(echo) [Toolset VCWCE - eMbedded C/C++ - WINCE $(WCE_VERSION)]; \if [ -z "$$WCEROOT" ]; then echo "[VCWCE.DEF] (E) WCEROOT env var not set"; exit 2; fi; \if [ -z "$$SDKROOT" ]; then echo "[VCWCE.DEF] (E) SDKROOT env var not set"; exit 2; fi; \if [ ! -d "$$WCEROOT" ]; then echo "[VCWCE.DEF] (E) WCEROOT directory not found: $$WCEROOT" ; exit 2; fi; \if [ ! -d "$$SDKROOT" ]; then echo "[VCWCE.DEF] (E) SDKROOT directory not found: $$SDKROOT" ; exit 2; fi;endifwceroot := $(subst \,/,$(strip $(WCEROOT)))sdkroot := $(subst $(space),$(spacealt),$(subst \,/,$(strip $(SDKROOT))))ifeq "$(findstring $(wceroot),$(PATH))" ""PATH := $(wceroot)/Common/EVC/Bin;$(wceroot)/EVC/wce$(WCE_VERSION)/Bin;$(PATH)endififdef OS # XXX - need maybe gmake version specific (currently 3.80)ifeq "$(OS)" "Windows_NT"Path := $(PATH)endifendif# The program database filePDB = $(OBJDIR)/$(GBE_PBASE)$(GBE_TYPE).pdb# rpcgen configuration#..RPCGEN_CPP := $(WCE_CC)RPCGEN_CFLAGS := -EPexport RPCGEN_CPP RPCGEN_CFLAGS#