Subversion Repositories DevTools

Rev

Rev 227 | 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         = vcwce

o               = obj
s               = asm
a               = lib
exe             = .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 MSVCDir
ifdef MSVCDIR                                           # Win9x
MSVCDir         := 1
endif
endif
ifndef MSVCDir
ifneq "$(findstring MSDEV98,$(PATH))" ""                # Win9x
MSVCDir         := 1
endif
ifneq "$(findstring Visual Studio,$(PATH))" ""          # xp/200x
MSVCDir         := 1
endif
endif

        # 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:         vcembedded
vcembedded:
  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;
  endif

#
#   Sanitise root paths
#
WCEROOT         := $(subst \,/,$(strip $(WCEROOT)))
SDKROOT         := $(subst \,/,$(strip $(SDKROOT)))

ifeq "$(findstring $(wceroot),$(PATH))" ""
PATH            := $(WCEROOT)/Common/EVC/Bin;$(WCEROOT)/EVC/wce$(WCE_VERSION)/Bin;$(PATH)
endif
ifdef OS        # XXX - need maybe gmake version specific (currently 3.80)
ifeq "$(OS)" "Windows_NT"
Path            := $(PATH)
endif
endif

        # The program database file
PDB             = $(OBJDIR)/$(GBE_PBASE)$(GBE_TYPE).pdb

        # rpcgen configuration
        #..
RPCGEN_CPP      := $(WCE_CC)
RPCGEN_CFLAGS   := -EP
export RPCGEN_CPP RPCGEN_CFLAGS

#