1 | # $Id: Makefile 78436 2019-05-07 14:22:51Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VirtualBox Linux Host Virtual Network Adapter Driver.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2019 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 | # Find the directory of this makefile.
|
---|
28 | VBOXNETADPT_DIR := $(dir $(word $(words $(MAKEFILE_LIST)),$(MAKEFILE_LIST)))
|
---|
29 |
|
---|
30 | # Linux kbuild sets this to our source directory if we are called from there
|
---|
31 | obj ?= $(CURDIR)
|
---|
32 | include $(obj)/Makefile-header.gmk
|
---|
33 |
|
---|
34 | VBOXMOD_NAME = vboxnetadp
|
---|
35 | VBOXMOD_OBJS = \
|
---|
36 | linux/VBoxNetAdp-linux.o \
|
---|
37 | VBoxNetAdp.o
|
---|
38 | ifeq ($(BUILD_TARGET_ARCH),x86)
|
---|
39 | VBOXMOD_OBJS += \
|
---|
40 | math/gcc/divdi3.o \
|
---|
41 | math/gcc/moddi3.o \
|
---|
42 | math/gcc/qdivrem.o \
|
---|
43 | math/gcc/udivdi3.o \
|
---|
44 | math/gcc/udivmoddi4.o \
|
---|
45 | math/gcc/divdi3.o \
|
---|
46 | math/gcc/umoddi3.o
|
---|
47 | endif
|
---|
48 | VBOXMOD_INCL = \
|
---|
49 | $(VBOXNETADPT_DIR) \
|
---|
50 | $(VBOXNETADPT_DIR)include \
|
---|
51 | $(VBOXNETADPT_DIR)r0drv/linux
|
---|
52 | VBOXMOD_DEFS = \
|
---|
53 | RT_OS_LINUX \
|
---|
54 | IN_RING0 \
|
---|
55 | IN_RT_R0 \
|
---|
56 | IN_SUP_R0 \
|
---|
57 | VBOX \
|
---|
58 | RT_WITH_VBOX \
|
---|
59 | VBOX_WITH_HARDENING \
|
---|
60 | VBOX_WITH_64_BITS_GUESTS # <-- must be consistent with Config.kmk!
|
---|
61 | VBOXMOD_CFLAGS = -include $(VBOXNETADPT_DIR)include/VBox/SUPDrvMangling.h -fno-pie -Wno-declaration-after-statement
|
---|
62 |
|
---|
63 | include $(obj)/Makefile-footer.gmk
|
---|
64 |
|
---|