1 | # $Id: Makefile 33378 2010-10-24 13:20:43Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # VirtualBox Guest Additions Module Makefile.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2009 Oracle Corporation
|
---|
8 | #
|
---|
9 | # This file is part of VirtualBox Open Source Edition (OSE), as
|
---|
10 | # available from http://www.virtualbox.org. This file is free software;
|
---|
11 | # you can redistribute it and/or modify it under the terms of the GNU
|
---|
12 | # General Public License (GPL) as published by the Free Software
|
---|
13 | # Foundation, in version 2 as it comes in the "COPYING" file of the
|
---|
14 | # VirtualBox OSE distribution. VirtualBox OSE is distributed in the
|
---|
15 | # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 | #
|
---|
17 | KMOD = vboxguest
|
---|
18 |
|
---|
19 | CFLAGS += -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
|
---|
20 |
|
---|
21 | .if (${MACHINE_ARCH} == "i386")
|
---|
22 | CFLAGS += -DRT_ARCH_X86
|
---|
23 | .elif (${MACHINE_ARCH} == "amd64")
|
---|
24 | CFLAGS += -DRT_ARCH_AMD64
|
---|
25 | .endif
|
---|
26 |
|
---|
27 | SRCS = \
|
---|
28 | VBoxGuest.c \
|
---|
29 | VBoxGuest2.c \
|
---|
30 | VBoxGuest-freebsd.c \
|
---|
31 | GenericRequest.c \
|
---|
32 | HGCMInternal.c \
|
---|
33 | Init.c \
|
---|
34 | PhysHeap.c \
|
---|
35 | SysHlp.c \
|
---|
36 | VMMDev.c
|
---|
37 |
|
---|
38 | # Include needed interface headers so they are created during build
|
---|
39 | SRCS += \
|
---|
40 | device_if.h \
|
---|
41 | bus_if.h \
|
---|
42 | pci_if.h \
|
---|
43 |
|
---|
44 | .PATH: ${.CURDIR}/alloc
|
---|
45 | SRCS += \
|
---|
46 | heapsimple.c
|
---|
47 |
|
---|
48 | .PATH: ${.CURDIR}/common/err
|
---|
49 | SRCS += \
|
---|
50 | RTErrConvertFromErrno.c \
|
---|
51 | RTErrConvertToErrno.c
|
---|
52 |
|
---|
53 | .PATH: ${.CURDIR}/common/log
|
---|
54 | SRCS += \
|
---|
55 | log.c \
|
---|
56 | logellipsis.c \
|
---|
57 | logrel.c \
|
---|
58 | logrelellipsis.c \
|
---|
59 | logcom.c \
|
---|
60 | logformat.c
|
---|
61 |
|
---|
62 | .PATH: ${.CURDIR}/common/misc
|
---|
63 | SRCS += \
|
---|
64 | RTAssertMsg1Weak.c \
|
---|
65 | RTAssertMsg2.c \
|
---|
66 | RTAssertMsg2Add.c \
|
---|
67 | RTAssertMsg2AddWeak.c \
|
---|
68 | RTAssertMsg2AddWeakV.c \
|
---|
69 | RTAssertMsg2Weak.c \
|
---|
70 | RTAssertMsg2WeakV.c \
|
---|
71 | assert.c \
|
---|
72 | handletable.c \
|
---|
73 | handletablectx.c \
|
---|
74 | once.c \
|
---|
75 | thread.c
|
---|
76 |
|
---|
77 | .PATH: ${.CURDIR}/common/string
|
---|
78 | SRCS += \
|
---|
79 | RTStrCopy.c \
|
---|
80 | strformat.c \
|
---|
81 | strformatrt.c \
|
---|
82 | strformattype.c \
|
---|
83 | strprintf.c \
|
---|
84 | strtonum.c \
|
---|
85 | memchr.c
|
---|
86 |
|
---|
87 | .PATH: ${.CURDIR}/common/rand
|
---|
88 | SRCS += \
|
---|
89 | rand.c \
|
---|
90 | randadv.c \
|
---|
91 | randparkmiller.c
|
---|
92 |
|
---|
93 | .PATH: ${.CURDIR}/common/path
|
---|
94 | SRCS += \
|
---|
95 | RTPathStripFilename.c
|
---|
96 |
|
---|
97 | .PATH: ${.CURDIR}/common/checksum
|
---|
98 | SRCS += \
|
---|
99 | crc32.c \
|
---|
100 | ipv4.c
|
---|
101 |
|
---|
102 | .PATH: ${.CURDIR}/common/table
|
---|
103 | SRCS += \
|
---|
104 | avlpv.c
|
---|
105 |
|
---|
106 | .PATH: ${.CURDIR}/generic
|
---|
107 | SRCS += \
|
---|
108 | uuid-generic.c \
|
---|
109 | RTAssertShouldPanic-generic.c \
|
---|
110 | RTLogWriteDebugger-generic.c \
|
---|
111 | RTLogWriteStdOut-stub-generic.c \
|
---|
112 | RTLogWriteStdErr-stub-generic.c \
|
---|
113 | RTRandAdvCreateSystemFaster-generic.c \
|
---|
114 | RTRandAdvCreateSystemTruer-generic.c \
|
---|
115 | RTSemEventWait-2-ex-generic.c \
|
---|
116 | RTSemEventWaitNoResume-2-ex-generic.c \
|
---|
117 | RTSemEventMultiWait-2-ex-generic.c \
|
---|
118 | RTSemEventMultiWaitNoResume-2-ex-generic.c \
|
---|
119 | RTTimerCreate-generic.c \
|
---|
120 | timer-generic.c \
|
---|
121 | mppresent-generic.c
|
---|
122 |
|
---|
123 | .PATH: ${.CURDIR}/r0drv
|
---|
124 | SRCS += \
|
---|
125 | alloc-r0drv.c \
|
---|
126 | initterm-r0drv.c \
|
---|
127 | memobj-r0drv.c \
|
---|
128 | powernotification-r0drv.c
|
---|
129 |
|
---|
130 | .PATH: ${.CURDIR}/r0drv/freebsd
|
---|
131 | SRCS += \
|
---|
132 | assert-r0drv-freebsd.c \
|
---|
133 | alloc-r0drv-freebsd.c \
|
---|
134 | initterm-r0drv-freebsd.c \
|
---|
135 | memobj-r0drv-freebsd.c \
|
---|
136 | memuserkernel-r0drv-freebsd.c \
|
---|
137 | mp-r0drv-freebsd.c \
|
---|
138 | process-r0drv-freebsd.c \
|
---|
139 | semevent-r0drv-freebsd.c \
|
---|
140 | semeventmulti-r0drv-freebsd.c \
|
---|
141 | semfastmutex-r0drv-freebsd.c \
|
---|
142 | spinlock-r0drv-freebsd.c \
|
---|
143 | thread-r0drv-freebsd.c \
|
---|
144 | thread2-r0drv-freebsd.c \
|
---|
145 | time-r0drv-freebsd.c
|
---|
146 |
|
---|
147 | .PATH: ${.CURDIR}/r0drv/generic
|
---|
148 | SRCS += \
|
---|
149 | semspinmutex-r0drv-generic.c \
|
---|
150 | mpnotification-r0drv-generic.c \
|
---|
151 | RTMpIsCpuWorkPending-r0drv-generic.c
|
---|
152 |
|
---|
153 | .PATH: ${.CURDIR}/VBox
|
---|
154 | SRCS += \
|
---|
155 | log-vbox.c \
|
---|
156 | logbackdoor.c
|
---|
157 |
|
---|
158 | .include <bsd.kmod.mk>
|
---|
159 |
|
---|