#
# Two things relate to making a driver that exports functions
# as DLL:
#   - changing TARGETTYPE from DRIVER to EXPORT_DRIVER
#   - supplying the .def file that lists names of the functions that are
#     to be exported (via DLLDEF)
#
# To see how the things have gone, try: dumpbin /exports pwrcrypt.sys
#
 
TARGETNAME=pwrcrypt
TARGETPATH=.
TARGETTYPE=EXPORT_DRIVER

DLLDEF=pwrcrypt.def

#C_DEFINES=$(C_DEFINES) -D_NT_DRIVER_BUILD_ -D_SKIP_MODE
#C_DEFINES=$(C_DEFINES) -D_NT_DRIVER_BUILD_

C_DEFINES=$(C_DEFINES) -D_NO_DST -D_SLOW_WORK

# C_DEFINES=$(C_DEFINES) -I${.CURDIR}/../../sys/pci/pwrcrypt
# C_DEFINES=$(C_DEFINES) -I${.CURDIR}/../../sys/pci/pwrcrypt/ntspecfc

INCLUDES=$(BASEDIR)\INC;..\include;..\portable

SOURCES=debug.c         \
        pwrcrypt.rc     \
        myunistr.c      \
	osindependence.c\
        findpci.c       \
        driver.c        \
        globobj.c       \
        userbuf.c       \
        procbase.c      \
        processor.c     \
        proc_hw.c       \
        proc_req.c      \
        proc_xfer.c     \
        proc_unlock.c   \
        sg_ring.c       \
        sg_ctlarea.c    \
        dma_ctx.c       \
        dispatcher.c    \
        slotman.c       \
        config.c        \
        km_interface.c  \
        briefcomm.c     \
        memtrack.c      \
        watch.c

MSC_WARNING_LEVEL=/W3 /WX
