VirtualBox

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

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

Additions (x11): added randr 1.2 support to the graphics driver

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 6.8 KB
Line 
1# $Id: Makefile.kmk 6484 2008-01-24 14:59:40Z 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# For now
29VBOX_LIB_VBGL_R3 := $(PATH_LIB)/VBoxGuestR3LibLinux.a
30VBOX_LIB_IPRT_GUEST_R3 := $(PATH_LIB)/RuntimeLnx32GuestR3.a
31
32vboxvideo_drv_TEMPLATE = VBOXLNX32GUESTR3EXE
33vboxvideo_drv_SYSSUFF = .o
34vboxvideo_drv_DEFS = \
35 linux __i386__ _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 IN_RING3 VBOX
43vboxvideo_drv_CFLAGS.linux := \
44 -fno-merge-constants -Wno-conversion -Wno-unused-parameter \
45 $(VBOX_GCC_Wno-variadic-macros)
46vboxvideo_drv_LDFLAGS.release = -S
47ARGB_CURSORS=1
48ifdef ARGB_CURSORS
49vboxvideo_drv_INCS = \
50 ../x11include/4.3/include \
51 ../x11include/4.3/include/extensions \
52 ../x11include/4.3/include/fonts \
53 ../x11include/4.3/programs/Xserver/afb \
54 ../x11include/4.3/programs/Xserver/include \
55 ../x11include/4.3/programs/Xserver/fb \
56 ../x11include/4.3/programs/Xserver/hw/xfree86 \
57 ../x11include/4.3/programs/Xserver/hw/xfree86/common \
58 ../x11include/4.3/programs/Xserver/hw/xfree86/ddc \
59 ../x11include/4.3/programs/Xserver/hw/xfree86/int10 \
60 ../x11include/4.3/programs/Xserver/hw/xfree86/i2c \
61 ../x11include/4.3/programs/Xserver/hw/xfree86/os-support \
62 ../x11include/4.3/programs/Xserver/hw/xfree86/vbe \
63 ../x11include/4.3/programs/Xserver/hw/xfree86/os-support/bus \
64 ../x11include/4.3/programs/Xserver/hw/xfree86/rac \
65 ../x11include/4.3/programs/Xserver/hw/xfree86/ramdac \
66 ../x11include/4.3/programs/Xserver/hw/xfree86/shadowfb \
67 ../x11include/4.3/programs/Xserver/hw/xfree86/vgahw \
68 ../x11include/4.3/programs/Xserver/hw/xfree86/xf1bpp \
69 ../x11include/4.3/programs/Xserver/hw/xfree86/xf24_32bpp \
70 ../x11include/4.3/programs/Xserver/hw/xfree86/xf4bpp \
71 ../x11include/4.3/programs/Xserver/mfb \
72 ../x11include/4.3/programs/Xserver/mi \
73 ../x11include/4.3/programs/Xserver/miext/shadow \
74 ../x11include/4.3/programs/Xserver/render \
75 ../x11include/4.3/programs/Xserver/Xext
76else
77vboxvideo_drv_INCS = \
78 ../x11include/4.2/exports/include/X11 \
79 ../x11include/4.2/include \
80 ../x11include/4.2/include/extensions \
81 ../x11include/4.2/include/fonts \
82 ../x11include/4.2/programs/Xserver/afb \
83 ../x11include/4.2/programs/Xserver/include \
84 ../x11include/4.2/programs/Xserver/fb \
85 ../x11include/4.2/programs/Xserver/hw/xfree86/common \
86 ../x11include/4.2/programs/Xserver/hw/xfree86/ddc \
87 ../x11include/4.2/programs/Xserver/hw/xfree86/int10 \
88 ../x11include/4.2/programs/Xserver/hw/xfree86/i2c \
89 ../x11include/4.2/programs/Xserver/hw/xfree86/os-support \
90 ../x11include/4.2/programs/Xserver/hw/xfree86/os-support/bus \
91 ../x11include/4.2/programs/Xserver/hw/xfree86/os-support/vbe \
92 ../x11include/4.2/programs/Xserver/hw/xfree86/rac \
93 ../x11include/4.2/programs/Xserver/hw/xfree86/ramdac \
94 ../x11include/4.2/programs/Xserver/hw/xfree86/shadowfb \
95 ../x11include/4.2/programs/Xserver/hw/xfree86/vgahw \
96 ../x11include/4.2/programs/Xserver/hw/xfree86/xf1bpp \
97 ../x11include/4.2/programs/Xserver/hw/xfree86/xf24_32bpp \
98 ../x11include/4.2/programs/Xserver/hw/xfree86/xf4bpp \
99 ../x11include/4.2/programs/Xserver/mfb \
100 ../x11include/4.2/programs/Xserver/mi \
101 ../x11include/4.2/programs/Xserver/miext/shadow \
102 ../x11include/4.2/programs/Xserver/render \
103 ../x11include/4.2/programs/Xserver/Xext
104endif
105vboxvideo_drv_SOURCES = \
106 vboxvideo_68.c \
107 vboxutils.c
108vboxvideo_drv_LIBS = \
109 $(VBOX_LIB_VBGL_R3) \
110 $(VBOX_LIB_IPRT_GUEST_R3)
111
112vboxvideo_drv_70_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
113vboxvideo_drv_70_DEFS := \
114 XFree86Server IN_MODULE XFree86Module XFree86LOADER \
115 IN_RING3 VBOX XORG_7X PIC RENDER=1
116vboxvideo_drv_70_CFLAGS.linux := \
117 -Wno-conversion -Wno-unused-parameter \
118 $(VBOX_GCC_Wno-variadic-macros) -std=c99
119vboxvideo_drv_70_LDFLAGS = -s
120vboxvideo_drv_70_INCS = \
121 ../x11include/7.0 \
122 ../x11include/7.0/X11 \
123 ../x11include/7.0/xorg
124vboxvideo_drv_70_SOURCES = \
125 vboxvideo_70.c \
126 vboxutils.c
127vboxvideo_drv_70_LIBS = \
128 $(VBOX_LIB_VBGL_R3) \
129 $(VBOX_LIB_IPRT_GUEST_R3)
130
131vboxvideo_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
132vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
133vboxvideo_drv_71_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
134vboxvideo_drv_71_LDFLAGS = -s
135vboxvideo_drv_71_INCS = \
136 ../x11include/7.1 \
137 ../x11include/7.1/X11 \
138 ../x11include/7.1/xorg
139vboxvideo_drv_71_SOURCES = \
140 vboxvideo_70.c \
141 vboxutils.c
142vboxvideo_drv_71_LIBS = \
143 $(VBOX_LIB_VBGL_R3) \
144 $(VBOX_LIB_IPRT_GUEST_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.c
157vboxvideo_drv_13_LIBS = \
158 $(VBOX_LIB_VBGL_R3) \
159 $(VBOX_LIB_IPRT_GUEST_R3)
160
161vboxvideo_drv_14_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
162vboxvideo_drv_14_DEFS := $(vboxvideo_drv_70_DEFS)
163vboxvideo_drv_14_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
164vboxvideo_drv_14_LDFLAGS = -s
165vboxvideo_drv_14_INCS = \
166 ../x11include/1.4 \
167 ../x11include/1.4/X11 \
168 ../x11include/1.4/xorg
169# The actual source has not changed from the 1.3 driver, but the headers
170# have. To be safe, build the driver for 1.4 separately.
171vboxvideo_drv_14_SOURCES = \
172 vboxvideo_13.c \
173 vboxutils.c
174vboxvideo_drv_14_LIBS = \
175 $(VBOX_LIB_VBGL_R3) \
176 $(VBOX_LIB_IPRT_GUEST_R3)
177endif
178
179ifeq ($(BUILD_TARGET),solaris)
180DLLS = vboxvideo_drv
181
182vboxvideo_drv_TEMPLATE = VBOXGUESTR3DLL
183vboxvideo_drv_DEFS := \
184 XFree86Server IN_MODULE XFree86Module XFree86LOADER \
185 IN_RING3 VBOX XORG_7X RENDER=1
186vboxvideo_drv_INCS = \
187 ../x11include/7.1 \
188 ../x11include/7.1/X11 \
189 ../x11include/7.1/xorg
190vboxvideo_drv_SOURCES = \
191 vboxvideo_70.c \
192 vboxutils.c
193vboxvideo_drv_LIBS = \
194 $(VBOX_LIB_VBGL_R3) \
195 $(VBOX_LIB_IPRT_GUEST_R3)
196endif
197
198include $(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