Makefile revision a4b6bc5445b0e3d9bda9db76ac953b2542fd0a28
148N/A# $Id$
148N/A## @file
148N/A# Makefile for the VirtualBox FreeBSD Host Driver.
148N/A#
148N/A
148N/A#
148N/A#
148N/A# Copyright (C) 2006-2007 Oracle Corporation
148N/A#
148N/A# This file is part of VirtualBox Open Source Edition (OSE), as
148N/A# available from http://www.virtualbox.org. This file is free software;
148N/A# you can redistribute it and/or modify it under the terms of the GNU
148N/A# General Public License (GPL) as published by the Free Software
148N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
148N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
148N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
148N/A#
148N/A# The contents of this file may alternatively be used under the terms
148N/A# of the Common Development and Distribution License Version 1.0
148N/A# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
148N/A# VirtualBox OSE distribution, in which case the provisions of the
148N/A# CDDL are applicable instead of those of the GPL.
148N/A#
148N/A# You may elect to license modified versions of this file under the
148N/A# terms and conditions of either the GPL or the CDDL or both.
148N/A#
148N/A
148N/AKMOD = vboxdrv
148N/A
148N/ACFLAGS += -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
148N/A
148N/A.if (${MACHINE_ARCH} == "i386")
148N/A CFLAGS += -DRT_ARCH_X86
148N/A.elif (${MACHINE_ARCH} == "amd64")
148N/A CFLAGS += -DRT_ARCH_AMD64
148N/A.endif
148N/A
148N/ASRCS = \
148N/A SUPDrv.c \
148N/A SUPDrvSem.c \
148N/A
148N/A# Include needed interface headers so they are created during build
148N/ASRCS += \
148N/A device_if.h \
148N/A bus_if.h
148N/A
148N/A.PATH: ${.CURDIR}/freebsd
148N/ASRCS += \
148N/A SUPDrv-freebsd.c
148N/A
148N/A.PATH: ${.CURDIR}/alloc
148N/ASRCS += \
148N/A heapsimple.c \
148N/A alloc.c
148N/A
148N/A.PATH: ${.CURDIR}/common/err
148N/ASRCS += \
148N/A RTErrConvertFromErrno.c \
148N/A RTErrConvertToErrno.c
148N/A
148N/A.PATH: ${.CURDIR}/common/log
148N/ASRCS += \
148N/A log.c \
148N/A logellipsis.c \
148N/A logrel.c \
148N/A logrelellipsis.c \
148N/A logcom.c \
148N/A logformat.c
148N/A
148N/A.PATH: ${.CURDIR}/common/misc
148N/ASRCS += \
148N/A RTAssertMsg1Weak.c \
148N/A RTAssertMsg2.c \
148N/A RTAssertMsg2Add.c \
148N/A RTAssertMsg2AddWeak.c \
148N/A RTAssertMsg2AddWeakV.c \
148N/A RTAssertMsg2Weak.c \
148N/A RTAssertMsg2WeakV.c \
148N/A assert.c \
148N/A handletable.c \
148N/A handletablectx.c \
148N/A once.c \
148N/A thread.c
148N/A
148N/A.PATH: ${.CURDIR}/common/string
148N/ASRCS += \
148N/A strformat.c \
148N/A strformatrt.c \
148N/A strformattype.c \
148N/A strprintf.c \
148N/A strtonum.c \
memchr.c \
stringalloc.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 \
ipv6.c
.PATH: ${.CURDIR}/common/table
SRCS += \
avlpv.c
.PATH: ${.CURDIR}/common/time
SRCS += \
time.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 \
semmutex-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
.include <bsd.kmod.mk>