VirtualBox

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

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

c99 in the VBOXGUESTR3XORGMOD template.

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