# sources file
#
# Generated by C DriverWizard 3.1.0 (Build 1722)
# Requires DDK Only
# File created on 11/18/2005
#
TARGETNAME=usb_ftdi
TARGETPATH=obj
TARGETTYPE=DRIVER

#uncomment the following line to build with C++ compiler
#USECXX_FLAG=/Tp

TARGETLIBS= $(DDK_LIB_PATH)\ntstrsafe.lib
TARGETLIBS=$(TARGETLIBS) $(DDK_LIB_PATH)\usbd.lib

# Singly linked lists have been optimized in a non-back
# compatible way for XP and later platforms.  As such, 
# any binary built with the XP or later DDK and using 
# singly linked lists will not load on 2000 and earlier
# platforms without the use of the following define in
# the build.  This define turns off the new optimizations, 
# and thus it should only be used for cross-platform 
# binaries.
#C_DEFINES = $(C_DEFINES) -D_WIN2K_COMPAT_SLIST_USAGE

!if !defined(DDK_TARGET_OS) || "$(DDK_TARGET_OS)"=="Win2K"
C_DEFINES=$(C_DEFINES) -DWIN2K
!endif

SOURCES=\
        usb.c \
        registry.c \
        debug.c \
        usb_ftdi.c \
        wmi.c \
        iorw.c \
        usb_ftdi.rc \
        queue.c \
        pnp.c \
        power.c

PRECOMPILED_INCLUDE=pch.h
PRECOMPILED_PCH=pch.pch
PRECOMPILED_OBJ=pch.obj


#USB_FTDI_WMI_TRACE=1

!ifdef USB_FTDI_WMI_TRACE

C_DEFINES = $(C_DEFINES) -DUSB_FTDI_WMI_TRACE

!if ("$(PRECOMPILED_CXX)" == "") && ("$(USECXX_FLAG)" == "")
RUN_WPP=$(SOURCES)\
        -km \
        -func:usb_ftdiDebugPrint(AREA,LEVEL,MSG,...)
!else
RUN_WPP=$(SOURCES)\
        -km -dll\
        -func:usb_ftdiDebugPrint(AREA,LEVEL,MSG,...)
!endif

!endif

