VirtualBox

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

Last change on this file since 42062 was 40917, checked in by vboxsync, 13 years ago

FreeBSD: Fix building the kernel module

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1# $Id: Makefile 40917 2012-04-14 08:06:16Z vboxsync $
2## @file
3# Makefile for the VirtualBox FreeBSD Host Driver.
4#
5
6#
7#
8# Copyright (C) 2006-2012 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 SUPDrvTracer.c \
42
43# Include needed interface headers so they are created during build
44SRCS += \
45 device_if.h \
46 bus_if.h
47
48.PATH: ${.CURDIR}/freebsd
49SRCS += \
50 SUPDrv-freebsd.c
51
52.PATH: ${.CURDIR}/alloc
53SRCS += \
54 heapsimple.c \
55 alloc.c
56
57.PATH: ${.CURDIR}/common/err
58SRCS += \
59 RTErrConvertFromErrno.c \
60 RTErrConvertToErrno.c
61
62.PATH: ${.CURDIR}/common/log
63SRCS += \
64 log.c \
65 logellipsis.c \
66 logrel.c \
67 logrelellipsis.c \
68 logcom.c \
69 logformat.c
70
71.PATH: ${.CURDIR}/common/misc
72SRCS += \
73 RTAssertMsg1Weak.c \
74 RTAssertMsg2.c \
75 RTAssertMsg2Add.c \
76 RTAssertMsg2AddWeak.c \
77 RTAssertMsg2AddWeakV.c \
78 RTAssertMsg2Weak.c \
79 RTAssertMsg2WeakV.c \
80 assert.c \
81 handletable.c \
82 handletablectx.c \
83 once.c \
84 thread.c
85
86.PATH: ${.CURDIR}/common/string
87SRCS += \
88 RTStrNCmp.c \
89 RTStrCopy.c \
90 RTStrCopyP.c \
91 strformat.c \
92 strformatrt.c \
93 strformattype.c \
94 strprintf.c \
95 strtonum.c \
96 memchr.c \
97 stringalloc.c
98
99.PATH: ${.CURDIR}/common/rand
100SRCS += \
101 rand.c \
102 randadv.c \
103 randparkmiller.c
104
105.PATH: ${.CURDIR}/common/path
106SRCS += \
107 RTPathStripFilename.c
108
109.PATH: ${.CURDIR}/common/checksum
110SRCS += \
111 crc32.c \
112 ipv4.c \
113 ipv6.c
114
115.PATH: ${.CURDIR}/common/table
116SRCS += \
117 avlpv.c
118
119.PATH: ${.CURDIR}/common/time
120SRCS += \
121 time.c
122
123.PATH: ${.CURDIR}/generic
124SRCS += \
125 uuid-generic.c \
126 RTAssertShouldPanic-generic.c \
127 RTLogWriteDebugger-generic.c \
128 RTLogWriteStdOut-stub-generic.c \
129 RTLogWriteStdErr-stub-generic.c \
130 RTLogWriteUser-generic.c \
131 RTMpGetArraySize-generic.c \
132 RTRandAdvCreateSystemFaster-generic.c \
133 RTRandAdvCreateSystemTruer-generic.c \
134 RTSemEventWait-2-ex-generic.c \
135 RTSemEventWaitNoResume-2-ex-generic.c \
136 RTSemEventMultiWait-2-ex-generic.c \
137 RTSemEventMultiWaitNoResume-2-ex-generic.c \
138 RTTimerCreate-generic.c \
139 errvars-generic.c \
140 mppresent-generic.c \
141 timer-generic.c
142
143.PATH: ${.CURDIR}/r0drv
144SRCS += \
145 alloc-r0drv.c \
146 initterm-r0drv.c \
147 memobj-r0drv.c \
148 powernotification-r0drv.c
149
150.PATH: ${.CURDIR}/r0drv/freebsd
151SRCS += \
152 assert-r0drv-freebsd.c \
153 alloc-r0drv-freebsd.c \
154 initterm-r0drv-freebsd.c \
155 memobj-r0drv-freebsd.c \
156 memuserkernel-r0drv-freebsd.c \
157 mp-r0drv-freebsd.c \
158 process-r0drv-freebsd.c \
159 semevent-r0drv-freebsd.c \
160 semeventmulti-r0drv-freebsd.c \
161 semfastmutex-r0drv-freebsd.c \
162 semmutex-r0drv-freebsd.c \
163 spinlock-r0drv-freebsd.c \
164 thread-r0drv-freebsd.c \
165 thread2-r0drv-freebsd.c \
166 time-r0drv-freebsd.c
167
168.PATH: ${.CURDIR}/r0drv/generic
169SRCS += \
170 semspinmutex-r0drv-generic.c \
171 mpnotification-r0drv-generic.c \
172 RTMpIsCpuWorkPending-r0drv-generic.c
173
174.PATH: ${.CURDIR}/VBox
175SRCS += \
176 log-vbox.c
177
178.include <bsd.kmod.mk>
179
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