VirtualBox

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

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

added missing X11/Xorg headers to prevent mixing X11 headers of these directories with X11 headers from /usr/include

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