TARGETNAME=OxMf
TARGETTYPE=DRIVER


KMDF_VERSION_MAJOR=1

MSC_WARNING_LEVEL=/W3

INFNAME=$(TARGETNAME)
INXNAME=OxTorMf
MISCFILES=$(O)\$(INFNAME).inf
NTTARGETFILES=stampinf


# Define to create assembly listing and map files (.COD and .MAP).
USER_C_FLAGS = $(USER_C_FLAGS) /FAsc /Fa$(O)\\
LINKER_FLAGS = $(LINKER_FLAGS) /MAP:$(O)\$(TARGETNAME).MAP


# Config driver functionality can be embedded in GPIO driver so that
# GPIO can accept requests to Peek/Poke Configuration BAR of Tornado.
# To use this functionality, applications can use Config driver 
# interface to send Peek/Poke requests to GPIO driver in the same way
# as they are used in Config driver.
# Comment following line to disable this feature.
# EMBED_CONFIG_DRIVER=1


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

TARGETLIBS=$(TARGETLIBS) \
           ..\..\..\common\driver\wdf\obj$(BUILD_ALT_DIR)\*\common.lib


INCLUDES=$(INCLUDES);..;..\..\..\common\driver;..\..\..\common\driver\wdm;..\..\..\common\driver\wdf


# C_DEFINES = $(C_DEFINES) -DTORNADO_VERIFICATION_DRIVER_LOOPBACK_DIFFERENT_UARTS=1

# Define to enable Tornado testing on the legacy PCI952 device
#  or to build driver to support legacy devices.
C_DEFINES = $(C_DEFINES) -DTORNADO_DRIVER_TEST_LEGACY_DEVICE=1

# Do not modify following lines. If you wish to include/exclude config driver
# functionality, change EMBED_CONFIG_DRIVER above to either 1 or 0.
!IFDEF EMBED_CONFIG_DRIVER
TARGETLIBS=$(TARGETLIBS) \
           ..\..\..\config\driver\lib\obj$(BUILD_ALT_DIR)\*\config.lib

C_DEFINES = $(C_DEFINES) /DEMBED_CONFIG_DRIVER=1

INCLUDES=$(INCLUDES);..\..\..\config\driver;..\..\..\config\driver\wdf
!ENDIF


USECXX_FLAG=/Tp

SOURCES=Bus.cpp         \
        Child.cpp       \
        UartPlugin.c    \
        OxTorMf.rc


!include ..\..\..\common\driver\wdf\TraceSettings
SOURCES_USED=..\..\..\common\driver\wdf\TraceSettings
