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 |
|
---|
18 | DEPTH = ../../../../..
|
---|
19 | include $(PATH_KBUILD)/header.kmk
|
---|
20 |
|
---|
21 | if1of ($(BUILD_TARGET),linux l4)
|
---|
22 | SYSMODS = vboxvideo_drv
|
---|
23 | DLLS = vboxvideo_drv_70 vboxvideo_drv_71 vboxvideo_drv_13 vboxvideo_drv_14
|
---|
24 |
|
---|
25 | # for BUILD_TARGET=l4
|
---|
26 | SUFF_DLL = .so
|
---|
27 |
|
---|
28 | # For now
|
---|
29 | VBOX_LIB_VBGL_R3 := $(PATH_LIB)/VBoxGuestR3LibLinux.a
|
---|
30 | VBOX_LIB_IPRT_GUEST_R3 := $(PATH_LIB)/RuntimeLnx32GuestR3.a
|
---|
31 |
|
---|
32 | vboxvideo_drv_TEMPLATE = VBOXLNX32GUESTR3EXE
|
---|
33 | vboxvideo_drv_SYSSUFF = .o
|
---|
34 | vboxvideo_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
|
---|
43 | vboxvideo_drv_CFLAGS.linux := \
|
---|
44 | -fno-merge-constants -Wno-conversion -Wno-unused-parameter \
|
---|
45 | $(VBOX_GCC_Wno-variadic-macros)
|
---|
46 | vboxvideo_drv_LDFLAGS.release = -S
|
---|
47 | ARGB_CURSORS=1
|
---|
48 | ifdef ARGB_CURSORS
|
---|
49 | vboxvideo_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
|
---|
76 | else
|
---|
77 | vboxvideo_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
|
---|
104 | endif
|
---|
105 | vboxvideo_drv_SOURCES = \
|
---|
106 | vboxvideo_68.c \
|
---|
107 | vboxutils.c
|
---|
108 | vboxvideo_drv_LIBS = \
|
---|
109 | $(VBOX_LIB_VBGL_R3) \
|
---|
110 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
111 |
|
---|
112 | vboxvideo_drv_70_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
|
---|
113 | vboxvideo_drv_70_DEFS := \
|
---|
114 | XFree86Server IN_MODULE XFree86Module XFree86LOADER \
|
---|
115 | IN_RING3 VBOX XORG_7X PIC RENDER=1
|
---|
116 | vboxvideo_drv_70_CFLAGS.linux := \
|
---|
117 | -Wno-conversion -Wno-unused-parameter \
|
---|
118 | $(VBOX_GCC_Wno-variadic-macros) -std=c99
|
---|
119 | vboxvideo_drv_70_LDFLAGS = -s
|
---|
120 | vboxvideo_drv_70_INCS = \
|
---|
121 | ../x11include/7.0 \
|
---|
122 | ../x11include/7.0/X11 \
|
---|
123 | ../x11include/7.0/xorg
|
---|
124 | vboxvideo_drv_70_SOURCES = \
|
---|
125 | vboxvideo_70.c \
|
---|
126 | vboxutils.c
|
---|
127 | vboxvideo_drv_70_LIBS = \
|
---|
128 | $(VBOX_LIB_VBGL_R3) \
|
---|
129 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
130 |
|
---|
131 | vboxvideo_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
|
---|
132 | vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
|
---|
133 | vboxvideo_drv_71_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
|
---|
134 | vboxvideo_drv_71_LDFLAGS = -s
|
---|
135 | vboxvideo_drv_71_INCS = \
|
---|
136 | ../x11include/7.1 \
|
---|
137 | ../x11include/7.1/X11 \
|
---|
138 | ../x11include/7.1/xorg
|
---|
139 | vboxvideo_drv_71_SOURCES = \
|
---|
140 | vboxvideo_70.c \
|
---|
141 | vboxutils.c
|
---|
142 | vboxvideo_drv_71_LIBS = \
|
---|
143 | $(VBOX_LIB_VBGL_R3) \
|
---|
144 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
145 |
|
---|
146 | vboxvideo_drv_13_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
|
---|
147 | vboxvideo_drv_13_DEFS := $(vboxvideo_drv_70_DEFS)
|
---|
148 | vboxvideo_drv_13_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
|
---|
149 | vboxvideo_drv_13_LDFLAGS = -s
|
---|
150 | vboxvideo_drv_13_INCS = \
|
---|
151 | ../x11include/1.3 \
|
---|
152 | ../x11include/1.3/X11 \
|
---|
153 | ../x11include/1.3/xorg
|
---|
154 | vboxvideo_drv_13_SOURCES = \
|
---|
155 | vboxvideo_13.c \
|
---|
156 | vboxutils.c
|
---|
157 | vboxvideo_drv_13_LIBS = \
|
---|
158 | $(VBOX_LIB_VBGL_R3) \
|
---|
159 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
160 |
|
---|
161 | vboxvideo_drv_14_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
|
---|
162 | vboxvideo_drv_14_DEFS := $(vboxvideo_drv_70_DEFS)
|
---|
163 | vboxvideo_drv_14_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
|
---|
164 | vboxvideo_drv_14_LDFLAGS = -s
|
---|
165 | vboxvideo_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.
|
---|
171 | vboxvideo_drv_14_SOURCES = \
|
---|
172 | vboxvideo_13.c \
|
---|
173 | vboxutils.c
|
---|
174 | vboxvideo_drv_14_LIBS = \
|
---|
175 | $(VBOX_LIB_VBGL_R3) \
|
---|
176 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
177 | endif
|
---|
178 |
|
---|
179 | ifeq ($(BUILD_TARGET),solaris)
|
---|
180 | DLLS = vboxvideo_drv
|
---|
181 |
|
---|
182 | vboxvideo_drv_TEMPLATE = VBOXGUESTR3DLL
|
---|
183 | vboxvideo_drv_DEFS := \
|
---|
184 | XFree86Server IN_MODULE XFree86Module XFree86LOADER \
|
---|
185 | IN_RING3 VBOX XORG_7X RENDER=1
|
---|
186 | vboxvideo_drv_INCS = \
|
---|
187 | ../x11include/7.1 \
|
---|
188 | ../x11include/7.1/X11 \
|
---|
189 | ../x11include/7.1/xorg
|
---|
190 | vboxvideo_drv_SOURCES = \
|
---|
191 | vboxvideo_70.c \
|
---|
192 | vboxutils.c
|
---|
193 | vboxvideo_drv_LIBS = \
|
---|
194 | $(VBOX_LIB_VBGL_R3) \
|
---|
195 | $(VBOX_LIB_IPRT_GUEST_R3)
|
---|
196 | endif
|
---|
197 |
|
---|
198 | include $(PATH_KBUILD)/footer.kmk
|
---|