VirtualBox

Changeset 13693 in vbox


Ignore:
Timestamp:
Oct 30, 2008 9:46:27 PM (16 years ago)
Author:
vboxsync
Message:

NetFlt: Quickly hacked up linux makefiles based on the stuff from Support. Still some stuff to be done here (later).

File:
1 edited

Legend:

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

    r13626 r13693  
    140140endif
    141141
     142ifeq ($(KBUILD_TARGET),linux)
     143 #
     144 # Install source files for compliation on Linux.
     145 # files_vboxnetflt defines VBOX_VBOXNETFLT_SOURCES.
     146 #
     147 include $(PATH_SUB_CURRENT)/linux/files_vboxnetflt
     148 INSTALLS += VBoxNetFlt-src
     149 VBoxNetFlt-src_INST    = bin/src/vboxnetflt/
     150 VBoxNetFlt-src_MODE    = a+r,u+w
     151 VBoxNetFlt-src_SOURCES = $(subst ",,$(VBOX_VBOXNETFLT_SOURCES)) #"
     152 VBoxNetFlt-src_SOURCES+= $(PATH_VBoxNetFlt-src)/Makefile
     153 VBoxNetFlt-src_CLEAN   = $(PATH_VBoxNetFlt-src)/Makefile
     154
     155includedep $(PATH_TARGET)/VBoxNetFlt-src-1.dep
     156$$(PATH_VBoxNetFlt-src)/Makefile: \
     157                $(PATH_SUB_CURRENT)/linux/Makefile \
     158                $$(if $$(eq $$(VBoxNetFlt/linux/Makefile_VBOX_HARDENED),$$(VBOX_WITH_HARDENING)),,FORCE) \
     159                | $$(dir $$@)
     160ifndef VBOX_WITH_HARDENING
     161        $(QUIET)$(SED) -e "s;-DVBOX_WITH_HARDENING;;g" --output $@ $<
     162else
     163        $(QUIET)$(CP) -f $< $@
     164endif
     165        %$(QUIET2)$(RM) -f -- $(PATH_TARGET)/VBoxNetFlt-src-1.dep
     166        %$(QUIET2)$(APPEND) '$(PATH_TARGET)/VBoxNetFlt-src-1.dep' 'VBoxNetFlt/linux/Makefile_VBOX_HARDENED=$(VBOX_WITH_HARDENING)'
     167
     168## Scripts needed for building the kernel modules
     169### @todo generate these else where and move them from OTHERS to vboxmod-bin (which btw installs NOBIN files contrary to its name).
     170#
     171#$(PATH_BIN)/src/build_in_tmp: \
     172#               $(PATH_SUB_CURRENT)/linux/build_in_tmp \
     173#               $(VBOX_VERSION_STAMP)
     174#       $(call MSG_TOOL,Creating,,$@)
     175#       $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g; s;_MODULE_;vboxdrv;g" --output $@ $<
     176#       $(QUIET)chmod 0755 $@
     177#
     178#$(PATH_BIN)/src/dkms.conf: \
     179#               $(PATH_SUB_CURRENT)/linux/dkms.conf \
     180#               $(VBOX_VERSION_STAMP)
     181#       $(call MSG_TOOL,Creating,,$@)
     182#       $(QUIET)$(SED) -e "s;_VERSION_;${VBOX_VERSION_STRING};g" --output $@ $<
     183
     184endif # linux
     185
    142186include $(KBUILD_PATH)/subfooter.kmk
    143187
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