VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/sharedfolders/Makefile.module@ 77819

Last change on this file since 77819 was 77504, checked in by vboxsync, 6 years ago

Add/linux: Workaround for GNU make that does not sport MAKEFILE_LIST (< 3.80). bugref:9172

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.0 KB
Line 
1# $Id: Makefile.module 77504 2019-02-28 12:37:43Z vboxsync $
2## @file
3# VBox Linux Shared Folders VFS Module Makefile.
4#
5# (For 2.6.x this file must be 'Makefile'!)
6#
7
8#
9# Copyright (C) 2006-2019 Oracle Corporation
10#
11# This file is part of VirtualBox Open Source Edition (OSE), as
12# available from http://www.virtualbox.org. This file is free software;
13# you can redistribute it and/or modify it under the terms of the GNU
14# General Public License (GPL) as published by the Free Software
15# Foundation, in version 2 as it comes in the "COPYING" file of the
16# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
17# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
18#
19
20# Linux kbuild sets this to our source directory if we are called from there
21obj ?= $(CURDIR)
22include $(obj)/Makefile-header.gmk
23VBOXSF_DIR = $(VBOX_MODULE_SRC_DIR)
24
25VBOXMOD_NAME = vboxsf
26VBOXMOD_OBJS = \
27 vfsmod.o \
28 dirops.o \
29 lnkops.o \
30 regops.o \
31 utils.o \
32 VBoxGuestR0LibGenericRequest.o \
33 VBoxGuestR0LibHGCM.o \
34 VBoxGuestR0LibIdc.o \
35 VBoxGuestR0LibIdc-unix.o \
36 VBoxGuestR0LibInit.o \
37 VBoxGuestR0LibPhysHeap.o \
38 VBoxGuestR0LibSharedFolders.o
39ifeq ($(BUILD_TARGET_ARCH),x86)
40VBOXMOD_OBJS += \
41 divdi3.o \
42 moddi3.o \
43 udivdi3.o \
44 udivmoddi4.o \
45 umoddi3.o \
46 qdivrem.o
47endif
48VBOXMOD_INCL = \
49 $(VBOXSF_DIR) \
50 $(VBOXSF_DIR)include \
51 $(VBOXSF_DIR)r0drv/linux
52VBOXMOD_DEFS = \
53 RT_OS_LINUX \
54 IN_RING0 \
55 IN_RT_R0 \
56 IN_SUP_R0 \
57 VBOX \
58 VBOX_WITH_HGCM \
59 IN_MODULE \
60 IN_GUEST \
61 IN_GUEST_R0 \
62 RT_NO_EXPORT_SYMBOL
63ifeq ($(BUILD_TARGET_ARCH),amd64)
64VBOXMOD_DEFS += VBOX_WITH_64_BITS_GUESTS
65endif
66VBOXMOD_CFLAGS := $(call VBOX_GCC_CHECK_CC,-Wno-declaration-after-statement,-Wno-declaration-after-statement,,)
67VBOXMOD_CFLAGS += $(call VBOX_GCC_CHECK_CC,-fno-pie,-fno-pie,,)
68ifneq ($(KERN_VERSION),24)
69VBOXMOD_CFLAGS += -include $(VBOXSF_DIR)/include/VBox/VBoxGuestMangling.h
70## @todo r-bird: What's with -fshort-wchar here?? We either need that or we dont, right? It should be 2.6+ only.
71VBOXMOD_CFLAGS += -fshort-wchar
72endif
73ifdef VBOX_NO_OMIT_FRAME_POINTER
74VBOXMOD_CFLAGS += -fno-omit-frame-pointer
75endif
76
77ifneq ($(KERN_VERSION),24)
78# special hack for Fedora Core 6 2.6.18 (fc6), rhel5 2.6.18 (el5),
79# ClarkConnect 4.3 (cc4) and ClarkConnect 5 (v5)
80 ifeq ($(KERNELRELEASE),)
81VBOXMOD_CFLAGS += $(foreach inc,$(KERN_INCL),\
82 $(if $(wildcard $(inc)/linux/utsrelease.h),\
83 $(if $(shell grep '"2.6.18.*fc6.*"' $(inc)/linux/utsrelease.h; \
84 grep '"2.6.18.*el5.*"' $(inc)/linux/utsrelease.h; \
85 grep '"2.6.18.*v5.*"' $(inc)/linux/utsrelease.h; \
86 grep '"2.6.18.*cc4.*"' $(inc)/linux/utsrelease.h),\
87 -DKERNEL_FC6,),))
88 else
89VBOXMOD_CFLAGS += $(if $(shell echo "$(KERNELRELEASE)"|grep '2.6.18.*fc6.*';\
90 echo "$(KERNELRELEASE)"|grep '2.6.18.*el5.*';\
91 echo "$(KERNELRELEASE)"|grep '2.6.18.*v5.*';\
92 echo "$(KERNELRELEASE)"|grep '2.6.18.*cc4.*'),\
93 -DKERNEL_FC6,)
94 endif
95endif
96
97VBOXMOD_CLEAN = . linux r0drv r0drv/linux
98
99include $(obj)/Makefile-footer.gmk
100
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