VirtualBox

Ignore:
Timestamp:
Sep 9, 2008 1:58:29 AM (16 years ago)
Author:
vboxsync
Message:

HostDrivers/Makefiles: Eliminated (most) PATH_TARGET usage and pushed them up to root level (sub-makefile wise).

File:
1 edited

Legend:

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

    r12170 r12252  
    1111#
    1212
    13 ifdef VBOX_SINGLE_MAKEFILE
    1413SUB_DEPTH = ../../../..
    15 else
    16 SUB_DEPTH = ..
    17 DEPTH    ?= ../../../..
    18 endif
    1914include $(KBUILD_PATH)/subheader.kmk
    2015
     
    2722VBoxNetFlt_TEMPLATE = VBOXR0DRV
    2823VBoxNetFlt_INST = $(INST_VBOXNETFLT)$(if $(eq $(KBUILD_TARGET),darwin),Contents/MacOS/)
    29 ifdef VBOX_SIGNING_MODE
    30  ifeq ($(KBUILD_TARGET),win)
    31   VBoxNetFlt_NOINST = true
    32  endif
     24if defined(VBOX_SIGNING_MODE) && "$(KBUILD_TARGET)" == "win"
     25 VBoxNetFlt_NOINST = true
    3326endif
    3427VBoxNetFlt_DEFS = IN_RT_R0 VBOX_SVN_REV=$(VBOX_SVN_REV) IN_SUP_STATIC
     
    5144
    5245# Darwin extras.
    53 INSTALLS.darwin += VBoxNetFlt.kext
     46ifeq ($(KBUILD_TARGET),darwin)
     47INSTALLS += VBoxNetFlt.kext
    5448VBoxNetFlt.kext_INST     = $(INST_VBOXNETFLT)Contents/
    5549VBoxNetFlt.kext_SOURCES  = \
    56         $(PATH_TARGET)/VBoxNetFlt/Info.plist
     50        $(PATH_VBoxNetFlt.kext)/Info.plist
    5751VBoxNetFlt.kext_CLEAN    = \
    58         $(PATH_TARGET)/VBoxNetFlt/Info.plist
     52        $(PATH_VBoxNetFlt.kext)/Info.plist
    5953
    60 $(PATH_TARGET)/VBoxNetFlt/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $(call DIRDEP,$(PATH_TARGET)/VBoxNetFlt)
     54$$(PATH_VBoxNetFlt.kext)/Info.plist: $(PATH_SUB_CURRENT)/darwin/Info.plist $(VBOX_VERSION_MK) | $$(dir $$@)
    6155        $(call MSG_GENERATE,VBoxNetFlt,$@,$<)
    6256        $(xQUIET)$(RM) -f $@
     
    6660                -e 's/@VBOX_VERSION_MINOR@/$(VBOX_VERSION_MINOR)/g' \
    6761                -e 's/@VBOX_VERSION_BUILD@/$(VBOX_VERSION_BUILD)/g' \
    68                 $< > $@
     62                --output $@ \
     63                $<
    6964
    7065INSTALLS.darwin += Scripts-darwin
     
    7267Scripts-darwin_SOURCES = \
    7368        darwin/loadnetflt.sh
     69endif # darwin
    7470
    7571
     
    8076VBoxNetFlt-inf_SOURCES = \
    8177        $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf \
    82         $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt_m.inf 
     78        $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt_m.inf
    8379VBoxNetFlt-inf_CLEAN = $(VBoxNetFlt-inf_SOURCES)
    8480VBoxNetFlt-inf_BLDDIRS = $(PATH_TARGET)/VBoxNetFltCat.dir
    8581
    86 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf: $(PATH_SUB_CURRENT)/win/VBoxNetFlt.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
     82$(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.inf: $(PATH_SUB_CURRENT)/win/VBoxNetFlt.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
    8783        $(call MSG_GENERATE,VBoxNetFlt-inf,$@,$<)
    8884        $(call VBOX_EDIT_INF_FN,$<,$@)
    8985
    90 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt_m.inf: $(PATH_SUB_CURRENT)/win/VBoxNetFlt_m.inf $(MAKEFILE_CURRENT) | $$(call DIRDEP,$$(@D))
     86$(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt_m.inf: $(PATH_SUB_CURRENT)/win/VBoxNetFlt_m.inf $(MAKEFILE_CURRENT) | $$(dir $$@)
    9187        $(call MSG_GENERATE,VBoxNetFlt-inf,$@,$<)
    9288        $(call VBOX_EDIT_INF_FN,$<,$@)
     
    9793        $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.cat
    9894
    99 $(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.sys: $$(TARGET_VBoxNetFlt) | $$(call DIRDEP,$$(@D))
     95$(PATH_TARGET)/VBoxNetFltCat.dir/VBoxNetFlt.sys: $$(TARGET_VBoxNetFlt) | $$(dir $$@)
    10096        $(INSTALL) -m 644 $< $(@D)
    10197
     
    137133include $(KBUILD_PATH)/subfooter.kmk
    138134
    139 
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