VirtualBox

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

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

Removed the last remains of the linux additions cross compilation in the l4 build.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.4 KB
Line 
1# $Id: Makefile.kmk 9642 2008-06-12 00:41:39Z vboxsync $
2## @file
3# Sub-Makefile for the VBox Linux Additions X.org graphics driver.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22DEPTH ?= ../../../../..
23SUB_DEPTH = ../..
24include $(KBUILD_PATH)/subheader.kmk
25
26#
27# vboxvideo_drv
28#
29if1of ($(KBUILD_TARGET), linux)
30 SYSMODS += vboxvideo_drv
31 vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD
32 vboxvideo_drv_DEFS.linux = linux
33 vboxvideo_drv_DEFS.x86 = __i386__
34 vboxvideo_drv_DEFS = \
35 _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
36 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
37 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
38 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
39 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
40 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
41 IN_MODULE XFree86Module
42 vboxvideo_drv_CFLAGS.linux := \
43 -Wno-conversion -Wno-unused-parameter $(VBOX_GCC_Wno-variadic-macros)
44 ARGB_CURSORS=1
45 ifdef ARGB_CURSORS
46 vboxvideo_drv_INCS = \
47 $(VBOX_PATH_X11_XFREE_4_3)/include \
48 $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
49 $(VBOX_PATH_X11_XFREE_4_3)/include/fonts \
50 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/afb \
51 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
52 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/fb \
53 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
54 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
55 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ddc \
56 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/int10 \
57 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/i2c \
58 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
59 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vbe \
60 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
61 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/rac \
62 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ramdac \
63 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/shadowfb \
64 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vgahw \
65 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf1bpp \
66 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf24_32bpp \
67 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf4bpp \
68 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mfb \
69 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
70 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/miext/shadow \
71 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/render \
72 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/Xext
73 else
74 vboxvideo_drv_INCS = \
75 $(VBOX_PATH_X11_XFREE_4_2)/exports/include/X11 \
76 $(VBOX_PATH_X11_XFREE_4_2)/include \
77 $(VBOX_PATH_X11_XFREE_4_2)/include/extensions \
78 $(VBOX_PATH_X11_XFREE_4_2)/include/fonts \
79 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/afb \
80 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/include \
81 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/fb \
82 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/common \
83 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/ddc \
84 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/int10 \
85 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/i2c \
86 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support \
87 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support/bus \
88 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support/vbe \
89 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/rac \
90 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/ramdac \
91 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/shadowfb \
92 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/vgahw \
93 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/xf1bpp \
94 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/xf24_32bpp \
95 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/xf4bpp \
96 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/mfb \
97 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/mi \
98 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/miext/shadow \
99 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/render \
100 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/Xext
101 endif
102 vboxvideo_drv_SOURCES = \
103 vboxvideo_68.c \
104 vboxutils_68.c
105endif # target linux
106
107
108#
109# vboxvideo_drv_70
110#
111# Remark: The other X.org drivers below are derived from this one. So, to make
112# that as simple as possible we do ifeq/if1of test here and extends the
113# base keywords instead of using .solaris or .linux.
114# Also it is *important* to use := and not = when deriving a properity.
115#
116DLLS += vboxvideo_drv_70
117vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
118if1of ($(KBUILD_TARGET), linux)
119 vboxvideo_drv_70_CFLAGS += \
120 -Wno-conversion -Wno-unused-parameter $(VBOX_GCC_Wno-variadic-macros) # template?
121endif
122vboxvideo_drv_70_DEFS := \
123 XFree86Server IN_MODULE XFree86Module XFree86LOADER XORG_7X RENDER=1
124ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
125 vboxvideo_drv_70_DEFS += _XPG6 __EXTENSIONS__
126endif
127vboxvideo_drv_70_INCS = \
128 $(VBOX_PATH_X11_XORG_7_0) \
129 $(VBOX_PATH_X11_XORG_7_0)/X11 \
130 $(VBOX_PATH_X11_XORG_7_0)/xorg
131vboxvideo_drv_70_SOURCES = \
132 vboxvideo_70.c \
133 vboxutils.c
134
135
136#
137# vboxvideo_drv_71
138#
139DLLS += vboxvideo_drv_71
140vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
141vboxvideo_drv_71_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
142vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
143vboxvideo_drv_71_INCS = \
144 $(VBOX_PATH_X11_XORG_7_1) \
145 $(VBOX_PATH_X11_XORG_7_1)/X11 \
146 $(VBOX_PATH_X11_XORG_7_1)/xorg
147vboxvideo_drv_71_SOURCES = \
148 vboxvideo_70.c \
149 vboxutils.c
150
151
152#
153# vboxvideo_drv_13
154#
155DLLS += vboxvideo_drv_13
156vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
157vboxvideo_drv_13_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
158vboxvideo_drv_13_DEFS := $(vboxvideo_drv_70_DEFS)
159vboxvideo_drv_13_INCS = \
160 $(VBOX_PATH_X11_XORG_1_3) \
161 $(VBOX_PATH_X11_XORG_1_3)/X11 \
162 $(VBOX_PATH_X11_XORG_1_3)/xorg
163vboxvideo_drv_13_SOURCES = \
164 vboxvideo_13.c \
165 vboxutils.c
166
167
168#
169# vboxvideo_drv_14
170#
171# This uses the same code (vboxvideo_13.c) as 1.3, but is built
172# for 1.4 as well in case there should be any relevant header changes.
173#
174DLLS += vboxvideo_drv_14
175vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
176vboxvideo_drv_14_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
177vboxvideo_drv_14_DEFS := $(vboxvideo_drv_70_DEFS)
178vboxvideo_drv_14_INCS = \
179 $(VBOX_PATH_X11_XORG_1_4) \
180 $(VBOX_PATH_X11_XORG_1_4)/X11 \
181 $(VBOX_PATH_X11_XORG_1_4)/xorg
182vboxvideo_drv_14_SOURCES = \
183 vboxvideo_13.c \
184 vboxutils.c
185
186
187#
188# vboxvideo_drv_15
189#
190DLLS += vboxvideo_drv_15
191vboxvideo_drv_15_TEMPLATE = VBOXGUESTR3XORGMOD
192vboxvideo_drv_15_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
193vboxvideo_drv_15_DEFS := $(vboxvideo_drv_70_DEFS) NO_ANSIC PCIACCESS
194vboxvideo_drv_15_INCS = \
195 $(VBOX_PATH_X11_XORG_1_5) \
196 $(VBOX_PATH_X11_XORG_1_5)/X11 \
197 $(VBOX_PATH_X11_XORG_1_5)/xorg
198vboxvideo_drv_15_SOURCES = \
199 vboxvideo_15.c \
200 vboxutils.c
201
202
203include $(KBUILD_PATH)/subfooter.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