VirtualBox

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

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

BUILD_TARGET* -> KBUILD_TARGET*.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 7.0 KB
Line 
1# $Id: Makefile.kmk 8758 2008-05-11 18:27:49Z 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 $(PATH_KBUILD)/subheader.kmk
25
26#
27# vboxvideo_drv
28#
29if1of ($(KBUILD_TARGET),linux l4)
30 SYSMODS += vboxvideo_drv
31 vboxvideo_drv_TEMPLATE = VBOXGUESTR3XF86MOD
32 vboxvideo_drv_DEFS.linux = linux
33 vboxvideo_drv_DEFS = \
34 __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 vboxvideo_drv_CFLAGS.linux := \
42 -Wno-conversion -Wno-unused-parameter $(VBOX_GCC_Wno-variadic-macros)
43 ARGB_CURSORS=1
44 ifdef ARGB_CURSORS
45 vboxvideo_drv_INCS = \
46 $(VBOX_PATH_X11_XFREE_4_3)/include \
47 $(VBOX_PATH_X11_XFREE_4_3)/include/extensions \
48 $(VBOX_PATH_X11_XFREE_4_3)/include/fonts \
49 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/afb \
50 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/include \
51 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/fb \
52 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86 \
53 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/common \
54 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ddc \
55 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/int10 \
56 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/i2c \
57 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support \
58 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vbe \
59 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/os-support/bus \
60 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/rac \
61 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/ramdac \
62 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/shadowfb \
63 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/vgahw \
64 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf1bpp \
65 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf24_32bpp \
66 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/hw/xfree86/xf4bpp \
67 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mfb \
68 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/mi \
69 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/miext/shadow \
70 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/render \
71 $(VBOX_PATH_X11_XFREE_4_3)/programs/Xserver/Xext
72 else
73 vboxvideo_drv_INCS = \
74 $(VBOX_PATH_X11_XFREE_4_2)/exports/include/X11 \
75 $(VBOX_PATH_X11_XFREE_4_2)/include \
76 $(VBOX_PATH_X11_XFREE_4_2)/include/extensions \
77 $(VBOX_PATH_X11_XFREE_4_2)/include/fonts \
78 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/afb \
79 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/include \
80 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/fb \
81 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/common \
82 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/ddc \
83 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/int10 \
84 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/i2c \
85 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support \
86 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support/bus \
87 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support/vbe \
88 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/rac \
89 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/ramdac \
90 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/shadowfb \
91 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/vgahw \
92 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/xf1bpp \
93 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/xf24_32bpp \
94 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/xf4bpp \
95 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/mfb \
96 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/mi \
97 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/miext/shadow \
98 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/render \
99 $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/Xext
100 endif
101 vboxvideo_drv_SOURCES = \
102 vboxvideo_68.c \
103 vboxutils_68.c
104endif # target linux, l4
105
106
107#
108# vboxvideo_drv_70
109#
110# Remark: The other X.org drivers below are derived from this one. So, to make
111# that as simple as possible we do ifeq/if1of test here and extends the
112# base keywords instead of using .solaris or .linux.
113# Also it is *important* to use := and not = when deriving a properity.
114#
115DLLS += vboxvideo_drv_70
116vboxvideo_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
117if1of ($(KBUILD_TARGET), l4 linux)
118 vboxvideo_drv_70_CFLAGS += \
119 -Wno-conversion -Wno-unused-parameter $(VBOX_GCC_Wno-variadic-macros) # template?
120endif
121vboxvideo_drv_70_DEFS := \
122 XFree86Server IN_MODULE XFree86Module XFree86LOADER XORG_7X RENDER=1
123ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
124 vboxvideo_drv_70_DEFS += _XPG6 __EXTENSIONS__
125endif
126vboxvideo_drv_70_INCS = \
127 $(VBOX_PATH_X11_XORG_7_0) \
128 $(VBOX_PATH_X11_XORG_7_0)/X11 \
129 $(VBOX_PATH_X11_XORG_7_0)/xorg
130vboxvideo_drv_70_SOURCES = \
131 vboxvideo_70.c \
132 vboxutils.c
133
134
135#
136# vboxvideo_drv_71
137#
138DLLS += vboxvideo_drv_71
139vboxvideo_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
140vboxvideo_drv_71_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
141vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
142vboxvideo_drv_71_INCS = \
143 $(VBOX_PATH_X11_XORG_7_1) \
144 $(VBOX_PATH_X11_XORG_7_1)/X11 \
145 $(VBOX_PATH_X11_XORG_7_1)/xorg
146vboxvideo_drv_71_SOURCES = \
147 vboxvideo_70.c \
148 vboxutils.c
149
150
151#
152# vboxvideo_drv_13
153#
154DLLS += vboxvideo_drv_13
155vboxvideo_drv_13_TEMPLATE = VBOXGUESTR3XORGMOD
156vboxvideo_drv_13_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
157vboxvideo_drv_13_DEFS := $(vboxvideo_drv_70_DEFS)
158vboxvideo_drv_13_INCS = \
159 $(VBOX_PATH_X11_XORG_1_3) \
160 $(VBOX_PATH_X11_XORG_1_3)/X11 \
161 $(VBOX_PATH_X11_XORG_1_3)/xorg
162vboxvideo_drv_13_SOURCES = \
163 vboxvideo_13.c \
164 vboxutils.c
165
166
167#
168# vboxvideo_drv_14
169#
170# This uses the same code (vboxvideo_13.c) as 1.3, but is built
171# for 1.4 as well in case there should be any relevant header changes.
172#
173DLLS += vboxvideo_drv_14
174vboxvideo_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
175vboxvideo_drv_14_CFLAGS := $(vboxvideo_drv_70_CFLAGS)
176vboxvideo_drv_14_DEFS := $(vboxvideo_drv_70_DEFS)
177vboxvideo_drv_14_INCS = \
178 $(VBOX_PATH_X11_XORG_1_4) \
179 $(VBOX_PATH_X11_XORG_1_4)/X11 \
180 $(VBOX_PATH_X11_XORG_1_4)/xorg
181vboxvideo_drv_14_SOURCES = \
182 vboxvideo_13.c \
183 vboxutils.c
184
185
186include $(PATH_KBUILD)/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