# //////////////////////////////////////////////////////////////////////////////
# // Copyright (C) 2008 Cinterion Wireless Modules GmbH
# // Copyright (C) 2006-2008 Siemens AG
# //
# // Version: 1.0
# // Date:    dummy
# //
# //////////////////////////////////////////////////////////////////////////////

TARGETNAME=multiplx
RELEASETYPE=PLATFORM
TARGETTYPE=DYNLINK
DLLENTRY=MuxDllMain

# WANT_RETAIL_MUXDRV_OUTPUT: The driver prints additional debug messages.
# If this compiler flag is enabled the driver prints additional useful
# debug messages also in retail build of driver to debug out.
CDEFINES=$(CDEFINES) -DWANT_RETAIL_MUXDRV_OUTPUT

# RETAIL_MUXDRV_OUTPUT_PORT: The driver provides the possiblity to send
# debug messages from the "MuxDrvRetailTrace()" enabled with the compiler
# flag "WANT_RETAIL_MUXDRV_OUTPUT" to a serial port. This feature is enabled
# by setting the compiler flag to the appropriate COM port device name.
#CDEFINES=$(CDEFINES) -DRETAIL_MUXDRV_OUTPUT_PORT=TEXT(\"COM2:\")

# RETAIL_MUXDRV_OUTPUT_FILE: The driver provides the possiblity to send
# debug messages from the "UsbSerRetailTrace()" enabled with the compiler
# flag "WANT_RETAIL_MUXDRV_OUTPUT" to a file. This feature is enabled
# by setting the compiler flag to the appropriate file name.
#CDEFINES=$(CDEFINES) -DRETAIL_MUXDRV_OUTPUT_FILE=TEXT(\"\\MuxDrv.log\")

# RETAIL_MUXDRV_KEEP_FILE_ON_BOOT: If this option is set, the driver keeps an
# existing log file specified with RETAIL_MUXDRV_OUTPUT_FILE on warm and cold
# boot. If this option is not set, the RIL deletes this file on device boot.
#CDEFINES=$(CDEFINES) -DRETAIL_MUXDRV_KEEP_FILE_ON_BOOT

# RETAIL_MUXDRV_INCLUDE_TIMESTAMPS: When the driver is tested with the
# Platform Builder, timestamps are added automatically by the Platform Builder.
# This doesn't apply on traces which are printed on the debug port of a device.
# If this option is activated, the driver will add timestamps to its trace
# output.
#CDEFINES=$(CDEFINES) -DRETAIL_MUXDRV_INCLUDE_TIMESTAMPS

# REATIL_MUXDRV_RTC_TIMESTAMPS: This setting applies only, if
# WANT_RETAIL_USBDRV_OUTPUT and RETAIL_MUXDRV_INCLUDE_TIMESTAMPS is set. It
# switches the source of the timestamp from GetTickCount() to GetLocalTime().
#CDEFINES=$(CDEFINES) -DREATIL_MUXDRV_RTC_TIMESTAMPS

CDEFINES=$(CDEFINES) -DWINCEOSVER=$(_WINCEOSVER)
RDEFINES=$(RDEFINES) -DWINCEOSVER=$(_WINCEOSVER)

TARGETLIBS= \
!IF "$(_WINCEOSVER)" >= "700"
    $(_PUBLICROOT)\common\exp\lib\$(_CPUINDPATH)\coredll.lib \
!ELSE
    $(_COMMONSDKROOT)\lib\$(_CPUINDPATH)\coredll.lib
!ENDIF

!IF "$(INCLUDES)" != ""
INCLUDES=$(INCLUDES); \
  $(_WINCEROOT)\others\mfc\include;  \
  ..
!ELSE
INCLUDES= \
  $(_WINCEROOT)\others\mfc\include;  \
  ..
!ENDIF

SOURCES=                             \
  ddmpfra.c                          \
  ddmpfunc.c                         \
  ddmpiov2.c                         \
  ddmpmem.c                          \
  ddmpstat.c                         \
  ddmptype.c                         \
  ddmpadp.c                          \
  ddmppkt.c                          \
  ddmphdlc.c                         \
  mux_msgqueue.c                     \
  mux_interface.c                    \
  ..\DrvEntryMux.cpp                 \
  ..\DrvEntryVCom.cpp                \
  ..\BasePort.cpp                    \
  ..\BufferedParentPort.cpp          \
  ..\MuxChannel.cpp                  \
  ..\Util.cpp                        \
  ..\MuxDrv.rc

