[25590] | 1 | # $Id: Makefile 98103 2023-01-17 14:15:46Z vboxsync $
|
---|
| 2 | ## @file
|
---|
| 3 | # VirtualBox Guest Additions Module Makefile.
|
---|
| 4 | #
|
---|
| 5 |
|
---|
| 6 | #
|
---|
[98103] | 7 | # Copyright (C) 2006-2023 Oracle and/or its affiliates.
|
---|
[25590] | 8 | #
|
---|
[96407] | 9 | # This file is part of VirtualBox base platform packages, as
|
---|
| 10 | # available from https://www.virtualbox.org.
|
---|
[25590] | 11 | #
|
---|
[96407] | 12 | # This program is free software; you can redistribute it and/or
|
---|
| 13 | # modify it under the terms of the GNU General Public License
|
---|
| 14 | # as published by the Free Software Foundation, in version 3 of the
|
---|
| 15 | # License.
|
---|
| 16 | #
|
---|
| 17 | # This program is distributed in the hope that it will be useful, but
|
---|
| 18 | # WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
| 19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
---|
| 20 | # General Public License for more details.
|
---|
| 21 | #
|
---|
| 22 | # You should have received a copy of the GNU General Public License
|
---|
| 23 | # along with this program; if not, see <https://www.gnu.org/licenses>.
|
---|
| 24 | #
|
---|
[69308] | 25 | # The contents of this file may alternatively be used under the terms
|
---|
| 26 | # of the Common Development and Distribution License Version 1.0
|
---|
[96407] | 27 | # (CDDL), a copy of it is provided in the "COPYING.CDDL" file included
|
---|
| 28 | # in the VirtualBox distribution, in which case the provisions of the
|
---|
[69308] | 29 | # CDDL are applicable instead of those of the GPL.
|
---|
| 30 | #
|
---|
| 31 | # You may elect to license modified versions of this file under the
|
---|
| 32 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
| 33 | #
|
---|
[96407] | 34 | # SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
|
---|
| 35 | #
|
---|
[25590] | 36 | KMOD = vboxguest
|
---|
| 37 |
|
---|
| 38 | CFLAGS += -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -Iinclude -I. -Ir0drv -w -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DVBOX_WITH_64_BITS_GUESTS
|
---|
| 39 |
|
---|
| 40 | .if (${MACHINE_ARCH} == "i386")
|
---|
| 41 | CFLAGS += -DRT_ARCH_X86
|
---|
| 42 | .elif (${MACHINE_ARCH} == "amd64")
|
---|
| 43 | CFLAGS += -DRT_ARCH_AMD64
|
---|
| 44 | .endif
|
---|
| 45 |
|
---|
| 46 | SRCS = \
|
---|
| 47 | VBoxGuest.c \
|
---|
| 48 | VBoxGuest-freebsd.c \
|
---|
[68641] | 49 | VBoxGuestR0LibGenericRequest.c \
|
---|
| 50 | VBoxGuestR0LibHGCMInternal.c \
|
---|
| 51 | VBoxGuestR0LibInit.c \
|
---|
| 52 | VBoxGuestR0LibPhysHeap.c \
|
---|
| 53 | VBoxGuestR0LibVMMDev.c
|
---|
[25590] | 54 |
|
---|
| 55 | # Include needed interface headers so they are created during build
|
---|
| 56 | SRCS += \
|
---|
| 57 | device_if.h \
|
---|
| 58 | bus_if.h \
|
---|
| 59 | pci_if.h \
|
---|
| 60 |
|
---|
| 61 | .PATH: ${.CURDIR}/alloc
|
---|
| 62 | SRCS += \
|
---|
| 63 | heapsimple.c
|
---|
| 64 |
|
---|
| 65 | .PATH: ${.CURDIR}/common/err
|
---|
| 66 | SRCS += \
|
---|
| 67 | RTErrConvertFromErrno.c \
|
---|
[69762] | 68 | RTErrConvertToErrno.c \
|
---|
| 69 | errinfo.c
|
---|
[25590] | 70 |
|
---|
| 71 | .PATH: ${.CURDIR}/common/log
|
---|
| 72 | SRCS += \
|
---|
| 73 | log.c \
|
---|
| 74 | logellipsis.c \
|
---|
| 75 | logrel.c \
|
---|
| 76 | logrelellipsis.c \
|
---|
| 77 | logcom.c \
|
---|
[91789] | 78 | logformat.c \
|
---|
| 79 | RTLogCreateEx.c
|
---|
[25590] | 80 |
|
---|
| 81 | .PATH: ${.CURDIR}/common/misc
|
---|
| 82 | SRCS += \
|
---|
| 83 | RTAssertMsg1Weak.c \
|
---|
| 84 | RTAssertMsg2.c \
|
---|
| 85 | RTAssertMsg2Add.c \
|
---|
| 86 | RTAssertMsg2AddWeak.c \
|
---|
| 87 | RTAssertMsg2AddWeakV.c \
|
---|
| 88 | RTAssertMsg2Weak.c \
|
---|
| 89 | RTAssertMsg2WeakV.c \
|
---|
| 90 | assert.c \
|
---|
| 91 | handletable.c \
|
---|
| 92 | handletablectx.c \
|
---|
| 93 | once.c \
|
---|
| 94 | thread.c
|
---|
| 95 |
|
---|
| 96 | .PATH: ${.CURDIR}/common/string
|
---|
| 97 | SRCS += \
|
---|
[69768] | 98 | RTStrCat.c \
|
---|
[70159] | 99 | RTStrCmp.c \
|
---|
[29056] | 100 | RTStrCopy.c \
|
---|
[53241] | 101 | RTStrCopyEx.c \
|
---|
[36408] | 102 | RTStrCopyP.c \
|
---|
[83886] | 103 | RTStrEnd.c \
|
---|
[70095] | 104 | RTStrICmpAscii.c \
|
---|
| 105 | RTStrNICmpAscii.c \
|
---|
[70159] | 106 | RTStrNCmp.c \
|
---|
[70160] | 107 | RTStrNLen.c \
|
---|
[70159] | 108 | stringalloc.c \
|
---|
[25590] | 109 | strformat.c \
|
---|
[91789] | 110 | RTStrFormat.c \
|
---|
[69838] | 111 | strformatnum.c \
|
---|
[25590] | 112 | strformatrt.c \
|
---|
| 113 | strformattype.c \
|
---|
| 114 | strprintf.c \
|
---|
[91789] | 115 | strprintf-ellipsis.c \
|
---|
[90829] | 116 | strprintf2.c \
|
---|
[91789] | 117 | strprintf2-ellipsis.c \
|
---|
[25590] | 118 | strtonum.c \
|
---|
[70159] | 119 | memchr.c \
|
---|
| 120 | utf-8.c
|
---|
[25590] | 121 |
|
---|
| 122 | .PATH: ${.CURDIR}/common/rand
|
---|
| 123 | SRCS += \
|
---|
| 124 | rand.c \
|
---|
| 125 | randadv.c \
|
---|
| 126 | randparkmiller.c
|
---|
| 127 |
|
---|
| 128 | .PATH: ${.CURDIR}/common/path
|
---|
| 129 | SRCS += \
|
---|
| 130 | RTPathStripFilename.c
|
---|
| 131 |
|
---|
| 132 | .PATH: ${.CURDIR}/common/checksum
|
---|
| 133 | SRCS += \
|
---|
| 134 | crc32.c \
|
---|
| 135 | ipv4.c
|
---|
| 136 |
|
---|
| 137 | .PATH: ${.CURDIR}/common/table
|
---|
| 138 | SRCS += \
|
---|
| 139 | avlpv.c
|
---|
| 140 |
|
---|
[35354] | 141 | .PATH: ${.CURDIR}/common/time
|
---|
| 142 | SRCS += \
|
---|
| 143 | time.c
|
---|
| 144 |
|
---|
[25590] | 145 | .PATH: ${.CURDIR}/generic
|
---|
| 146 | SRCS += \
|
---|
| 147 | uuid-generic.c \
|
---|
| 148 | RTAssertShouldPanic-generic.c \
|
---|
| 149 | RTLogWriteDebugger-generic.c \
|
---|
| 150 | RTLogWriteStdOut-stub-generic.c \
|
---|
| 151 | RTLogWriteStdErr-stub-generic.c \
|
---|
| 152 | RTRandAdvCreateSystemFaster-generic.c \
|
---|
| 153 | RTRandAdvCreateSystemTruer-generic.c \
|
---|
[33378] | 154 | RTSemEventWait-2-ex-generic.c \
|
---|
| 155 | RTSemEventWaitNoResume-2-ex-generic.c \
|
---|
| 156 | RTSemEventMultiWait-2-ex-generic.c \
|
---|
| 157 | RTSemEventMultiWaitNoResume-2-ex-generic.c \
|
---|
[25590] | 158 | RTTimerCreate-generic.c \
|
---|
[66415] | 159 | rtStrFormatKernelAddress-generic.c \
|
---|
[25590] | 160 | timer-generic.c \
|
---|
[37233] | 161 | errvars-generic.c \
|
---|
[25590] | 162 | mppresent-generic.c
|
---|
| 163 |
|
---|
| 164 | .PATH: ${.CURDIR}/r0drv
|
---|
| 165 | SRCS += \
|
---|
| 166 | alloc-r0drv.c \
|
---|
| 167 | initterm-r0drv.c \
|
---|
| 168 | memobj-r0drv.c \
|
---|
| 169 | powernotification-r0drv.c
|
---|
| 170 |
|
---|
| 171 | .PATH: ${.CURDIR}/r0drv/freebsd
|
---|
| 172 | SRCS += \
|
---|
| 173 | assert-r0drv-freebsd.c \
|
---|
| 174 | alloc-r0drv-freebsd.c \
|
---|
| 175 | initterm-r0drv-freebsd.c \
|
---|
| 176 | memobj-r0drv-freebsd.c \
|
---|
| 177 | memuserkernel-r0drv-freebsd.c \
|
---|
| 178 | mp-r0drv-freebsd.c \
|
---|
| 179 | process-r0drv-freebsd.c \
|
---|
| 180 | semevent-r0drv-freebsd.c \
|
---|
| 181 | semeventmulti-r0drv-freebsd.c \
|
---|
| 182 | semfastmutex-r0drv-freebsd.c \
|
---|
[42330] | 183 | semmutex-r0drv-freebsd.c \
|
---|
[25590] | 184 | spinlock-r0drv-freebsd.c \
|
---|
| 185 | thread-r0drv-freebsd.c \
|
---|
| 186 | thread2-r0drv-freebsd.c \
|
---|
[68581] | 187 | time-r0drv-freebsd.c
|
---|
[25590] | 188 |
|
---|
| 189 | .PATH: ${.CURDIR}/r0drv/generic
|
---|
| 190 | SRCS += \
|
---|
| 191 | semspinmutex-r0drv-generic.c \
|
---|
| 192 | mpnotification-r0drv-generic.c \
|
---|
| 193 | RTMpIsCpuWorkPending-r0drv-generic.c
|
---|
| 194 |
|
---|
| 195 | .PATH: ${.CURDIR}/VBox
|
---|
| 196 | SRCS += \
|
---|
| 197 | log-vbox.c \
|
---|
[96814] | 198 | logbackdoor.c \
|
---|
| 199 | RTLogWriteVmm-amd64-x86.
|
---|
[25590] | 200 |
|
---|
| 201 | .include <bsd.kmod.mk>
|
---|
| 202 |
|
---|