TARGETNAME = XDevice
TARGETTYPE = DRIVER

KMDF_VERSION = 1

INF_NAME = XDevice

MISCFILES = $(OBJ_PATH)\$(O)\$(INF_NAME).inf

NTTARGETFILES =

USER_INCLUDES = ..\..\Include;..\..\Include\KernelUtils;..\Include

C_DEFINES = -DUNICODE -D_UNICODE

PRECOMPILED_INCLUDE = Precompiled.h

#USECXX_FLAG = /Tp

SOURCES = \
   DriverEntry.c \
   EvtDriverUnload.c \
   EvtDriverDeviceAdd.c \
   EvtDeviceContextCleanup.c \
   EvtDevicePrepareHardware.c \
   EvtDeviceReleaseHardware.c \
   EvtDeviceD0Entry.c \
   EvtDeviceD0Exit.c \
   EvtDeviceFileCreate.c \
   EvtFileClose.c \
   EvtIoRead.c \
   EvtIoWrite.c \
   EvtIoDeviceControl.c \
   Variables.c \
   Driver.rc

TARGETLIBS = \
   $(SDK_LIB_PATH)\ntstrsafe.lib \
!if "$(_BUILDARCH)" == "x86"
!if "$(NTDEBUG)" == "ntsd"
   ..\..\Lib\x86\Checked\KernelUtils.lib
!else
   ..\..\Lib\x86\Free\KernelUtils.lib
!endif
!endif
!if "$(_BUILDARCH)" == "AMD64"
!if "$(NTDEBUG)" == "ntsd"
   ..\..\Lib\x64\Checked\KernelUtils.lib
!else
   ..\..\Lib\x64\Free\KernelUtils.lib
!endif
!endif
