Makefile revision 41a839133aad7c96a0d55d927dc3475d0cbe9c22
11990N/A# $Id$
2920N/A## @file
11990N/A# VirtualBox Guest Additions Module Makefile.
11990N/A#
11990N/A
2920N/A#
2920N/A# Copyright (C) 2006-2009 Sun Microsystems, Inc.
2920N/A#
11990N/A# This file is part of VirtualBox Open Source Edition (OSE), as
11990N/A# available from http://www.virtualbox.org. This file is free software;
11990N/A# you can redistribute it and/or modify it under the terms of the GNU
11990N/A# General Public License (GPL) as published by the Free Software
11990N/A# Foundation, in version 2 as it comes in the "COPYING" file of the
11990N/A# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
11990N/A# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
11990N/A#
11990N/A# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
11990N/A# Clara, CA 95054 USA or visit http://www.sun.com if you need
11990N/A# additional information or have any questions.
11990N/A#
11990N/AKMOD = vboxguest
11990N/A
11990N/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
11990N/A
11990N/A.if (${MACHINE_ARCH} == "i386")
11990N/A CFLAGS += -DRT_ARCH_X86
11990N/A.elif (${MACHINE_ARCH} == "amd64")
11990N/A CFLAGS += -DRT_ARCH_AMD64
11990N/A.endif
11990N/A
11990N/ASRCS = \
11990N/A VBoxGuest.c \
11990N/A VBoxGuest-freebsd.c \
11990N/A GenericRequest.c \
11990N/A HGCMInternal.c \
11990N/A Init.c \
11990N/A PhysHeap.c \
11990N/A SysHlp.c \
11990N/A VMMDev.c
11990N/A
2920N/A# Include needed interface headers so they are created during build
2920N/ASRCS += \
2920N/A device_if.h \
2920N/A bus_if.h \
11990N/A pci_if.h \
11990N/A
11990N/A.PATH: ${.CURDIR}/alloc
11990N/ASRCS += \
11990N/A heapsimple.c
11990N/A
11990N/A.PATH: ${.CURDIR}/common/err
2920N/ASRCS += \
2920N/A RTErrConvertFromErrno.c \
11990N/A RTErrConvertToErrno.c
11990N/A
11990N/A.PATH: ${.CURDIR}/common/log
2920N/ASRCS += \
11990N/A log.c \
11990N/A logellipsis.c \
11990N/A logrel.c \
11990N/A logrelellipsis.c \
11990N/A logcom.c \
2920N/A logformat.c
2920N/A
2920N/A.PATH: ${.CURDIR}/common/misc
15607N/ASRCS += \
15607N/A RTAssertMsg1Weak.c \
15607N/A RTAssertMsg2.c \
15607N/A RTAssertMsg2Add.c \
15607N/A RTAssertMsg2AddWeak.c \
15607N/A RTAssertMsg2AddWeakV.c \
15607N/A RTAssertMsg2Weak.c \
15607N/A RTAssertMsg2WeakV.c \
15607N/A assert.c \
15607N/A handletable.c \
15607N/A handletablectx.c \
15607N/A once.c \
15607N/A thread.c
11858N/A
2920N/A.PATH: ${.CURDIR}/common/string
15607N/ASRCS += \
2920N/A strformat.c \
11858N/A strformatrt.c \
2920N/A strformattype.c \
15607N/A strprintf.c \
8150N/A strtonum.c \
15607N/A memchr.c \
2920N/A string.c
2920N/A
2920N/A.PATH: ${.CURDIR}/common/rand
2920N/ASRCS += \
11990N/A rand.c \
2920N/A randadv.c \
2920N/A randparkmiller.c
2920N/A
2920N/A.PATH: ${.CURDIR}/common/path
2920N/ASRCS += \
2920N/A RTPathStripFilename.c
2920N/A
2920N/A.PATH: ${.CURDIR}/common/checksum
2920N/ASRCS += \
11990N/A crc32.c \
11990N/A ipv4.c
11990N/A
11990N/A.PATH: ${.CURDIR}/common/table
11990N/ASRCS += \
11990N/A avlpv.c
2920N/A
2920N/A.PATH: ${.CURDIR}/generic
2920N/ASRCS += \
2920N/A uuid-generic.c \
2920N/A RTAssertShouldPanic-generic.c \
2920N/A RTLogWriteDebugger-generic.c \
11990N/A RTLogWriteStdOut-stub-generic.c \
2920N/A RTLogWriteStdErr-stub-generic.c \
2920N/A 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 \
strformat-vbox.c \
.include <bsd.kmod.mk>