VirtualBox

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

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

Converted the (recursive) linux makefiles to sub-makefiles.

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