Makefile revision 210db75d2af02f67370c4a1be6570484d29eb394
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# $Id$
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync## @file
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# VirtualBox Guest Additions Module Makefile.
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync#
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync#
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# Copyright (C) 2006-2014 Oracle Corporation
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync#
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# This file is part of VirtualBox Open Source Edition (OSE), as
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# available from http://www.virtualbox.org. This file is free software;
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# you can redistribute it and/or modify it under the terms of the GNU
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# General Public License (GPL) as published by the Free Software
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# Foundation, in version 2 as it comes in the "COPYING" file of the
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# VirtualBox OSE distribution. VirtualBox OSE is distributed in the
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync#
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncKMOD = vboxguest
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncCFLAGS += -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
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.if (${MACHINE_ARCH} == "i386")
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync CFLAGS += -DRT_ARCH_X86
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.elif (${MACHINE_ARCH} == "amd64")
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync CFLAGS += -DRT_ARCH_AMD64
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.endif
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS = \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync VBoxGuest.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync VBoxGuest2.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync VBoxGuest-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync GenericRequest.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync HGCMInternal.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync Init.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync PhysHeap.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync SysHlp.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync VMMDev.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync# Include needed interface headers so they are created during build
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
1c754011e968403645da177801a9affaeec0e4fdvboxsync device_if.h \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync bus_if.h \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync pci_if.h \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/alloc
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync heapsimple.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/err
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTErrConvertFromErrno.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTErrConvertToErrno.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/log
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync log.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync logellipsis.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync logrel.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync logrelellipsis.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync logcom.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync logformat.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/misc
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTAssertMsg1Weak.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTAssertMsg2.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTAssertMsg2Add.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTAssertMsg2AddWeak.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTAssertMsg2AddWeakV.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTAssertMsg2Weak.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTAssertMsg2WeakV.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync assert.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync handletable.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync handletablectx.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync once.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync thread.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/string
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTStrCopy.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTStrCopyEx.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTStrCopyP.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync strformat.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync strformatrt.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync strformattype.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync strprintf.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync strtonum.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync memchr.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/rand
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync rand.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync randadv.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync randparkmiller.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/path
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTPathStripFilename.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/checksum
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync crc32.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync ipv4.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/table
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync avlpv.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/common/time
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync time.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/generic
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync uuid-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTAssertShouldPanic-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTLogWriteDebugger-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTLogWriteStdOut-stub-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTLogWriteStdErr-stub-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTRandAdvCreateSystemFaster-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTRandAdvCreateSystemTruer-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTSemEventWait-2-ex-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTSemEventWaitNoResume-2-ex-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTSemEventMultiWait-2-ex-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTSemEventMultiWaitNoResume-2-ex-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTTimerCreate-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync timer-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync errvars-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync mppresent-generic.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/r0drv
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync alloc-r0drv.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync initterm-r0drv.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync memobj-r0drv.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync powernotification-r0drv.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/r0drv/freebsd
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync assert-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync alloc-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync initterm-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync memobj-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync memuserkernel-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync mp-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync process-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync semevent-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync semeventmulti-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync semfastmutex-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync semmutex-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync spinlock-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync thread-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync thread2-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync time-r0drv-freebsd.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync timer-r0drv-freebsd.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/r0drv/generic
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync semspinmutex-r0drv-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync mpnotification-r0drv-generic.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync RTMpIsCpuWorkPending-r0drv-generic.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.PATH: ${.CURDIR}/VBox
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsyncSRCS += \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync log-vbox.c \
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync logbackdoor.c
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync.include <bsd.kmod.mk>
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync
84029357bc8c5780585a1cd1b40319bbc23d022fvboxsync