VirtualBox

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

Last change on this file since 36597 was 36408, checked in by vboxsync, 14 years ago

log rotation review and adjustments: Don't delete any excess files if log roation is disabled - we don't know what these files might be. Moved RTLOGGERFILE into log.c. Keep RTLogCreate simple, anyone needing rotation can use RTLogCreateEx[V]. Made RTLogGetDestinations produce the log rotation bits.

  • 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 36408 2011-03-24 16:25:47Z 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 RTStrCopyP.c \
88 strformat.c \
89 strformatrt.c \
90 strformattype.c \
91 strprintf.c \
92 strtonum.c \
93 memchr.c \
94 stringalloc.c
95
96.PATH: ${.CURDIR}/common/rand
97SRCS += \
98 rand.c \
99 randadv.c \
100 randparkmiller.c
101
102.PATH: ${.CURDIR}/common/path
103SRCS += \
104 RTPathStripFilename.c
105
106.PATH: ${.CURDIR}/common/checksum
107SRCS += \
108 crc32.c \
109 ipv4.c \
110 ipv6.c
111
112.PATH: ${.CURDIR}/common/table
113SRCS += \
114 avlpv.c
115
116.PATH: ${.CURDIR}/common/time
117SRCS += \
118 time.c
119
120.PATH: ${.CURDIR}/generic
121SRCS += \
122 uuid-generic.c \
123 RTAssertShouldPanic-generic.c \
124 RTLogWriteDebugger-generic.c \
125 RTLogWriteStdOut-stub-generic.c \
126 RTLogWriteStdErr-stub-generic.c \
127 RTLogWriteUser-generic.c \
128 RTMpGetArraySize-generic.c \
129 RTRandAdvCreateSystemFaster-generic.c \
130 RTRandAdvCreateSystemTruer-generic.c \
131 RTSemEventWait-2-ex-generic.c \
132 RTSemEventWaitNoResume-2-ex-generic.c \
133 RTSemEventMultiWait-2-ex-generic.c \
134 RTSemEventMultiWaitNoResume-2-ex-generic.c \
135 RTTimerCreate-generic.c \
136 mppresent-generic.c \
137 timer-generic.c
138
139.PATH: ${.CURDIR}/r0drv
140SRCS += \
141 alloc-r0drv.c \
142 initterm-r0drv.c \
143 memobj-r0drv.c \
144 powernotification-r0drv.c
145
146.PATH: ${.CURDIR}/r0drv/freebsd
147SRCS += \
148 assert-r0drv-freebsd.c \
149 alloc-r0drv-freebsd.c \
150 initterm-r0drv-freebsd.c \
151 memobj-r0drv-freebsd.c \
152 memuserkernel-r0drv-freebsd.c \
153 mp-r0drv-freebsd.c \
154 process-r0drv-freebsd.c \
155 semevent-r0drv-freebsd.c \
156 semeventmulti-r0drv-freebsd.c \
157 semfastmutex-r0drv-freebsd.c \
158 semmutex-r0drv-freebsd.c \
159 spinlock-r0drv-freebsd.c \
160 thread-r0drv-freebsd.c \
161 thread2-r0drv-freebsd.c \
162 time-r0drv-freebsd.c
163
164.PATH: ${.CURDIR}/r0drv/generic
165SRCS += \
166 semspinmutex-r0drv-generic.c \
167 mpnotification-r0drv-generic.c \
168 RTMpIsCpuWorkPending-r0drv-generic.c
169
170.PATH: ${.CURDIR}/VBox
171SRCS += \
172 log-vbox.c
173
174.include <bsd.kmod.mk>
175
Note: See TracBrowser for help on using the repository browser.

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