Makefile.kmk revision 88b7935c7a9d5156b439570abcea19c121ecf60b
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# $Id$
887dfcedd826364b6159847dbd25800c0eeede4avboxsync## @file
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# Sub-Makefile for the FreeBSD Shared folder kernel module.
887dfcedd826364b6159847dbd25800c0eeede4avboxsync#
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
887dfcedd826364b6159847dbd25800c0eeede4avboxsync#
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Copyright (C) 2007 Sun Microsystems, Inc.
887dfcedd826364b6159847dbd25800c0eeede4avboxsync#
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# available from http://www.virtualbox.org. This file is free software;
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# you can redistribute it and/or modify it under the terms of the GNU
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# General Public License (GPL) as published by the Free Software
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
887dfcedd826364b6159847dbd25800c0eeede4avboxsync#
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# Clara, CA 95054 USA or visit http://www.sun.com if you need
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync# additional information or have any questions.
1c94c0a63ba68be1a7b2c640e70d7a06464e4fcavboxsync#
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
456f370fcde010d585d9174df045978a6c9893c1vboxsyncSUB_DEPTH = ../../../../..
27537ffef7291d0bb3a24e459a6b94c65586defevboxsyncinclude $(KBUILD_PATH)/subheader.kmk
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
8c5d1958147c3988a7693b5a7666f5fe21a93b7bvboxsyncifneq ($(KBUILD_HOST),freebsd)
887dfcedd826364b6159847dbd25800c0eeede4avboxsync$(error "The FreeBSD guest additions can only be built on FreeBSD!")
887dfcedd826364b6159847dbd25800c0eeede4avboxsyncendif
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
887dfcedd826364b6159847dbd25800c0eeede4avboxsync#
887dfcedd826364b6159847dbd25800c0eeede4avboxsync# vboxvfs - The Shared Folder Driver
887dfcedd826364b6159847dbd25800c0eeede4avboxsync#
887dfcedd826364b6159847dbd25800c0eeede4avboxsyncSYSMODS.freebsd += vboxvfs
887dfcedd826364b6159847dbd25800c0eeede4avboxsyncvboxvfs_TEMPLATE = VBOXGUESTR0
3f8fa562bb916e87b0beff9ec2a4e241c643dcc8vboxsyncvboxvfs_DEFS = VBOX_WITH_HGCM
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsyncvboxvfs_INCS = \
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync . \
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync $(PATH_vboxfs)
887dfcedd826364b6159847dbd25800c0eeede4avboxsyncvboxvfs_SOURCES = \
887dfcedd826364b6159847dbd25800c0eeede4avboxsync vboxvfs_vfsops.c \
887dfcedd826364b6159847dbd25800c0eeede4avboxsync vboxvfs_vnops.c
887dfcedd826364b6159847dbd25800c0eeede4avboxsyncvboxvfs_LIBS = \
887dfcedd826364b6159847dbd25800c0eeede4avboxsync $(VBOX_LIB_VBGL_R0) \
887dfcedd826364b6159847dbd25800c0eeede4avboxsync $(VBOX_LIB_IPRT_GUEST_R0)
887dfcedd826364b6159847dbd25800c0eeede4avboxsyncvboxvfs_DEPS = \
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync $$(PATH_vboxvfs)/vnode_if.h \
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync $$(PATH_vboxvfs)/vnode_if_newproto.h \
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync $$(PATH_vboxvfs)/vnode_if_typedef.h
887dfcedd826364b6159847dbd25800c0eeede4avboxsyncvboxvfs_CLEAN += $(vboxvfs_DEPS)
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
887dfcedd826364b6159847dbd25800c0eeede4avboxsyncVBOX_AWK := /usr/bin/awk
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync$$(PATH_vboxvfs)/vnode_if.h: $(VBOX_FREEBSD_SRC)/kern/vnode_if.src
1a5b87901a582025dc96bcd2ac4b0855165a836evboxsync $(call MSG_TOOL,awk,VBoxGuest,$<,$@)
1a5b87901a582025dc96bcd2ac4b0855165a836evboxsync $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/vnode_if.awk $(VBOX_FREEBSD_SRC)/kern/vnode_if.src -h
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync $(QUIET)$(MV) $(PATH_vboxvfs)/vnode_if.h $(PATH_vboxvfs)/vnode_if.h
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync$$(PATH_vboxvfs)/vnode_if_newproto.h: $(VBOX_FREEBSD_SRC)/kern/vnode_if.src
1a5b87901a582025dc96bcd2ac4b0855165a836evboxsync $(call MSG_TOOL,awk,VBoxGuest,$<,$@)
1a5b87901a582025dc96bcd2ac4b0855165a836evboxsync $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/vnode_if.awk $(VBOX_FREEBSD_SRC)/kern/vnode_if.src -p
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync $(QUIET)$(MV) $(PATH_vboxvfs)/vnode_if_newproto.h $(PATH_vboxvfs)/vnode_if_newproto.h
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync$$(PATH_vboxvfs)/vnode_if_typedef.h: $(VBOX_FREEBSD_SRC)/kern/vnode_if.src
1a5b87901a582025dc96bcd2ac4b0855165a836evboxsync $(call MSG_TOOL,awk,VBoxGuest,$<,$@)
1a5b87901a582025dc96bcd2ac4b0855165a836evboxsync $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/vnode_if.awk $(VBOX_FREEBSD_SRC)/kern/vnode_if.src -q
5601bfbc69ea7f9194242feb79e89441d8d241f9vboxsync $(QUIET)$(MV) $(PATH_vboxvfs)/vnode_if_typedef.h $(PATH_vboxvfs)/vnode_if_typedef.h
887dfcedd826364b6159847dbd25800c0eeede4avboxsync
27537ffef7291d0bb3a24e459a6b94c65586defevboxsyncinclude $(KBUILD_PATH)/subfooter.kmk
887dfcedd826364b6159847dbd25800c0eeede4avboxsync