VirtualBox

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

Last change on this file since 36344 was 36254, checked in by vboxsync, 14 years ago

GIP,++: Lots of CPUs (disabled).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.8 KB
Line 
1# $Id: Makefile 36254 2011-03-10 17:22:08Z 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
28KMOD = vboxdrv
29
30CFLAGS += -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
38SRCS = \
39 SUPDrv.c \
40 SUPDrvSem.c \
41
42# Include needed interface headers so they are created during build
43SRCS += \
44 device_if.h \
45 bus_if.h
46
47.PATH: ${.CURDIR}/freebsd
48SRCS += \
49 SUPDrv-freebsd.c
50
51.PATH: ${.CURDIR}/alloc
52SRCS += \
53 heapsimple.c \
54 alloc.c
55
56.PATH: ${.CURDIR}/common/err
57SRCS += \
58 RTErrConvertFromErrno.c \
59 RTErrConvertToErrno.c
60
61.PATH: ${.CURDIR}/common/log
62SRCS += \
63 log.c \
64 logellipsis.c \
65 logrel.c \
66 logrelellipsis.c \
67 logcom.c \
68 logformat.c
69
70.PATH: ${.CURDIR}/common/misc
71SRCS += \
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
86SRCS += \
87 strformat.c \
88 strformatrt.c \
89 strformattype.c \
90 strprintf.c \
91 strtonum.c \
92 memchr.c \
93 stringalloc.c
94
95.PATH: ${.CURDIR}/common/rand
96SRCS += \
97 rand.c \
98 randadv.c \
99 randparkmiller.c
100
101.PATH: ${.CURDIR}/common/path
102SRCS += \
103 RTPathStripFilename.c
104
105.PATH: ${.CURDIR}/common/checksum
106SRCS += \
107 crc32.c \
108 ipv4.c \
109 ipv6.c
110
111.PATH: ${.CURDIR}/common/table
112SRCS += \
113 avlpv.c
114
115.PATH: ${.CURDIR}/common/time
116SRCS += \
117 time.c
118
119.PATH: ${.CURDIR}/generic
120SRCS += \
121 uuid-generic.c \
122 RTAssertShouldPanic-generic.c \
123 RTLogWriteDebugger-generic.c \
124 RTLogWriteStdOut-stub-generic.c \
125 RTLogWriteStdErr-stub-generic.c \
126 RTLogWriteUser-generic.c \
127 RTMpGetArraySize-generic.c \
128 RTRandAdvCreateSystemFaster-generic.c \
129 RTRandAdvCreateSystemTruer-generic.c \
130 RTSemEventWait-2-ex-generic.c \
131 RTSemEventWaitNoResume-2-ex-generic.c \
132 RTSemEventMultiWait-2-ex-generic.c \
133 RTSemEventMultiWaitNoResume-2-ex-generic.c \
134 RTTimerCreate-generic.c \
135 mppresent-generic.c \
136 timer-generic.c
137
138.PATH: ${.CURDIR}/r0drv
139SRCS += \
140 alloc-r0drv.c \
141 initterm-r0drv.c \
142 memobj-r0drv.c \
143 powernotification-r0drv.c
144
145.PATH: ${.CURDIR}/r0drv/freebsd
146SRCS += \
147 assert-r0drv-freebsd.c \
148 alloc-r0drv-freebsd.c \
149 initterm-r0drv-freebsd.c \
150 memobj-r0drv-freebsd.c \
151 memuserkernel-r0drv-freebsd.c \
152 mp-r0drv-freebsd.c \
153 process-r0drv-freebsd.c \
154 semevent-r0drv-freebsd.c \
155 semeventmulti-r0drv-freebsd.c \
156 semfastmutex-r0drv-freebsd.c \
157 semmutex-r0drv-freebsd.c \
158 spinlock-r0drv-freebsd.c \
159 thread-r0drv-freebsd.c \
160 thread2-r0drv-freebsd.c \
161 time-r0drv-freebsd.c
162
163.PATH: ${.CURDIR}/r0drv/generic
164SRCS += \
165 semspinmutex-r0drv-generic.c \
166 mpnotification-r0drv-generic.c \
167 RTMpIsCpuWorkPending-r0drv-generic.c
168
169.PATH: ${.CURDIR}/VBox
170SRCS += \
171 log-vbox.c
172
173.include <bsd.kmod.mk>
174
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