VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/VBoxNetAdp/linux/Makefile@ 95512

Last change on this file since 95512 was 93115, checked in by vboxsync, 3 years ago

scm --update-copyright-year

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 2.2 KB
Line 
1# $Id: Makefile 93115 2022-01-01 11:31:46Z vboxsync $
2## @file
3# Makefile for the VirtualBox Linux Host Virtual Network Adapter Driver.
4#
5
6#
7# Copyright (C) 2006-2022 Oracle Corporation
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# The contents of this file may alternatively be used under the terms
18# of the Common Development and Distribution License Version 1.0
19# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
20# VirtualBox OSE distribution, in which case the provisions of the
21# CDDL are applicable instead of those of the GPL.
22#
23# You may elect to license modified versions of this file under the
24# terms and conditions of either the GPL or the CDDL or both.
25#
26
27# Linux kbuild sets this to our source directory if we are called from there
28obj ?= $(CURDIR)
29include $(obj)/Makefile-header.gmk
30VBOXNETADP_DIR := $(VBOX_MODULE_SRC_DIR)
31
32# Allow building directly from the subdirectory without assuming the toplevel
33# makefile has done the copying. Not the default use case, but can be handy.
34ifndef KBUILD_EXTRA_SYMBOLS
35KBUILD_EXTRA_SYMBOLS=$(abspath $(VBOXNETADP_DIR)/../vboxdrv/Module.symvers)
36endif
37
38VBOXMOD_NAME = vboxnetadp
39VBOXMOD_OBJS = \
40 linux/VBoxNetAdp-linux.o \
41 VBoxNetAdp.o
42ifeq ($(VBOX_KBUILD_TARGET_ARCH),x86)
43VBOXMOD_OBJS += \
44 math/gcc/divdi3.o \
45 math/gcc/moddi3.o \
46 math/gcc/qdivrem.o \
47 math/gcc/udivdi3.o \
48 math/gcc/udivmoddi4.o \
49 math/gcc/divdi3.o \
50 math/gcc/umoddi3.o
51endif
52VBOXMOD_INCL = \
53 $(VBOXNETADP_DIR) \
54 $(VBOXNETADP_DIR)include \
55 $(VBOXNETADP_DIR)r0drv/linux
56VBOXMOD_DEFS = \
57 RT_OS_LINUX \
58 IN_RING0 \
59 IN_RT_R0 \
60 IN_SUP_R0 \
61 VBOX \
62 RT_WITH_VBOX \
63 VBOX_WITH_HARDENING \
64 VBOX_WITH_64_BITS_GUESTS # <-- must be consistent with Config.kmk!
65VBOXMOD_CFLAGS = -include $(VBOXNETADP_DIR)include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement
66
67include $(obj)/Makefile-footer.gmk
68
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