VirtualBox

source: vbox/trunk/src/VBox/HostDrivers/Support/freebsd/Makefile@ 67954

Last change on this file since 67954 was 66415, checked in by vboxsync, 7 years ago

IPRT: split %RKv formatting into separate function.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.1 KB
Line 
1# $Id: Makefile 66415 2017-04-04 13:17:22Z vboxsync $
2## @file
3# Makefile for the VirtualBox FreeBSD Host Driver.
4#
5
6#
7# Copyright (C) 2006-2015 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
27KMOD = vboxdrv
28
29CFLAGS += -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DSUPDRV_WITH_RELEASE_LOGGER -DVBOX -DRT_WITH_VBOX -Iinclude -I. -Ir0drv -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS
30
31.if (${MACHINE_ARCH} == "i386")
32 CFLAGS += -DRT_ARCH_X86
33.elif (${MACHINE_ARCH} == "amd64")
34 CFLAGS += -DRT_ARCH_AMD64
35.endif
36
37SRCS = \
38 SUPDrv.c \
39 SUPDrvGip.c \
40 SUPDrvSem.c \
41 SUPDrvTracer.c \
42 SUPLibAll.c \
43
44# Include needed interface headers so they are created during build
45SRCS += \
46 device_if.h \
47 bus_if.h
48
49.PATH: ${.CURDIR}/freebsd
50SRCS += \
51 SUPDrv-freebsd.c
52
53.PATH: ${.CURDIR}/alloc
54SRCS += \
55 heapsimple.c \
56 alloc.c
57
58.PATH: ${.CURDIR}/common/err
59SRCS += \
60 RTErrConvertFromErrno.c \
61 RTErrConvertToErrno.c
62
63.PATH: ${.CURDIR}/common/log
64SRCS += \
65 log.c \
66 logellipsis.c \
67 logrel.c \
68 logrelellipsis.c \
69 logcom.c \
70 logformat.c
71
72.PATH: ${.CURDIR}/common/misc
73SRCS += \
74 RTAssertMsg1Weak.c \
75 RTAssertMsg2.c \
76 RTAssertMsg2Add.c \
77 RTAssertMsg2AddWeak.c \
78 RTAssertMsg2AddWeakV.c \
79 RTAssertMsg2Weak.c \
80 RTAssertMsg2WeakV.c \
81 assert.c \
82 handletable.c \
83 handletablectx.c \
84 once.c \
85 term.c \
86 thread.c
87
88.PATH: ${.CURDIR}/common/string
89SRCS += \
90 RTStrNCmp.c \
91 RTStrNLen.c \
92 RTStrCopy.c \
93 RTStrCopyEx.c \
94 RTStrCopyP.c \
95 strformat.c \
96 strformatrt.c \
97 strformattype.c \
98 strprintf.c \
99 strtonum.c \
100 memchr.c \
101 stringalloc.c
102
103.PATH: ${.CURDIR}/common/rand
104SRCS += \
105 rand.c \
106 randadv.c \
107 randparkmiller.c
108
109.PATH: ${.CURDIR}/common/path
110SRCS += \
111 RTPathStripFilename.c
112
113.PATH: ${.CURDIR}/common/checksum
114SRCS += \
115 crc32.c \
116 ipv4.c \
117 ipv6.c
118
119.PATH: ${.CURDIR}/common/table
120SRCS += \
121 avlpv.c
122
123.PATH: ${.CURDIR}/common/time
124SRCS += \
125 time.c
126
127.PATH: ${.CURDIR}/generic
128SRCS += \
129 uuid-generic.c \
130 RTAssertShouldPanic-generic.c \
131 RTLogWriteDebugger-generic.c \
132 RTLogWriteStdOut-stub-generic.c \
133 RTLogWriteStdErr-stub-generic.c \
134 RTLogWriteUser-generic.c \
135 RTMpGetArraySize-generic.c \
136 RTMpOnPair-generic.c \
137 RTRandAdvCreateSystemFaster-generic.c \
138 RTRandAdvCreateSystemTruer-generic.c \
139 RTSemEventWait-2-ex-generic.c \
140 RTSemEventWaitNoResume-2-ex-generic.c \
141 RTSemEventMultiWait-2-ex-generic.c \
142 RTSemEventMultiWaitNoResume-2-ex-generic.c \
143 RTTimerCreate-generic.c \
144 rtStrFormatKernelAddress-generic.c \
145 errvars-generic.c \
146 mppresent-generic.c \
147 timer-generic.c
148
149.PATH: ${.CURDIR}/r0drv
150SRCS += \
151 alloc-r0drv.c \
152 alloc-ef-r0drv.c \
153 initterm-r0drv.c \
154 memobj-r0drv.c \
155 powernotification-r0drv.c
156
157.PATH: ${.CURDIR}/r0drv/freebsd
158SRCS += \
159 assert-r0drv-freebsd.c \
160 alloc-r0drv-freebsd.c \
161 initterm-r0drv-freebsd.c \
162 memobj-r0drv-freebsd.c \
163 memuserkernel-r0drv-freebsd.c \
164 mp-r0drv-freebsd.c \
165 process-r0drv-freebsd.c \
166 semevent-r0drv-freebsd.c \
167 semeventmulti-r0drv-freebsd.c \
168 semfastmutex-r0drv-freebsd.c \
169 semmutex-r0drv-freebsd.c \
170 spinlock-r0drv-freebsd.c \
171 thread-r0drv-freebsd.c \
172 thread2-r0drv-freebsd.c \
173 time-r0drv-freebsd.c
174
175.PATH: ${.CURDIR}/r0drv/generic
176SRCS += \
177 semspinmutex-r0drv-generic.c \
178 mpnotification-r0drv-generic.c \
179 threadctxhooks-r0drv-generic.c \
180 RTMpIsCpuWorkPending-r0drv-generic.c
181
182.PATH: ${.CURDIR}/VBox
183SRCS += \
184 log-vbox.c
185
186.include <bsd.kmod.mk>
187
Note: See TracBrowser for help on using the repository browser.

© 2023 Oracle
ContactPrivacy policyTerms of Use