Makefile revision ff1e21edf9a07974cb38c8f8ad7e8212b1335551
df8bdeb362277e8d95a74d6c097341fe97409948johnz# $Id$
df8bdeb362277e8d95a74d6c097341fe97409948johnz## @file
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Makefile for the VirtualBox FreeBSD Host Driver.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Copyright (C) 2006-2007 Sun Microsystems, Inc.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# This file is part of VirtualBox Open Source Edition (OSE), as
df8bdeb362277e8d95a74d6c097341fe97409948johnz# available from http://www.virtualbox.org. This file is free software;
df8bdeb362277e8d95a74d6c097341fe97409948johnz# you can redistribute it and/or modify it under the terms of the GNU
df8bdeb362277e8d95a74d6c097341fe97409948johnz# General Public License (GPL) as published by the Free Software
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Foundation, in version 2 as it comes in the "COPYING" file of the
df8bdeb362277e8d95a74d6c097341fe97409948johnz# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
df8bdeb362277e8d95a74d6c097341fe97409948johnz# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# The contents of this file may alternatively be used under the terms
df8bdeb362277e8d95a74d6c097341fe97409948johnz# of the Common Development and Distribution License Version 1.0
df8bdeb362277e8d95a74d6c097341fe97409948johnz# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
df8bdeb362277e8d95a74d6c097341fe97409948johnz# VirtualBox OSE distribution, in which case the provisions of the
df8bdeb362277e8d95a74d6c097341fe97409948johnz# CDDL are applicable instead of those of the GPL.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# You may elect to license modified versions of this file under the
df8bdeb362277e8d95a74d6c097341fe97409948johnz# terms and conditions of either the GPL or the CDDL or both.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
df8bdeb362277e8d95a74d6c097341fe97409948johnz# Clara, CA 95054 USA or visit http://www.sun.com if you need
df8bdeb362277e8d95a74d6c097341fe97409948johnz# additional information or have any questions.
df8bdeb362277e8d95a74d6c097341fe97409948johnz#
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzKMOD = vboxdrv
df8bdeb362277e8d95a74d6c097341fe97409948johnz
df8bdeb362277e8d95a74d6c097341fe97409948johnzCFLAGS += -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
df8bdeb362277e8d95a74d6c097341fe97409948johnz
.if (${MACHINE_ARCH} == "i386")
CFLAGS += -DRT_ARCH_X86
.elif (${MACHINE_ARCH} == "amd64")
CFLAGS += -DRT_ARCH_AMD64
.endif
SRCS = \
SUPDrv.c \
SUPDrvAgnostic.c \
# Include needed interface headers so they are created during build
SRCS += \
device_if.h \
bus_if.h
.PATH: ${.CURDIR}/freebsd
SRCS += \
SUPDrv-freebsd.c
.PATH: ${.CURDIR}/alloc
SRCS += \
heapsimple.c
.PATH: ${.CURDIR}/common/err
SRCS += \
RTErrConvertFromErrno.c \
RTErrConvertToErrno.c
.PATH: ${.CURDIR}/common/log
SRCS += \
log.c \
logellipsis.c \
logrel.c \
logrelellipsis.c \
logcom.c \
logformat.c
.PATH: ${.CURDIR}/common/misc
SRCS += \
handletable.c \
handletablectx.c \
once.c \
thread.c
.PATH: ${.CURDIR}/common/string
SRCS += \
strformat.c \
strformatrt.c \
strformattype.c \
strprintf.c \
strtonum.c \
memchr.c \
string.c
.PATH: ${.CURDIR}/common/rand
SRCS += \
rand.c \
randadv.c \
randparkmiller.c
.PATH: ${.CURDIR}/common/path
SRCS += \
RTPathStripFilename.c
.PATH: ${.CURDIR}/common/checksum
SRCS += \
crc32.c \
ipv4.c
.PATH: ${.CURDIR}/common/table
SRCS += \
avlpv.c
.PATH: ${.CURDIR}/generic
SRCS += \
uuid-generic.c \
RTAssertShouldPanic-generic.c \
RTLogWriteDebugger-generic.c \
RTLogWriteStdOut-stub-generic.c \
RTLogWriteStdErr-stub-generic.c \
RTLogWriteUser-generic.c \
RTRandAdvCreateSystemFaster-generic.c \
RTRandAdvCreateSystemTruer-generic.c \
RTTimerCreate-generic.c \
timer-generic.c \
mppresent-generic.c
.PATH: ${.CURDIR}/r0drv
SRCS += \
alloc-r0drv.c \
initterm-r0drv.c \
memobj-r0drv.c \
powernotification-r0drv.c
.PATH: ${.CURDIR}/r0drv/freebsd
SRCS += \
assert-r0drv-freebsd.c \
alloc-r0drv-freebsd.c \
initterm-r0drv-freebsd.c \
memobj-r0drv-freebsd.c \
memuserkernel-r0drv-freebsd.c \
mp-r0drv-freebsd.c \
process-r0drv-freebsd.c \
semevent-r0drv-freebsd.c \
semeventmulti-r0drv-freebsd.c \
semfastmutex-r0drv-freebsd.c \
spinlock-r0drv-freebsd.c \
thread-r0drv-freebsd.c \
thread2-r0drv-freebsd.c \
time-r0drv-freebsd.c
.PATH: ${.CURDIR}/r0drv/generic
SRCS += \
semspinmutex-r0drv-generic.c \
mpnotification-r0drv-generic.c \
RTMpIsCpuWorkPending-r0drv-generic.c
.PATH: ${.CURDIR}/VBox
SRCS += \
log-vbox.c \
strformat-vbox.c
.include <bsd.kmod.mk>