Makefile revision 71260b693f7947f10b16e8822c362b66ff6864d4
235N/A# $Id$
235N/A## @file
822N/A# Makefile for the VirtualBox FreeBSD Host Driver.
822N/A#
822N/A
235N/A#
935N/A#
235N/A# Copyright (C) 2006-2007 Oracle Corporation
235N/A#
919N/A# This file is part of VirtualBox Open Source Edition (OSE), as
919N/A# available from http://www.virtualbox.org. This file is free software;
919N/A# you can redistribute it and/or modify it under the terms of the GNU
919N/A# General Public License (GPL) as published by the Free Software
919N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
919N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
919N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
919N/A#
919N/A# The contents of this file may alternatively be used under the terms
919N/A# of the Common Development and Distribution License Version 1.0
919N/A# (CDDL) only, as it comes in the "COPYING.CDDL" file of the
919N/A# VirtualBox OSE distribution, in which case the provisions of the
919N/A# CDDL are applicable instead of those of the GPL.
919N/A#
919N/A# You may elect to license modified versions of this file under the
919N/A# terms and conditions of either the GPL or the CDDL or both.
919N/A#
235N/A
235N/AKMOD = vboxdrv
235N/A
235N/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
822N/A
235N/A.if (${MACHINE_ARCH} == "i386")
970N/A CFLAGS += -DRT_ARCH_X86
970N/A.elif (${MACHINE_ARCH} == "amd64")
970N/A CFLAGS += -DRT_ARCH_AMD64
970N/A.endif
970N/A
970N/ASRCS = \
970N/A SUPDrv.c \
970N/A SUPDrvSem.c \
235N/A
822N/A# Include needed interface headers so they are created during build
235N/ASRCS += \
911N/A device_if.h \
911N/A bus_if.h
911N/A
911N/A.PATH: ${.CURDIR}/freebsd
235N/ASRCS += \
493N/A SUPDrv-freebsd.c
493N/A
235N/A.PATH: ${.CURDIR}/alloc
235N/ASRCS += \
235N/A heapsimple.c \
235N/A alloc.c
822N/A
235N/A.PATH: ${.CURDIR}/common/err
235N/ASRCS += \
822N/A RTErrConvertFromErrno.c \
235N/A RTErrConvertToErrno.c
235N/A
235N/A.PATH: ${.CURDIR}/common/log
235N/ASRCS += \
235N/A log.c \
851N/A logellipsis.c \
851N/A logrel.c \
851N/A logrelellipsis.c \
851N/A logcom.c \
822N/A logformat.c
851N/A
851N/A.PATH: ${.CURDIR}/common/misc
822N/ASRCS += \
822N/A RTAssertMsg1Weak.c \
822N/A RTAssertMsg2.c \
865N/A RTAssertMsg2Add.c \
949N/A RTAssertMsg2AddWeak.c \
949N/A RTAssertMsg2AddWeakV.c \
235N/A RTAssertMsg2Weak.c \
970N/A RTAssertMsg2WeakV.c \
970N/A assert.c \
970N/A handletable.c \
970N/A handletablectx.c \
970N/A once.c \
970N/A thread.c
970N/A
947N/A.PATH: ${.CURDIR}/common/string
235N/ASRCS += \
247N/A strformat.c \
947N/A strformatrt.c \
235N/A strformattype.c \
247N/A strprintf.c \
947N/A strtonum.c \
947N/A memchr.c \
970N/A stringalloc.c
970N/A
947N/A.PATH: ${.CURDIR}/common/rand
947N/ASRCS += \
947N/A rand.c \
947N/A randadv.c \
947N/A randparkmiller.c
947N/A
235N/A.PATH: ${.CURDIR}/common/path
241N/ASRCS += \
493N/A RTPathStripFilename.c
493N/A
235N/A.PATH: ${.CURDIR}/common/checksum
493N/ASRCS += \
493N/A crc32.c \
963N/A ipv4.c \
963N/A ipv6.c
493N/A
493N/A.PATH: ${.CURDIR}/common/table
822N/ASRCS += \
822N/A avlpv.c
822N/A
493N/A.PATH: ${.CURDIR}/common/time
822N/ASRCS += \
822N/A time.c
822N/A
493N/A.PATH: ${.CURDIR}/generic
235N/ASRCS += \
916N/A uuid-generic.c \
916N/A RTAssertShouldPanic-generic.c \
916N/A RTLogWriteDebugger-generic.c \
916N/A RTLogWriteStdOut-stub-generic.c \
916N/A RTLogWriteStdErr-stub-generic.c \
916N/A RTLogWriteUser-generic.c \
916N/A RTMpGetArraySize-generic.c \
916N/A RTRandAdvCreateSystemFaster-generic.c \
963N/A RTRandAdvCreateSystemTruer-generic.c \
963N/A RTSemEventWait-2-ex-generic.c \
963N/A RTSemEventWaitNoResume-2-ex-generic.c \
963N/A RTSemEventMultiWait-2-ex-generic.c \
970N/A RTSemEventMultiWaitNoResume-2-ex-generic.c \
970N/A RTTimerCreate-generic.c \
970N/A timer-generic.c \
822N/A mppresent-generic.c
235N/A
235N/A.PATH: ${.CURDIR}/r0drv
822N/ASRCS += \
822N/A alloc-r0drv.c \
963N/A initterm-r0drv.c \
963N/A memobj-r0drv.c \
935N/A powernotification-r0drv.c
935N/A
935N/A.PATH: ${.CURDIR}/r0drv/freebsd
935N/ASRCS += \
935N/A assert-r0drv-freebsd.c \
935N/A alloc-r0drv-freebsd.c \
235N/A initterm-r0drv-freebsd.c \
935N/A memobj-r0drv-freebsd.c \
963N/A memuserkernel-r0drv-freebsd.c \
963N/A mp-r0drv-freebsd.c \
935N/A process-r0drv-freebsd.c \
963N/A semevent-r0drv-freebsd.c \
935N/A semeventmulti-r0drv-freebsd.c \
963N/A semfastmutex-r0drv-freebsd.c \
963N/A semmutex-r0drv-freebsd.c \
963N/A spinlock-r0drv-freebsd.c \
235N/A thread-r0drv-freebsd.c \
963N/A thread2-r0drv-freebsd.c \
235N/A time-r0drv-freebsd.c
935N/A
935N/A.PATH: ${.CURDIR}/r0drv/generic
963N/ASRCS += \
963N/A semspinmutex-r0drv-generic.c \
935N/A mpnotification-r0drv-generic.c \
963N/A RTMpIsCpuWorkPending-r0drv-generic.c
963N/A
963N/A.PATH: ${.CURDIR}/VBox
235N/ASRCS += \
493N/A log-vbox.c
493N/A
493N/A.include <bsd.kmod.mk>
851N/A
235N/A