VirtualBox

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

Last change on this file since 26336 was 26180, checked in by vboxsync, 15 years ago

*: The rest of the %V* format specifiers are history.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.7 KB
Line 
1# $Id: Makefile 26180 2010-02-02 22:52:04Z vboxsync $
2## @file
3# Makefile for the VirtualBox FreeBSD Host Driver.
4#
5
6#
7#
8# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
28# Clara, CA 95054 USA or visit http://www.sun.com if you need
29# additional information or have any questions.
30#
31
32KMOD = vboxdrv
33
34CFLAGS += -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
35
36.if (${MACHINE_ARCH} == "i386")
37 CFLAGS += -DRT_ARCH_X86
38.elif (${MACHINE_ARCH} == "amd64")
39 CFLAGS += -DRT_ARCH_AMD64
40.endif
41
42SRCS = \
43 SUPDrv.c \
44 SUPDrvSem.c \
45
46# Include needed interface headers so they are created during build
47SRCS += \
48 device_if.h \
49 bus_if.h
50
51.PATH: ${.CURDIR}/freebsd
52SRCS += \
53 SUPDrv-freebsd.c
54
55.PATH: ${.CURDIR}/alloc
56SRCS += \
57 heapsimple.c
58
59.PATH: ${.CURDIR}/common/err
60SRCS += \
61 RTErrConvertFromErrno.c \
62 RTErrConvertToErrno.c
63
64.PATH: ${.CURDIR}/common/log
65SRCS += \
66 log.c \
67 logellipsis.c \
68 logrel.c \
69 logrelellipsis.c \
70 logcom.c \
71 logformat.c
72
73.PATH: ${.CURDIR}/common/misc
74SRCS += \
75 RTAssertMsg1Weak.c \
76 RTAssertMsg2.c \
77 RTAssertMsg2Add.c \
78 RTAssertMsg2AddWeak.c \
79 RTAssertMsg2AddWeakV.c \
80 RTAssertMsg2Weak.c \
81 RTAssertMsg2WeakV.c \
82 assert.c \
83 handletable.c \
84 handletablectx.c \
85 once.c \
86 thread.c
87
88.PATH: ${.CURDIR}/common/string
89SRCS += \
90 strformat.c \
91 strformatrt.c \
92 strformattype.c \
93 strprintf.c \
94 strtonum.c \
95 memchr.c \
96 string.c
97
98.PATH: ${.CURDIR}/common/rand
99SRCS += \
100 rand.c \
101 randadv.c \
102 randparkmiller.c
103
104.PATH: ${.CURDIR}/common/path
105SRCS += \
106 RTPathStripFilename.c
107
108.PATH: ${.CURDIR}/common/checksum
109SRCS += \
110 crc32.c \
111 ipv4.c
112
113.PATH: ${.CURDIR}/common/table
114SRCS += \
115 avlpv.c
116
117.PATH: ${.CURDIR}/generic
118SRCS += \
119 uuid-generic.c \
120 RTAssertShouldPanic-generic.c \
121 RTLogWriteDebugger-generic.c \
122 RTLogWriteStdOut-stub-generic.c \
123 RTLogWriteStdErr-stub-generic.c \
124 RTLogWriteUser-generic.c \
125 RTRandAdvCreateSystemFaster-generic.c \
126 RTRandAdvCreateSystemTruer-generic.c \
127 RTTimerCreate-generic.c \
128 timer-generic.c \
129 mppresent-generic.c
130
131.PATH: ${.CURDIR}/r0drv
132SRCS += \
133 alloc-r0drv.c \
134 initterm-r0drv.c \
135 memobj-r0drv.c \
136 powernotification-r0drv.c
137
138.PATH: ${.CURDIR}/r0drv/freebsd
139SRCS += \
140 assert-r0drv-freebsd.c \
141 alloc-r0drv-freebsd.c \
142 initterm-r0drv-freebsd.c \
143 memobj-r0drv-freebsd.c \
144 memuserkernel-r0drv-freebsd.c \
145 mp-r0drv-freebsd.c \
146 process-r0drv-freebsd.c \
147 semevent-r0drv-freebsd.c \
148 semeventmulti-r0drv-freebsd.c \
149 semfastmutex-r0drv-freebsd.c \
150 spinlock-r0drv-freebsd.c \
151 thread-r0drv-freebsd.c \
152 thread2-r0drv-freebsd.c \
153 time-r0drv-freebsd.c
154
155.PATH: ${.CURDIR}/r0drv/generic
156SRCS += \
157 semspinmutex-r0drv-generic.c \
158 mpnotification-r0drv-generic.c \
159 RTMpIsCpuWorkPending-r0drv-generic.c
160
161.PATH: ${.CURDIR}/VBox
162SRCS += \
163 log-vbox.c
164
165.include <bsd.kmod.mk>
166
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette