#========================================================================== # PRODUCT: RusRoute - MaaSoftware routing firewall software driver # (C) Copyright Moiseenko A.A., MaaSoftware, 2003-2008. All Rights Reserved. # http://www.maasoftware.ru http://www.maasoftware.com # http://www.rusroute.ru http://www.rusroute.com # support@maasoftware.ru # You can use this driver sample for free for non commercial use #========================================================================== # use ddk build utility to build driver for x86 and amd64 platforms #========================================================================== TARGETNAME=rusroutf TARGETPATH=obj TARGETTYPE=DRIVER #DLLENTRY = _DriverEntry2 #DRIVERENTRY = _DriverEntry2 C_DEFINES=$(C_DEFINES) -DNDIS_MINIPORT_DRIVER -DNDIS_WDM=1 !if "$(DDK_TARGET_OS)"=="Win2K" # # The driver is built in the Win2K build environment # C_DEFINES=$(C_DEFINES) -DNDIS40_MINIPORT=1 C_DEFINES=$(C_DEFINES) -DNDIS40=1 !else # # The driver is built in the XP or .NET build environment # So let us build NDIS 5.1 version. # C_DEFINES=$(C_DEFINES) -DNDIS51_MINIPORT=1 -D_MaaRF_INTERNAL_BUILD C_DEFINES=$(C_DEFINES) -DNDIS51=1 #-W4 !endif # Uncomment the following to build for Win98/SE/WinMe # This causes several APIs that are not present in Win9X to be # ifdef'ed out. # C_DEFINES=$(C_DEFINES) -DWIN9X=1 #PRECOMPILED_INCLUDE=perm.h TARGETLIBS=$(DDK_LIB_PATH)\ndis.lib \ $(DDK_LIB_PATH)\hal.lib \ $(DDK_LIB_PATH)\ntoskrnl.lib #TARGETLIBS=C:\WinDDK\6001.17121\lib\wlh\amd64\ndis.lib \ #C:\WinDDK\6001.17121\lib\wlh\amd64\hal.lib \ #C:\WinDDK\6001.17121\lib\wlh\amd64\ntoskrnl.lib INCLUDES= SOURCES=\ perm.cpp \ passthru.cpp \ miniport.cpp \ protocol.cpp \ adapter.cpp \ common.cpp \ driver.cpp \ init.cpp \ library.cpp \ maatl.cpp \ my.cpp \ service.cpp \ timer.cpp \ entry.c \ passthru.rc