Changeset 77393 in vbox for trunk/src/VBox/Additions/common/VBoxGuest/linux/Makefile
- Timestamp:
- Feb 20, 2019 4:09:58 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/linux/Makefile
r77390 r77393 1 # $ Revision$1 # $Id$ 2 2 ## @file 3 3 # VirtualBox Guest Additions Module Makefile. … … 25 25 # 26 26 27 # Find the directory of this makefile. 28 VBOXGUEST_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST))) 29 27 30 # Linux kbuild sets this to our source directory if we are called from there 28 31 obj ?= $(CURDIR) … … 31 34 MOD_NAME = vboxguest 32 35 33 MOD_OBJS 36 MOD_OBJS = \ 34 37 VBoxGuest-linux.o \ 35 38 VBoxGuest.o \ … … 124 127 endif 125 128 ifeq ($(BUILD_TARGET_ARCH),amd64) 126 MOD_OBJS += 129 MOD_OBJS += common/alloc/heapsimple.o 127 130 endif 128 131 129 132 MOD_DEFS = -DVBOX -DRT_OS_LINUX -DIN_RING0 -DIN_RT_R0 -DIN_GUEST \ 130 131 133 -DIN_GUEST_R0 -DIN_MODULE -DRT_WITH_VBOX -DVBGL_VBOXGUEST \ 134 -DVBOX_WITH_HGCM 132 135 ifeq ($(BUILD_TARGET_ARCH),amd64) 133 MOD_DEFS+= -DRT_ARCH_AMD64136 MOD_DEFS += -DRT_ARCH_AMD64 134 137 else 135 MOD_DEFS+= -DRT_ARCH_X86138 MOD_DEFS += -DRT_ARCH_X86 136 139 endif 137 140 ifeq ($(BUILD_TARGET_ARCH),amd64) 138 MOD_DEFS += -DVBOX_WITH_64_BITS_GUESTS 139 endif 140 MOD_INCL = $(addprefix -I$(KBUILD_EXTMOD),/ /include /r0drv/linux) 141 MOD_INCL += $(addprefix -I$(KBUILD_EXTMOD)/vboxguest,/ /include /r0drv/linux) 142 143 ifneq ($(wildcard $(KBUILD_EXTMOD)/vboxguest),) 144 MANGLING := $(KBUILD_EXTMOD)/vboxguest/include/VBox/VBoxGuestMangling.h 145 else 146 MANGLING := $(KBUILD_EXTMOD)/include/VBox/VBoxGuestMangling.h 141 MOD_DEFS += -DVBOX_WITH_64_BITS_GUESTS 147 142 endif 148 143 ifeq ($(KERN_VERSION),24) 149 ## @todo move to MOD_DEFS when we have finished refactoring 150 MOD_CFLAGS = -DEXPORT_SYMTAB 144 MOD_DEFS += -DEXPORT_SYMTAB 145 endif 146 147 MOD_INCL = -I$(VBOXGUEST_DIR) -I$(VBOXGUEST_DIR)include -I$(VBOXGUEST_DIR)r0drv/linux 148 149 ifeq ($(KERN_VERSION),24) 150 MOD_CFLAGS = 151 151 else 152 MOD_CFLAGS = -Wno-declaration-after-statement -include $(MANGLING)-fno-pie152 MOD_CFLAGS = -Wno-declaration-after-statement -include $(VBOXGUEST_DIR)include/VBox/VBoxGuestMangling.h -fno-pie 153 153 endif 154 154 155 155 MOD_CLEAN = . linux r0drv generic r0drv/linux r0drv/generic VBox \ 156 157 156 common/alloc common/err common/log common/math/gcc common/misc \ 157 common/string common/table common/time 158 158 159 159 include $(obj)/Makefile-footer.gmk
Note:
See TracChangeset
for help on using the changeset viewer.