VirtualBox

source: vbox/trunk/src/VBox/Additions/common/VBoxGuest/freebsd/Makefile

Last change on this file was 98103, checked in by vboxsync, 16 months ago

Copyright year updates by scm.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1# $Id: Makefile 98103 2023-01-17 14:15:46Z vboxsync $
2## @file
3# VirtualBox Guest Additions Module Makefile.
4#
5
6#
7# Copyright (C) 2006-2023 Oracle and/or its affiliates.
8#
9# This file is part of VirtualBox base platform packages, as
10# available from https://www.virtualbox.org.
11#
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#
25# The contents of this file may alternatively be used under the terms
26# of the Common Development and Distribution License Version 1.0
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
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#
34# SPDX-License-Identifier: GPL-3.0-only OR CDDL-1.0
35#
36KMOD = vboxguest
37
38CFLAGS += -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
46SRCS = \
47 VBoxGuest.c \
48 VBoxGuest-freebsd.c \
49 VBoxGuestR0LibGenericRequest.c \
50 VBoxGuestR0LibHGCMInternal.c \
51 VBoxGuestR0LibInit.c \
52 VBoxGuestR0LibPhysHeap.c \
53 VBoxGuestR0LibVMMDev.c
54
55# Include needed interface headers so they are created during build
56SRCS += \
57 device_if.h \
58 bus_if.h \
59 pci_if.h \
60
61.PATH: ${.CURDIR}/alloc
62SRCS += \
63 heapsimple.c
64
65.PATH: ${.CURDIR}/common/err
66SRCS += \
67 RTErrConvertFromErrno.c \
68 RTErrConvertToErrno.c \
69 errinfo.c
70
71.PATH: ${.CURDIR}/common/log
72SRCS += \
73 log.c \
74 logellipsis.c \
75 logrel.c \
76 logrelellipsis.c \
77 logcom.c \
78 logformat.c \
79 RTLogCreateEx.c
80
81.PATH: ${.CURDIR}/common/misc
82SRCS += \
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
97SRCS += \
98 RTStrCat.c \
99 RTStrCmp.c \
100 RTStrCopy.c \
101 RTStrCopyEx.c \
102 RTStrCopyP.c \
103 RTStrEnd.c \
104 RTStrICmpAscii.c \
105 RTStrNICmpAscii.c \
106 RTStrNCmp.c \
107 RTStrNLen.c \
108 stringalloc.c \
109 strformat.c \
110 RTStrFormat.c \
111 strformatnum.c \
112 strformatrt.c \
113 strformattype.c \
114 strprintf.c \
115 strprintf-ellipsis.c \
116 strprintf2.c \
117 strprintf2-ellipsis.c \
118 strtonum.c \
119 memchr.c \
120 utf-8.c
121
122.PATH: ${.CURDIR}/common/rand
123SRCS += \
124 rand.c \
125 randadv.c \
126 randparkmiller.c
127
128.PATH: ${.CURDIR}/common/path
129SRCS += \
130 RTPathStripFilename.c
131
132.PATH: ${.CURDIR}/common/checksum
133SRCS += \
134 crc32.c \
135 ipv4.c
136
137.PATH: ${.CURDIR}/common/table
138SRCS += \
139 avlpv.c
140
141.PATH: ${.CURDIR}/common/time
142SRCS += \
143 time.c
144
145.PATH: ${.CURDIR}/generic
146SRCS += \
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 \
154 RTSemEventWait-2-ex-generic.c \
155 RTSemEventWaitNoResume-2-ex-generic.c \
156 RTSemEventMultiWait-2-ex-generic.c \
157 RTSemEventMultiWaitNoResume-2-ex-generic.c \
158 RTTimerCreate-generic.c \
159 rtStrFormatKernelAddress-generic.c \
160 timer-generic.c \
161 errvars-generic.c \
162 mppresent-generic.c
163
164.PATH: ${.CURDIR}/r0drv
165SRCS += \
166 alloc-r0drv.c \
167 initterm-r0drv.c \
168 memobj-r0drv.c \
169 powernotification-r0drv.c
170
171.PATH: ${.CURDIR}/r0drv/freebsd
172SRCS += \
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 \
183 semmutex-r0drv-freebsd.c \
184 spinlock-r0drv-freebsd.c \
185 thread-r0drv-freebsd.c \
186 thread2-r0drv-freebsd.c \
187 time-r0drv-freebsd.c
188
189.PATH: ${.CURDIR}/r0drv/generic
190SRCS += \
191 semspinmutex-r0drv-generic.c \
192 mpnotification-r0drv-generic.c \
193 RTMpIsCpuWorkPending-r0drv-generic.c
194
195.PATH: ${.CURDIR}/VBox
196SRCS += \
197 log-vbox.c \
198 logbackdoor.c \
199 RTLogWriteVmm-amd64-x86.
200
201.include <bsd.kmod.mk>
202
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use