1 | # $Id: Makefile 93115 2022-01-01 11:31:46Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # VirtualBox Guest Additions Module Makefile.
|
---|
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 | KMOD = vboxguest
|
---|
27 |
|
---|
28 | 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
|
---|
29 |
|
---|
30 | .if (${MACHINE_ARCH} == "i386")
|
---|
31 | CFLAGS += -DRT_ARCH_X86
|
---|
32 | .elif (${MACHINE_ARCH} == "amd64")
|
---|
33 | CFLAGS += -DRT_ARCH_AMD64
|
---|
34 | .endif
|
---|
35 |
|
---|
36 | SRCS = \
|
---|
37 | VBoxGuest.c \
|
---|
38 | VBoxGuest-freebsd.c \
|
---|
39 | VBoxGuestR0LibGenericRequest.c \
|
---|
40 | VBoxGuestR0LibHGCMInternal.c \
|
---|
41 | VBoxGuestR0LibInit.c \
|
---|
42 | VBoxGuestR0LibPhysHeap.c \
|
---|
43 | VBoxGuestR0LibVMMDev.c
|
---|
44 |
|
---|
45 | # Include needed interface headers so they are created during build
|
---|
46 | SRCS += \
|
---|
47 | device_if.h \
|
---|
48 | bus_if.h \
|
---|
49 | pci_if.h \
|
---|
50 |
|
---|
51 | .PATH: ${.CURDIR}/alloc
|
---|
52 | SRCS += \
|
---|
53 | heapsimple.c
|
---|
54 |
|
---|
55 | .PATH: ${.CURDIR}/common/err
|
---|
56 | SRCS += \
|
---|
57 | RTErrConvertFromErrno.c \
|
---|
58 | RTErrConvertToErrno.c \
|
---|
59 | errinfo.c
|
---|
60 |
|
---|
61 | .PATH: ${.CURDIR}/common/log
|
---|
62 | SRCS += \
|
---|
63 | log.c \
|
---|
64 | logellipsis.c \
|
---|
65 | logrel.c \
|
---|
66 | logrelellipsis.c \
|
---|
67 | logcom.c \
|
---|
68 | logformat.c \
|
---|
69 | RTLogCreateEx.c
|
---|
70 |
|
---|
71 | .PATH: ${.CURDIR}/common/misc
|
---|
72 | SRCS += \
|
---|
73 | RTAssertMsg1Weak.c \
|
---|
74 | RTAssertMsg2.c \
|
---|
75 | RTAssertMsg2Add.c \
|
---|
76 | RTAssertMsg2AddWeak.c \
|
---|
77 | RTAssertMsg2AddWeakV.c \
|
---|
78 | RTAssertMsg2Weak.c \
|
---|
79 | RTAssertMsg2WeakV.c \
|
---|
80 | assert.c \
|
---|
81 | handletable.c \
|
---|
82 | handletablectx.c \
|
---|
83 | once.c \
|
---|
84 | thread.c
|
---|
85 |
|
---|
86 | .PATH: ${.CURDIR}/common/string
|
---|
87 | SRCS += \
|
---|
88 | RTStrCat.c \
|
---|
89 | RTStrCmp.c \
|
---|
90 | RTStrCopy.c \
|
---|
91 | RTStrCopyEx.c \
|
---|
92 | RTStrCopyP.c \
|
---|
93 | RTStrEnd.c \
|
---|
94 | RTStrICmpAscii.c \
|
---|
95 | RTStrNICmpAscii.c \
|
---|
96 | RTStrNCmp.c \
|
---|
97 | RTStrNLen.c \
|
---|
98 | stringalloc.c \
|
---|
99 | strformat.c \
|
---|
100 | RTStrFormat.c \
|
---|
101 | strformatnum.c \
|
---|
102 | strformatrt.c \
|
---|
103 | strformattype.c \
|
---|
104 | strprintf.c \
|
---|
105 | strprintf-ellipsis.c \
|
---|
106 | strprintf2.c \
|
---|
107 | strprintf2-ellipsis.c \
|
---|
108 | strtonum.c \
|
---|
109 | memchr.c \
|
---|
110 | utf-8.c
|
---|
111 |
|
---|
112 | .PATH: ${.CURDIR}/common/rand
|
---|
113 | SRCS += \
|
---|
114 | rand.c \
|
---|
115 | randadv.c \
|
---|
116 | randparkmiller.c
|
---|
117 |
|
---|
118 | .PATH: ${.CURDIR}/common/path
|
---|
119 | SRCS += \
|
---|
120 | RTPathStripFilename.c
|
---|
121 |
|
---|
122 | .PATH: ${.CURDIR}/common/checksum
|
---|
123 | SRCS += \
|
---|
124 | crc32.c \
|
---|
125 | ipv4.c
|
---|
126 |
|
---|
127 | .PATH: ${.CURDIR}/common/table
|
---|
128 | SRCS += \
|
---|
129 | avlpv.c
|
---|
130 |
|
---|
131 | .PATH: ${.CURDIR}/common/time
|
---|
132 | SRCS += \
|
---|
133 | time.c
|
---|
134 |
|
---|
135 | .PATH: ${.CURDIR}/generic
|
---|
136 | SRCS += \
|
---|
137 | uuid-generic.c \
|
---|
138 | RTAssertShouldPanic-generic.c \
|
---|
139 | RTLogWriteDebugger-generic.c \
|
---|
140 | RTLogWriteStdOut-stub-generic.c \
|
---|
141 | RTLogWriteStdErr-stub-generic.c \
|
---|
142 | RTRandAdvCreateSystemFaster-generic.c \
|
---|
143 | RTRandAdvCreateSystemTruer-generic.c \
|
---|
144 | RTSemEventWait-2-ex-generic.c \
|
---|
145 | RTSemEventWaitNoResume-2-ex-generic.c \
|
---|
146 | RTSemEventMultiWait-2-ex-generic.c \
|
---|
147 | RTSemEventMultiWaitNoResume-2-ex-generic.c \
|
---|
148 | RTTimerCreate-generic.c \
|
---|
149 | rtStrFormatKernelAddress-generic.c \
|
---|
150 | timer-generic.c \
|
---|
151 | errvars-generic.c \
|
---|
152 | mppresent-generic.c
|
---|
153 |
|
---|
154 | .PATH: ${.CURDIR}/r0drv
|
---|
155 | SRCS += \
|
---|
156 | alloc-r0drv.c \
|
---|
157 | initterm-r0drv.c \
|
---|
158 | memobj-r0drv.c \
|
---|
159 | powernotification-r0drv.c
|
---|
160 |
|
---|
161 | .PATH: ${.CURDIR}/r0drv/freebsd
|
---|
162 | SRCS += \
|
---|
163 | assert-r0drv-freebsd.c \
|
---|
164 | alloc-r0drv-freebsd.c \
|
---|
165 | initterm-r0drv-freebsd.c \
|
---|
166 | memobj-r0drv-freebsd.c \
|
---|
167 | memuserkernel-r0drv-freebsd.c \
|
---|
168 | mp-r0drv-freebsd.c \
|
---|
169 | process-r0drv-freebsd.c \
|
---|
170 | semevent-r0drv-freebsd.c \
|
---|
171 | semeventmulti-r0drv-freebsd.c \
|
---|
172 | semfastmutex-r0drv-freebsd.c \
|
---|
173 | semmutex-r0drv-freebsd.c \
|
---|
174 | spinlock-r0drv-freebsd.c \
|
---|
175 | thread-r0drv-freebsd.c \
|
---|
176 | thread2-r0drv-freebsd.c \
|
---|
177 | time-r0drv-freebsd.c
|
---|
178 |
|
---|
179 | .PATH: ${.CURDIR}/r0drv/generic
|
---|
180 | SRCS += \
|
---|
181 | semspinmutex-r0drv-generic.c \
|
---|
182 | mpnotification-r0drv-generic.c \
|
---|
183 | RTMpIsCpuWorkPending-r0drv-generic.c
|
---|
184 |
|
---|
185 | .PATH: ${.CURDIR}/VBox
|
---|
186 | SRCS += \
|
---|
187 | log-vbox.c \
|
---|
188 | logbackdoor.c
|
---|
189 |
|
---|
190 | .include <bsd.kmod.mk>
|
---|
191 |
|
---|