Makefile revision 058e9c6d97c5306126f83d934148c658804f1d6c
2234N/A# $Id$
2234N/A## @file
2234N/A# VirtualBox Guest Additions Module Makefile.
2234N/A#
2234N/A
2234N/A#
2234N/A# Copyright (C) 2006-2009 Oracle Corporation
2234N/A#
2234N/A# This file is part of VirtualBox Open Source Edition (OSE), as
2234N/A# available from http://www.virtualbox.org. This file is free software;
2234N/A# you can redistribute it and/or modify it under the terms of the GNU
2234N/A# General Public License (GPL) as published by the Free Software
2234N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
2234N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
2234N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
2234N/A#
2234N/AKMOD = vboxguest
2234N/A
2234N/ACFLAGS += -DRT_OS_FREEBSD -DIN_RING0 -DIN_RT_R0 -DIN_SUP_R0 -DVBOX -DRT_WITH_VBOX -Iinclude -I. -Ir0drv -w -DVBGL_VBOXGUEST -DVBOX_WITH_HGCM -DVBOX_WITH_64_BITS_GUESTS
2234N/A
2234N/A.if (${MACHINE_ARCH} == "i386")
2234N/A CFLAGS += -DRT_ARCH_X86
2234N/A.elif (${MACHINE_ARCH} == "amd64")
2234N/A CFLAGS += -DRT_ARCH_AMD64
2234N/A.endif
2234N/A
2234N/ASRCS = \
2234N/A VBoxGuest.c \
2234N/A VBoxGuest2.c \
2234N/A VBoxGuest-freebsd.c \
2234N/A GenericRequest.c \
2234N/A HGCMInternal.c \
2234N/A Init.c \
2234N/A PhysHeap.c \
2234N/A SysHlp.c \
2234N/A VMMDev.c
2234N/A
2234N/A# Include needed interface headers so they are created during build
2234N/ASRCS += \
2234N/A device_if.h \
2234N/A bus_if.h \
2234N/A pci_if.h \
2234N/A
2234N/A.PATH: ${.CURDIR}/alloc
2234N/ASRCS += \
2234N/A heapsimple.c
2234N/A
2234N/A.PATH: ${.CURDIR}/common/err
2234N/ASRCS += \
2234N/A RTErrConvertFromErrno.c \
2234N/A RTErrConvertToErrno.c
2234N/A
2234N/A.PATH: ${.CURDIR}/common/log
SRCS += \
log.c \
logellipsis.c \
logrel.c \
logrelellipsis.c \
logcom.c \
logformat.c
.PATH: ${.CURDIR}/common/misc
SRCS += \
RTAssertMsg1Weak.c \
RTAssertMsg2.c \
RTAssertMsg2Add.c \
RTAssertMsg2AddWeak.c \
RTAssertMsg2AddWeakV.c \
RTAssertMsg2Weak.c \
RTAssertMsg2WeakV.c \
assert.c \
handletable.c \
handletablectx.c \
once.c \
thread.c
.PATH: ${.CURDIR}/common/string
SRCS += \
RTStrCopy.c \
strformat.c \
strformatrt.c \
strformattype.c \
strprintf.c \
strtonum.c \
memchr.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 \
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 \
logbackdoor.c
.include <bsd.kmod.mk>