1 | # $Id: Makefile 37233 2011-05-27 13:31:57Z 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 | errvars-generic.c \
|
---|
139 | mppresent-generic.c \
|
---|
140 | timer-generic.c
|
---|
141 |
|
---|
142 | .PATH: ${.CURDIR}/r0drv
|
---|
143 | SRCS += \
|
---|
144 | alloc-r0drv.c \
|
---|
145 | initterm-r0drv.c \
|
---|
146 | memobj-r0drv.c \
|
---|
147 | powernotification-r0drv.c
|
---|
148 |
|
---|
149 | .PATH: ${.CURDIR}/r0drv/freebsd
|
---|
150 | SRCS += \
|
---|
151 | assert-r0drv-freebsd.c \
|
---|
152 | alloc-r0drv-freebsd.c \
|
---|
153 | initterm-r0drv-freebsd.c \
|
---|
154 | memobj-r0drv-freebsd.c \
|
---|
155 | memuserkernel-r0drv-freebsd.c \
|
---|
156 | mp-r0drv-freebsd.c \
|
---|
157 | process-r0drv-freebsd.c \
|
---|
158 | semevent-r0drv-freebsd.c \
|
---|
159 | semeventmulti-r0drv-freebsd.c \
|
---|
160 | semfastmutex-r0drv-freebsd.c \
|
---|
161 | semmutex-r0drv-freebsd.c \
|
---|
162 | spinlock-r0drv-freebsd.c \
|
---|
163 | thread-r0drv-freebsd.c \
|
---|
164 | thread2-r0drv-freebsd.c \
|
---|
165 | time-r0drv-freebsd.c
|
---|
166 |
|
---|
167 | .PATH: ${.CURDIR}/r0drv/generic
|
---|
168 | SRCS += \
|
---|
169 | semspinmutex-r0drv-generic.c \
|
---|
170 | mpnotification-r0drv-generic.c \
|
---|
171 | RTMpIsCpuWorkPending-r0drv-generic.c
|
---|
172 |
|
---|
173 | .PATH: ${.CURDIR}/VBox
|
---|
174 | SRCS += \
|
---|
175 | log-vbox.c
|
---|
176 |
|
---|
177 | .include <bsd.kmod.mk>
|
---|
178 |
|
---|