VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/sharedfolders/Makefile.kmk@ 5999

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

The Giant CDDL Dual-License Header Change.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1# $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z vboxsync $
2## @file
3# Makefile for the vboxvfs (linux shared folders module).
4#
5
6#
7# Copyright (C) 2006-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 = ../../../../..
19include $(PATH_KBUILD)/header.kmk
20
21ifdef VBOX_WITH_LINUX_ADDITIONS_32BIT_R0
22SYSMODS = vboxvfs
23endif
24PROGRAMS = mountvboxsf
25INSTALLS = vboxvfs-bin vboxvfs-sh
26
27#
28# Populate FILES_VBOXVFS_NOBIN and FILES_VBOXVFS_BIN
29#
30include files_vboxvfs
31
32#
33# Install the source.
34#
35vboxvfs-bin_INST = $(INST_ADDITIONS)/src/vboxvfs
36vboxvfs-bin_MODE = a+r,u+w
37vboxvfs-bin_SOURCES = $(subst ",,$(FILES_VBOXVFS_NOBIN))
38
39vboxvfs-sh_INST = $(INST_ADDITIONS)/src/vboxvfs
40vboxvfs-sh_MODE = a+rx,u+w
41vboxvfs-sh_SOURCES = $(subst ",,$(FILES_VBOXVFS_BIN))
42
43#
44# The module (for syntax checking).
45#
46vboxvfs_TEMPLATE = VBOXLNX32GUESTR0
47vboxvfs_DEFS := KBUILD_MODNAME=KBUILD_STR\(vboxadd\) \
48 KBUILD_BASENAME=KBUILD_STR\(vboxadd\) \
49 MODULE IN_RING0 IN_RT_R0 VBOXGUEST VBOX_HGCM
50vboxvfs_LIBS = $(PATH_LIB)/VBoxGuestLibLinux.a $(PATH_LIB)/RuntimeLnx32GuestR0.a
51vboxvfs_SOURCES = \
52 vfsmod.c \
53 utils.c \
54 dirops.c \
55 regops.c
56vboxvfs_NOINST = 1
57vboxvfs_CFLAGS += -fshort-wchar
58vboxvfs_INCS += \
59 ../../common/VBoxGuestLib \
60 $(PATH_ROOT)/src/VBox/Runtime/r0drv/linux
61
62# detect fc6 2.6.18
63vboxvfs_DEFS += $(foreach inc,$(VBOX_LINUX_INCS),\
64 $(if $(wildcard $(inc)/linux/utsrelease.h),\
65 $(if $(shell if grep -q '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h;\
66 then echo yes; fi),KERNEL_FC6,),))
67# detect rhel5 2.6.18
68vboxvfs_DEFS += $(foreach inc,$(VBOX_LINUX_INCS),\
69 $(if $(wildcard $(inc)/linux/utsrelease.h),\
70 $(if $(shell if grep -q '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h;\
71 then echo yes; fi),KERNEL_FC6,),))
72
73
74#
75# The mount util.
76#
77mountvboxsf_TEMPLATE = VBOXLNX32GUESTR3EXENOCPP
78mountvboxsf_SOURCES = \
79 vbsfmount.h \
80 mount.vboxsf.c
81mountvboxsf_DEFS = _GNU_SOURCE
82
83
84include $(PATH_KBUILD)/footer.kmk
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