VirtualBox

Changeset 92967 in vbox for trunk


Ignore:
Timestamp:
Dec 16, 2021 10:02:42 AM (3 years ago)
Author:
vboxsync
Message:

VBoxNetFlt/Makefile.kmk: Use a template for all the Net*Install and Net*Uninstall programs, making it easier to apply VBOX_WIN_NEWDEV to all of them. bugref:10116

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxNetFlt/Makefile.kmk

    r92910 r92967  
    248248 WinNetConfigNonStatic_SOURCES  = win/cfg/VBoxNetCfg.cpp
    249249
    250  #
    251  # NetFltInstall
    252  #
    253  PROGRAMS.win  += NetFltInstall
    254  NetFltInstall_TEMPLATE = VBOXR3STATIC
    255  NetFltInstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
    256  NetFltInstall_SOURCES  = win/tools/VBoxNetFltInstall.cpp
    257  NetFltInstall_LIBS     = \
     250
     251 #
     252 # Template for NetFltInstall and friends.
     253 #
     254 TEMPLATE_VBoxNetFltR3 = Template for NetFltInstall, NetFltUninstall, NetAdpInstall, NetAdpUninstall, ++
     255 TEMPLATE_VBoxNetFltR3_EXTENDS  = VBOXR3STATIC
     256 TEMPLATE_VBoxNetFltR3_SDKS     = $(TEMPLATE_VBOXR3STATIC_SDKS) ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL VBOX_WIN_NEWDEV
     257 TEMPLATE_VBoxNetFltR3_CXXFLAGS = $(TEMPLATE_VBOXR3STATIC_CXXFLAGS) -Gz
     258 TEMPLATE_VBoxNetFltR3_CFLAGS   = $(TEMPLATE_VBOXR3STATIC_CFLAGS) -Gz
     259 TEMPLATE_VBoxNetFltR3_LIBS     = $(TEMPLATE_VBOXR3STATIC_LIBS) \
    258260        $(WinNetConfig_1_TARGET) \
    259261        $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
    260         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
    261262        $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
    262263        $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
    263264
     265 #
     266 # NetFltInstall
     267 #
     268 PROGRAMS.win  += NetFltInstall
     269 NetFltInstall_TEMPLATE = VBoxNetFltR3
     270 NetFltInstall_SOURCES  = win/tools/VBoxNetFltInstall.cpp
    264271
    265272 #
     
    267274 #
    268275 PROGRAMS.win  += NetFltUninstall
    269  NetFltUninstall_TEMPLATE = VBOXR3STATIC
    270  NetFltUninstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
     276 NetFltUninstall_TEMPLATE = VBoxNetFltR3
    271277 NetFltUninstall_SOURCES  = win/tools/VBoxNetFltUninstall.cpp
    272  NetFltUninstall_LIBS     = \
    273         $(WinNetConfig_1_TARGET) \
    274         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
    275         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
    276         $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
    277         $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
    278278
    279279 #
     
    281281 #
    282282 PROGRAMS.win  += NetAdpInstall
    283  NetAdpInstall_TEMPLATE = VBOXR3STATIC
    284  NetAdpInstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
     283 NetAdpInstall_TEMPLATE = VBoxNetFltR3
    285284 NetAdpInstall_SOURCES  = win/tools/VBoxNetAdpInstall.cpp
    286  NetAdpInstall_LIBS     = \
    287         $(WinNetConfig_1_TARGET) \
    288         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
    289         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
    290         $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
    291         $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
    292 
    293285
    294286 #
     
    296288 #
    297289 PROGRAMS.win  += NetAdpUninstall
    298  NetAdpUninstall_TEMPLATE = VBOXR3STATIC
    299  NetAdpUninstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
     290 NetAdpUninstall_TEMPLATE = VBoxNetFltR3
    300291 NetAdpUninstall_SOURCES  = win/tools/VBoxNetAdpUninstall.cpp
    301  NetAdpUninstall_LIBS     = \
    302         $(WinNetConfig_1_TARGET) \
    303         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
    304         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
    305         $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
    306         $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
    307292
    308293 #
     
    310295 #
    311296 PROGRAMS.win  += NetAdp6Install
    312  NetAdp6Install_TEMPLATE = VBOXR3STATIC
    313  NetAdp6Install_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
     297 NetAdp6Install_TEMPLATE = VBoxNetFltR3
    314298 NetAdp6Install_SOURCES  = win/tools/VBoxNetAdpInstall.cpp
    315  NetAdp6Install_DEFS    += NDIS60=1
    316  NetAdp6Install_LIBS     = \
    317         $(WinNetConfig_1_TARGET) \
    318         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
    319         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
    320         $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
    321         $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
    322 
     299 NetAdp6Install_DEFS     = NDIS60=1
    323300
    324301 #
     
    326303 #
    327304 PROGRAMS.win  += NetAdp6Uninstall
    328  NetAdp6Uninstall_TEMPLATE = VBOXR3STATIC
    329  NetAdp6Uninstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
     305 NetAdp6Uninstall_TEMPLATE = VBoxNetFltR3
    330306 NetAdp6Uninstall_SOURCES  = win/tools/VBoxNetAdpUninstall.cpp
    331  NetAdp6Uninstall_DEFS    += NDIS60=1
    332  NetAdp6Uninstall_LIBS     = \
    333         $(WinNetConfig_1_TARGET) \
    334         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
    335         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
    336         $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
    337         $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
     307 NetAdp6Uninstall_DEFS     = NDIS60=1
    338308
    339309 #
     
    341311 #
    342312 PROGRAMS.win  += NetLwfInstall
    343  NetLwfInstall_TEMPLATE = VBOXR3STATIC
    344  NetLwfInstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
     313 NetLwfInstall_TEMPLATE = VBoxNetFltR3
    345314 NetLwfInstall_SOURCES  = win/tools/VBoxNetLwfInstall.cpp
    346  NetLwfInstall_LIBS     = \
    347         $(WinNetConfig_1_TARGET) \
    348         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
    349         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
    350         $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
    351         $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
    352 
    353315
    354316 #
     
    356318 #
    357319 PROGRAMS.win  += NetLwfUninstall
    358  NetLwfUninstall_TEMPLATE = VBOXR3STATIC
    359  NetLwfUninstall_SDKS     = ReorderCompilerIncs $(VBOX_WINPSDK) $(VBOX_WINDDK) VBOX_NTDLL
     320 NetLwfUninstall_TEMPLATE = VBoxNetFltR3
    360321 NetLwfUninstall_SOURCES  = win/tools/VBoxNetLwfUninstall.cpp
    361  NetLwfUninstall_LIBS     = \
    362         $(WinNetConfig_1_TARGET) \
    363         $(PATH_STAGE_LIB)/VBoxDrvCfg$(VBOX_SUFF_LIB) \
    364         $(PATH_SDK_$(VBOX_WINDDK)_LIB)/Newdev.lib \
    365         $(PATH_TOOL_$(VBOX_VCC_TOOL)_LIB)/comsupp.lib \
    366         $(PATH_SDK_$(VBOX_WINPSDK)_LIB)/WbemUuid.Lib
    367322
    368323 #
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette