VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/xgraphics/Makefile.kmk@ 6555

Last change on this file since 6555 was 6555, checked in by vboxsync, 17 years ago

.._GUEST_MINI_R3 -> GUEST_R3_MINI. Added VBOX_LIB_VBGL_R3_XFREE86 to Config.kmk. VBoxGuestR3LibXFree86 instead of VBoxGuestR3LibLinuxXFree86.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.0 KB
Line 
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
18DEPTH = ../../../../..
19include $(PATH_KBUILD)/header.kmk
20
21if1of ($(BUILD_TARGET),linux l4)
22SYSMODS = vboxvideo_drv
23DLLS = vboxvideo_drv_70 vboxvideo_drv_71 vboxvideo_drv_13 vboxvideo_drv_14
24
25# for BUILD_TARGET=l4
26SUFF_DLL = .so
27
28## @todo clean up this by switching to VBoxGuestR3Lib
29VBOX_LIB_VBGL_R3 := $(PATH_LIB)/VBoxGuestR3LibLinux.a
30
31vboxvideo_drv_TEMPLATE = VBOXLNX32GUESTR3EXE
32vboxvideo_drv_SYSSUFF = .o
33vboxvideo_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
42vboxvideo_drv_CFLAGS.linux := \
43 -fno-merge-constants -Wno-conversion -Wno-unused-parameter \
44 $(VBOX_GCC_Wno-variadic-macros)
45vboxvideo_drv_LDFLAGS.release = -S
46ARGB_CURSORS=1
47ifdef ARGB_CURSORS
48vboxvideo_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
75else
76vboxvideo_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
103endif
104vboxvideo_drv_SOURCES = \
105 vboxvideo_68.c \
106 vboxutils-new.c
107vboxvideo_drv_LIBS = \
108 $(VBOX_LIB_VBGL_R3_XFREE86)
109
110vboxvideo_drv_70_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
111vboxvideo_drv_70_DEFS := \
112 XFree86Server IN_MODULE XFree86Module XFree86LOADER \
113 IN_RING3 VBOX XORG_7X PIC RENDER=1
114vboxvideo_drv_70_CFLAGS.linux := \
115 -Wno-conversion -Wno-unused-parameter \
116 $(VBOX_GCC_Wno-variadic-macros) -std=c99
117vboxvideo_drv_70_LDFLAGS = -s
118vboxvideo_drv_70_INCS = \
119 ../x11include/7.0 \
120 ../x11include/7.0/X11 \
121 ../x11include/7.0/xorg
122vboxvideo_drv_70_SOURCES = \
123 vboxvideo_70.c \
124 vboxutils-new.c
125vboxvideo_drv_70_LIBS = \
126 $(VBOX_LIB_VBGL_R3) \
127 $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
128 $(VBOX_LIB_VBGL_R3)
129
130vboxvideo_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
131vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
132vboxvideo_drv_71_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
133vboxvideo_drv_71_LDFLAGS = -s
134vboxvideo_drv_71_INCS = \
135 ../x11include/7.1 \
136 ../x11include/7.1/X11 \
137 ../x11include/7.1/xorg
138vboxvideo_drv_71_SOURCES = \
139 vboxvideo_70.c \
140 vboxutils-new.c
141vboxvideo_drv_71_LIBS = \
142 $(VBOX_LIB_VBGL_R3) \
143 $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
144 $(VBOX_LIB_VBGL_R3)
145
146vboxvideo_drv_13_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
147vboxvideo_drv_13_DEFS := $(vboxvideo_drv_70_DEFS)
148vboxvideo_drv_13_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
149vboxvideo_drv_13_LDFLAGS = -s
150vboxvideo_drv_13_INCS = \
151 ../x11include/1.3 \
152 ../x11include/1.3/X11 \
153 ../x11include/1.3/xorg
154vboxvideo_drv_13_SOURCES = \
155 vboxvideo_13.c \
156 vboxutils-new.c
157vboxvideo_drv_13_LIBS = \
158 $(VBOX_LIB_VBGL_R3) \
159 $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
160 $(VBOX_LIB_VBGL_R3)
161
162vboxvideo_drv_14_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
163vboxvideo_drv_14_DEFS := $(vboxvideo_drv_70_DEFS)
164vboxvideo_drv_14_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
165vboxvideo_drv_14_LDFLAGS = -s
166vboxvideo_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.
172vboxvideo_drv_14_SOURCES = \
173 vboxvideo_13.c \
174 vboxutils-new.c
175vboxvideo_drv_14_LIBS = \
176 $(VBOX_LIB_VBGL_R3) \
177 $(VBOX_LIB_IPRT_GUEST_R3_MINI) \
178 $(VBOX_LIB_VBGL_R3)
179endif
180
181ifeq ($(BUILD_TARGET),solaris)
182DLLS = vboxvideo_drv
183
184vboxvideo_drv_TEMPLATE = VBOXGUESTR3DLL
185vboxvideo_drv_DEFS := \
186 XFree86Server IN_MODULE XFree86Module XFree86LOADER \
187 IN_RING3 VBOX XORG_7X RENDER=1
188vboxvideo_drv_INCS = \
189 ../x11include/7.1 \
190 ../x11include/7.1/X11 \
191 ../x11include/7.1/xorg
192vboxvideo_drv_SOURCES = \
193 vboxvideo_70.c \
194 vboxutils-new.c
195vboxvideo_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?
200endif
201
202include $(PATH_KBUILD)/footer.kmk
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette