1 | # $Id: Makefile 36796 2011-04-21 15:45:31Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VirtualBox FreeBSD Host Driver.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | #
|
---|
8 | # Copyright (C) 2006-2007 Oracle Corporation
|
---|
9 | #
|
---|
10 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
11 | # available from http://www.virtualbox.org. This file is free software;
|
---|
12 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
13 | # General Public License (GPL) as published by the Free Software
|
---|
14 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
15 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
16 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
17 | #
|
---|
18 | # The contents of this file may alternatively be used under the terms
|
---|
19 | # of the Common Development and Distribution License Version 1.0
|
---|
20 | # (CDDL) only, as it comes in the "COPYING.CDDL" file of the
|
---|
21 | # VirtualBox OSE distribution, in which case the provisions of the
|
---|
22 | # CDDL are applicable instead of those of the GPL.
|
---|
23 | #
|
---|
24 | # You may elect to license modified versions of this file under the
|
---|
25 | # terms and conditions of either the GPL or the CDDL or both.
|
---|
26 | #
|
---|
27 |
|
---|
28 | KMOD = vboxdrv
|
---|
29 |
|
---|
30 | CFLAGS += -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -Iinclude -I. -Ir0drv -w -DVBOX_WITH_HARDENING -DVBOX_WITH_64_BITS_GUESTS
|
---|
31 |
|
---|
32 | .if (${MACHINE_ARCH} == "i386")
|
---|
33 | CFLAGS += -DRT_ARCH_X86
|
---|
34 | .elif (${MACHINE_ARCH} == "amd64")
|
---|
35 | CFLAGS += -DRT_ARCH_AMD64
|
---|
36 | .endif
|
---|
37 |
|
---|
38 | SRCS = \
|
---|
39 | SUPDrv.c \
|
---|
40 | SUPDrvSem.c \
|
---|
41 |
|
---|
42 | # Include needed interface headers so they are created during build
|
---|
43 | SRCS += \
|
---|
44 | device_if.h \
|
---|
45 | bus_if.h
|
---|
46 |
|
---|
47 | .PATH: ${.CURDIR}/freebsd
|
---|
48 | SRCS += \
|
---|
49 | SUPDrv-freebsd.c
|
---|
50 |
|
---|
51 | .PATH: ${.CURDIR}/alloc
|
---|
52 | SRCS += \
|
---|
53 | heapsimple.c \
|
---|
54 | alloc.c
|
---|
55 |
|
---|
56 | .PATH: ${.CURDIR}/common/err
|
---|
57 | SRCS += \
|
---|
58 | RTErrConvertFromErrno.c \
|
---|
59 | RTErrConvertToErrno.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 |
|
---|
70 | .PATH: ${.CURDIR}/common/misc
|
---|
71 | SRCS += \
|
---|
72 | RTAssertMsg1Weak.c \
|
---|
73 | RTAssertMsg2.c \
|
---|
74 | RTAssertMsg2Add.c \
|
---|
75 | RTAssertMsg2AddWeak.c \
|
---|
76 | RTAssertMsg2AddWeakV.c \
|
---|
77 | RTAssertMsg2Weak.c \
|
---|
78 | RTAssertMsg2WeakV.c \
|
---|
79 | assert.c \
|
---|
80 | handletable.c \
|
---|
81 | handletablectx.c \
|
---|
82 | once.c \
|
---|
83 | thread.c
|
---|
84 |
|
---|
85 | .PATH: ${.CURDIR}/common/string
|
---|
86 | SRCS += \
|
---|
87 | RTStrNCmp.c \
|
---|
88 | RTStrCopy.c \
|
---|
89 | RTStrCopyP.c \
|
---|
90 | strformat.c \
|
---|
91 | strformatrt.c \
|
---|
92 | strformattype.c \
|
---|
93 | strprintf.c \
|
---|
94 | strtonum.c \
|
---|
95 | memchr.c \
|
---|
96 | stringalloc.c
|
---|
97 |
|
---|
98 | .PATH: ${.CURDIR}/common/rand
|
---|
99 | SRCS += \
|
---|
100 | rand.c \
|
---|
101 | randadv.c \
|
---|
102 | randparkmiller.c
|
---|
103 |
|
---|
104 | .PATH: ${.CURDIR}/common/path
|
---|
105 | SRCS += \
|
---|
106 | RTPathStripFilename.c
|
---|
107 |
|
---|
108 | .PATH: ${.CURDIR}/common/checksum
|
---|
109 | SRCS += \
|
---|
110 | crc32.c \
|
---|
111 | ipv4.c \
|
---|
112 | ipv6.c
|
---|
113 |
|
---|
114 | .PATH: ${.CURDIR}/common/table
|
---|
115 | SRCS += \
|
---|
116 | avlpv.c
|
---|
117 |
|
---|
118 | .PATH: ${.CURDIR}/common/time
|
---|
119 | SRCS += \
|
---|
120 | time.c
|
---|
121 |
|
---|
122 | .PATH: ${.CURDIR}/generic
|
---|
123 | SRCS += \
|
---|
124 | uuid-generic.c \
|
---|
125 | RTAssertShouldPanic-generic.c \
|
---|
126 | RTLogWriteDebugger-generic.c \
|
---|
127 | RTLogWriteStdOut-stub-generic.c \
|
---|
128 | RTLogWriteStdErr-stub-generic.c \
|
---|
129 | RTLogWriteUser-generic.c \
|
---|
130 | RTMpGetArraySize-generic.c \
|
---|
131 | RTRandAdvCreateSystemFaster-generic.c \
|
---|
132 | RTRandAdvCreateSystemTruer-generic.c \
|
---|
133 | RTSemEventWait-2-ex-generic.c \
|
---|
134 | RTSemEventWaitNoResume-2-ex-generic.c \
|
---|
135 | RTSemEventMultiWait-2-ex-generic.c \
|
---|
136 | RTSemEventMultiWaitNoResume-2-ex-generic.c \
|
---|
137 | RTTimerCreate-generic.c \
|
---|
138 | mppresent-generic.c \
|
---|
139 | timer-generic.c
|
---|
140 |
|
---|
141 | .PATH: ${.CURDIR}/r0drv
|
---|
142 | SRCS += \
|
---|
143 | alloc-r0drv.c \
|
---|
144 | initterm-r0drv.c \
|
---|
145 | memobj-r0drv.c \
|
---|
146 | powernotification-r0drv.c
|
---|
147 |
|
---|
148 | .PATH: ${.CURDIR}/r0drv/freebsd
|
---|
149 | SRCS += \
|
---|
150 | assert-r0drv-freebsd.c \
|
---|
151 | alloc-r0drv-freebsd.c \
|
---|
152 | initterm-r0drv-freebsd.c \
|
---|
153 | memobj-r0drv-freebsd.c \
|
---|
154 | memuserkernel-r0drv-freebsd.c \
|
---|
155 | mp-r0drv-freebsd.c \
|
---|
156 | process-r0drv-freebsd.c \
|
---|
157 | semevent-r0drv-freebsd.c \
|
---|
158 | semeventmulti-r0drv-freebsd.c \
|
---|
159 | semfastmutex-r0drv-freebsd.c \
|
---|
160 | semmutex-r0drv-freebsd.c \
|
---|
161 | spinlock-r0drv-freebsd.c \
|
---|
162 | thread-r0drv-freebsd.c \
|
---|
163 | thread2-r0drv-freebsd.c \
|
---|
164 | time-r0drv-freebsd.c
|
---|
165 |
|
---|
166 | .PATH: ${.CURDIR}/r0drv/generic
|
---|
167 | SRCS += \
|
---|
168 | semspinmutex-r0drv-generic.c \
|
---|
169 | mpnotification-r0drv-generic.c \
|
---|
170 | RTMpIsCpuWorkPending-r0drv-generic.c
|
---|
171 |
|
---|
172 | .PATH: ${.CURDIR}/VBox
|
---|
173 | SRCS += \
|
---|
174 | log-vbox.c
|
---|
175 |
|
---|
176 | .include <bsd.kmod.mk>
|
---|
177 |
|
---|