VirtualBox

source: vbox/trunk/src/VBox/Additions/freebsd/vboxvfs/Makefile.kmk@ 7882

Last change on this file since 7882 was 7586, checked in by vboxsync, 17 years ago

Additions/FreeBSD: Makefile fix

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Makefile.kmk 7586 2008-03-26 18:55:40Z vboxsync $
2## @file
3# Sub-Makefile for the FreeBSD Shared folder kernel module.
4#
5
6#
7# Copyright (C) 2007 innotek GmbH
8#
9# This file is part of VirtualBox Open Source Edition (OSE), as
10# available from http://www.virtualbox.org. This file is free software;
11# you can redistribute it and/or modify it under the terms of the GNU
12# General Public License (GPL) as published by the Free Software
13# Foundation, in version 2 as it comes in the "COPYING" file of the
14# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
15# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
16#
17
18DEPTH ?= ../../../../..
19SUB_DEPTH = ../..
20include $(PATH_KBUILD)/subheader.kmk
21
22ifneq ($(BUILD_PLATFORM),freebsd)
23$(error "The FreeBSD guest additions can only be built on FreeBSD!")
24endif
25
26#
27# vboxvfs - The Shared Folder Driver
28#
29SYSMODS.freebsd += vboxvfs
30vboxvfs_TEMPLATE = VBOXGUESTR0
31vboxvfs_DEFS = VBOX_HGCM
32vboxvfs_INCS := \
33 $(PATH_SUB_CURRENT) \
34 $(PATH_TARGET)
35vboxvfs_SOURCES = \
36 vboxvfs_vfsops.c \
37 vboxvfs_vnops.c
38vboxvfs_LIBS = \
39 $(VBOX_LIB_VBGL_R0) \
40 $(VBOX_LIB_IPRT_GUEST_R0)
41vboxvfs_DEPS = \
42 $(PATH_TARGET)/vnode_if.h \
43 $(PATH_TARGET)/vnode_if_newproto.h \
44 $(PATH_TARGET)/vnode_if_typedef.h
45vboxvfs_CLEAN += $(vboxvfs_DEPS)
46
47VBOX_AWK := /usr/bin/awk
48
49$(PATH_TARGET)/vnode_if.h: $(VBOX_FREEBSD_SRC)/kern/vnode_if.src
50 $(call MSG_TOOL,awk,VBoxGuest,$<,$@)
51 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/vnode_if.awk $(VBOX_FREEBSD_SRC)/kern/vnode_if.src -h
52 $(QUIET)$(MV) $(PATH_SUB_CURRENT)/vnode_if.h $(PATH_TARGET)/vnode_if.h
53
54$(PATH_TARGET)/vnode_if_newproto.h: $(VBOX_FREEBSD_SRC)/kern/vnode_if.src
55 $(call MSG_TOOL,awk,VBoxGuest,$<,$@)
56 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/vnode_if.awk $(VBOX_FREEBSD_SRC)/kern/vnode_if.src -p
57 $(QUIET)$(MV) $(PATH_SUB_CURRENT)/vnode_if_newproto.h $(PATH_TARGET)/vnode_if_newproto.h
58
59$(PATH_TARGET)/vnode_if_typedef.h: $(VBOX_FREEBSD_SRC)/kern/vnode_if.src
60 $(call MSG_TOOL,awk,VBoxGuest,$<,$@)
61 $(QUIET)$(VBOX_AWK) -f $(VBOX_FREEBSD_SRC)/tools/vnode_if.awk $(VBOX_FREEBSD_SRC)/kern/vnode_if.src -q
62 $(QUIET)$(MV) $(PATH_SUB_CURRENT)/vnode_if_typedef.h $(PATH_TARGET)/vnode_if_typedef.h
63
64include $(PATH_KBUILD)/subfooter.kmk
65
Note: See TracBrowser for help on using the repository browser.

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