1 | # $Id: Makefile.kmk 6555 2008-01-29 02:38:47Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Makefile for the VBox Linux Additions X.org graphics driver.
|
---|
4 | #
|
---|
5 |
|
---|
6 | #
|
---|
7 | # Copyright (C) 2006-2007 innotek GmbH
|
---|
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 |
|
---|
18 | DEPTH = ../../../../..
|
---|
19 | include $(PATH_KBUILD)/header.kmk
|
---|
20 |
|
---|
21 | if1of ($(BUILD_TARGET),linux l4)
|
---|
22 | SYSMODS = vboxvideo_drv
|
---|
23 | DLLS = vboxvideo_drv_70 vboxvideo_drv_71 vboxvideo_drv_13 vboxvideo_drv_14
|
---|
24 |
|
---|
25 | # for BUILD_TARGET=l4
|
---|
26 | SUFF_DLL = .so
|
---|
27 |
|
---|
28 | ## @todo clean up this by switching to VBoxGuestR3Lib
|
---|
29 | VBOX_LIB_VBGL_R3 := $(PATH_LIB)/VBoxGuestR3LibLinux.a
|
---|
30 |
|
---|
31 | vboxvideo_drv_TEMPLATE = VBOXLNX32GUESTR3EXE
|
---|
32 | vboxvideo_drv_SYSSUFF = .o
|
---|
33 | vboxvideo_drv_DEFS = \
|
---|
34 | linux __i386__ _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
|
---|
35 | _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
|
---|
36 | XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
|
---|
37 | GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
|
---|
38 | XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
|
---|
39 | BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
|
---|
40 | IN_MODULE XFree86Module \
|
---|
41 | IN_RING3 VBOX
|
---|
42 | vboxvideo_drv_CFLAGS.linux := \
|
---|
43 | -fno-merge-constants -Wno-conversion -Wno-unused-parameter \
|
---|
44 | $(VBOX_GCC_Wno-variadic-macros)
|
---|
45 | vboxvideo_drv_LDFLAGS.release = -S
|
---|
46 | ARGB_CURSORS=1
|
---|
47 | ifdef ARGB_CURSORS
|
---|
48 | vboxvideo_drv_INCS = \
|
---|
49 | ../x11include/4.3/include \
|
---|
50 | ../x11include/4.3/include/extensions \
|
---|
51 | ../x11include/4.3/include/fonts \
|
---|
52 | ../x11include/4.3/programs/Xserver/afb \
|
---|
53 | ../x11include/4.3/programs/Xserver/include \
|
---|
54 | ../x11include/4.3/programs/Xserver/fb \
|
---|
55 | ../x11include/4.3/programs/Xserver/hw/xfree86 \
|
---|
56 | ../x11include/4.3/programs/Xserver/hw/xfree86/common \
|
---|
57 | ../x11include/4.3/programs/Xserver/hw/xfree86/ddc \
|
---|
58 | ../x11include/4.3/programs/Xserver/hw/xfree86/int10 \
|
---|
59 | ../x11include/4.3/programs/Xserver/hw/xfree86/i2c \
|
---|
60 | ../x11include/4.3/programs/Xserver/hw/xfree86/os-support \
|
---|
61 | ../x11include/4.3/programs/Xserver/hw/xfree86/vbe \
|
---|
62 | ../x11include/4.3/programs/Xserver/hw/xfree86/os-support/bus \
|
---|
63 | ../x11include/4.3/programs/Xserver/hw/xfree86/rac \
|
---|
64 | ../x11include/4.3/programs/Xserver/hw/xfree86/ramdac \
|
---|
65 | ../x11include/4.3/programs/Xserver/hw/xfree86/shadowfb \
|
---|
66 | ../x11include/4.3/programs/Xserver/hw/xfree86/vgahw \
|
---|
67 | ../x11include/4.3/programs/Xserver/hw/xfree86/xf1bpp \
|
---|
68 | ../x11include/4.3/programs/Xserver/hw/xfree86/xf24_32bpp \
|
---|
69 | ../x11include/4.3/programs/Xserver/hw/xfree86/xf4bpp \
|
---|
70 | ../x11include/4.3/programs/Xserver/mfb \
|
---|
71 | ../x11include/4.3/programs/Xserver/mi \
|
---|
72 | ../x11include/4.3/programs/Xserver/miext/shadow \
|
---|
73 | ../x11include/4.3/programs/Xserver/render \
|
---|
74 | ../x11include/4.3/programs/Xserver/Xext
|
---|
75 | else
|
---|
76 | vboxvideo_drv_INCS = \
|
---|
77 | ../x11include/4.2/exports/include/X11 \
|
---|
78 | ../x11include/4.2/include \
|
---|
79 | ../x11include/4.2/include/extensions \
|
---|
80 | ../x11include/4.2/include/fonts \
|
---|
81 | ../x11include/4.2/programs/Xserver/afb \
|
---|
82 | ../x11include/4.2/programs/Xserver/include \
|
---|
83 | ../x11include/4.2/programs/Xserver/fb \
|
---|
84 | ../x11include/4.2/programs/Xserver/hw/xfree86/common \
|
---|
85 | ../x11include/4.2/programs/Xserver/hw/xfree86/ddc \
|
---|
86 | ../x11include/4.2/programs/Xserver/hw/xfree86/int10 \
|
---|
87 | ../x11include/4.2/programs/Xserver/hw/xfree86/i2c \
|
---|
88 | ../x11include/4.2/programs/Xserver/hw/xfree86/os-support \
|
---|
89 | ../x11include/4.2/programs/Xserver/hw/xfree86/os-support/bus \
|
---|
90 | ../x11include/4.2/programs/Xserver/hw/xfree86/os-support/vbe \
|
---|
91 | ../x11include/4.2/programs/Xserver/hw/xfree86/rac \
|
---|
92 | ../x11include/4.2/programs/Xserver/hw/xfree86/ramdac \
|
---|
93 | ../x11include/4.2/programs/Xserver/hw/xfree86/shadowfb \
|
---|
94 | ../x11include/4.2/programs/Xserver/hw/xfree86/vgahw \
|
---|
95 | ../x11include/4.2/programs/Xserver/hw/xfree86/xf1bpp \
|
---|
96 | ../x11include/4.2/programs/Xserver/hw/xfree86/xf24_32bpp \
|
---|
97 | ../x11include/4.2/programs/Xserver/hw/xfree86/xf4bpp \
|
---|
98 | ../x11include/4.2/programs/Xserver/mfb \
|
---|
99 | ../x11include/4.2/programs/Xserver/mi \
|
---|
100 | ../x11include/4.2/programs/Xserver/miext/shadow \
|
---|
101 | ../x11include/4.2/programs/Xserver/render \
|
---|
102 | ../x11include/4.2/programs/Xserver/Xext
|
---|
103 | endif
|
---|
104 | vboxvideo_drv_SOURCES = \
|
---|
105 | vboxvideo_68.c \
|
---|
106 | vboxutils-new.c
|
---|
107 | vboxvideo_drv_LIBS = \
|
---|
108 | $(VBOX_LIB_VBGL_R3_XFREE86)
|
---|
109 |
|
---|
110 | vboxvideo_drv_70_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
|
---|
111 | vboxvideo_drv_70_DEFS := \
|
---|
112 | XFree86Server IN_MODULE XFree86Module XFree86LOADER \
|
---|
113 | IN_RING3 VBOX XORG_7X PIC RENDER=1
|
---|
114 | vboxvideo_drv_70_CFLAGS.linux := \
|
---|
115 | -Wno-conversion -Wno-unused-parameter \
|
---|
116 | $(VBOX_GCC_Wno-variadic-macros) -std=c99
|
---|
117 | vboxvideo_drv_70_LDFLAGS = -s
|
---|
118 | vboxvideo_drv_70_INCS = \
|
---|
119 | ../x11include/7.0 \
|
---|
120 | ../x11include/7.0/X11 \
|
---|
121 | ../x11include/7.0/xorg
|
---|
122 | vboxvideo_drv_70_SOURCES = \
|
---|
123 | vboxvideo_70.c \
|
---|
124 | vboxutils-new.c
|
---|
125 | vboxvideo_drv_70_LIBS = \
|
---|
126 | $(VBOX_LIB_VBGL_R3) \
|
---|
127 | $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
|
---|
128 | $(VBOX_LIB_VBGL_R3)
|
---|
129 |
|
---|
130 | vboxvideo_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
|
---|
131 | vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
|
---|
132 | vboxvideo_drv_71_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
|
---|
133 | vboxvideo_drv_71_LDFLAGS = -s
|
---|
134 | vboxvideo_drv_71_INCS = \
|
---|
135 | ../x11include/7.1 \
|
---|
136 | ../x11include/7.1/X11 \
|
---|
137 | ../x11include/7.1/xorg
|
---|
138 | vboxvideo_drv_71_SOURCES = \
|
---|
139 | vboxvideo_70.c \
|
---|
140 | vboxutils-new.c
|
---|
141 | vboxvideo_drv_71_LIBS = \
|
---|
142 | $(VBOX_LIB_VBGL_R3) \
|
---|
143 | $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
|
---|
144 | $(VBOX_LIB_VBGL_R3)
|
---|
145 |
|
---|
146 | vboxvideo_drv_13_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
|
---|
147 | vboxvideo_drv_13_DEFS := $(vboxvideo_drv_70_DEFS)
|
---|
148 | vboxvideo_drv_13_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
|
---|
149 | vboxvideo_drv_13_LDFLAGS = -s
|
---|
150 | vboxvideo_drv_13_INCS = \
|
---|
151 | ../x11include/1.3 \
|
---|
152 | ../x11include/1.3/X11 \
|
---|
153 | ../x11include/1.3/xorg
|
---|
154 | vboxvideo_drv_13_SOURCES = \
|
---|
155 | vboxvideo_13.c \
|
---|
156 | vboxutils-new.c
|
---|
157 | vboxvideo_drv_13_LIBS = \
|
---|
158 | $(VBOX_LIB_VBGL_R3) \
|
---|
159 | $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
|
---|
160 | $(VBOX_LIB_VBGL_R3)
|
---|
161 |
|
---|
162 | vboxvideo_drv_14_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
|
---|
163 | vboxvideo_drv_14_DEFS := $(vboxvideo_drv_70_DEFS)
|
---|
164 | vboxvideo_drv_14_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
|
---|
165 | vboxvideo_drv_14_LDFLAGS = -s
|
---|
166 | vboxvideo_drv_14_INCS = \
|
---|
167 | ../x11include/1.4 \
|
---|
168 | ../x11include/1.4/X11 \
|
---|
169 | ../x11include/1.4/xorg
|
---|
170 | # The actual source has not changed from the 1.3 driver, but the headers
|
---|
171 | # have. To be safe, build the driver for 1.4 separately.
|
---|
172 | vboxvideo_drv_14_SOURCES = \
|
---|
173 | vboxvideo_13.c \
|
---|
174 | vboxutils-new.c
|
---|
175 | vboxvideo_drv_14_LIBS = \
|
---|
176 | $(VBOX_LIB_VBGL_R3) \
|
---|
177 | $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
|
---|
178 | $(VBOX_LIB_VBGL_R3)
|
---|
179 | endif
|
---|
180 |
|
---|
181 | ifeq ($(BUILD_TARGET),solaris)
|
---|
182 | DLLS = vboxvideo_drv
|
---|
183 |
|
---|
184 | vboxvideo_drv_TEMPLATE = VBOXGUESTR3DLL
|
---|
185 | vboxvideo_drv_DEFS := \
|
---|
186 | XFree86Server IN_MODULE XFree86Module XFree86LOADER \
|
---|
187 | IN_RING3 VBOX XORG_7X RENDER=1
|
---|
188 | vboxvideo_drv_INCS = \
|
---|
189 | ../x11include/7.1 \
|
---|
190 | ../x11include/7.1/X11 \
|
---|
191 | ../x11include/7.1/xorg
|
---|
192 | vboxvideo_drv_SOURCES = \
|
---|
193 | vboxvideo_70.c \
|
---|
194 | vboxutils-new.c
|
---|
195 | vboxvideo_drv_LIBS = \
|
---|
196 | $(VBOX_LIB_VBGL_R3) \
|
---|
197 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
198 | $(VBOX_LIB_VBGL_R3)
|
---|
199 | ## @todo Use VBOX_LIB_IPRT_GUEST_R3_MINI instead of VBOX_LIB_IPRT_GUEST_R3?
|
---|
200 | endif
|
---|
201 |
|
---|
202 | include $(PATH_KBUILD)/footer.kmk
|
---|