VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/xgraphics/Makefile@ 1284

Last change on this file since 1284 was 762, checked in by vboxsync, 18 years ago
  • Additions, Config.kmk, Runtime:

o Make the additions build on linux.amd64. All the Ring-0 stuff is

skipped there because of /usr/linux/.config dependencies of the
linux stuff.

o While at it, I've removed the gcc as ld hacks and changed the

linking of the X drivers. The latter is a bit risky of course.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.1 KB
Line 
1#
2# Makefile for the VBox Linux Additions X.org graphics driver.
3#
4
5#
6# Copyright (C) 2006 InnoTek Systemberatung GmbH
7#
8# This file is part of VirtualBox Open Source Edition (OSE), as
9# available from http://www.virtualbox.org. This file is free software;
10# you can redistribute it and/or modify it under the terms of the GNU
11# General Public License as published by the Free Software Foundation,
12# in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
13# distribution. VirtualBox OSE is distributed in the hope that it will
14# be useful, but WITHOUT ANY WARRANTY of any kind.
15#
16# If you received this file as part of a commercial VirtualBox
17# distribution, then only the terms of your commercial VirtualBox
18# license agreement apply instead of the previous paragraph.
19#
20
21DEPTH = ../../../../..
22include $(PATH_KBUILD)/header.kmk
23
24SYSMODS = vboxvideo_drv
25DLLS = vboxvideo_drv_70 vboxvideo_drv_71
26
27
28vboxvideo_drv_TEMPLATE = VBOXLNX32GUESTR3EXE
29vboxvideo_drv_SYSSUFF = .o
30vboxvideo_drv_DEFS = \
31 linux __i386__ _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
32 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
33 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
34 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
35 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
36 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
37 IN_MODULE XFree86Module \
38 IN_RING3 VBOX
39vboxvideo_drv_CFLAGS.linux := \
40 -fno-merge-constants -Wno-conversion -Wno-unused-parameter \
41 $(VBOX_GCC_Wno-variadic-macros)
42vboxvideo_drv_LDFLAGS.release = -S
43ARGB_CURSORS=1
44ifdef ARGB_CURSORS
45vboxvideo_drv_INCS = \
46 ../x11include/4.3/include \
47 ../x11include/4.3/include/extensions \
48 ../x11include/4.3/include/fonts \
49 ../x11include/4.3/programs/Xserver/afb \
50 ../x11include/4.3/programs/Xserver/include \
51 ../x11include/4.3/programs/Xserver/fb \
52 ../x11include/4.3/programs/Xserver/hw/xfree86 \
53 ../x11include/4.3/programs/Xserver/hw/xfree86/common \
54 ../x11include/4.3/programs/Xserver/hw/xfree86/ddc \
55 ../x11include/4.3/programs/Xserver/hw/xfree86/int10 \
56 ../x11include/4.3/programs/Xserver/hw/xfree86/i2c \
57 ../x11include/4.3/programs/Xserver/hw/xfree86/os-support \
58 ../x11include/4.3/programs/Xserver/hw/xfree86/vbe \
59 ../x11include/4.3/programs/Xserver/hw/xfree86/os-support/bus \
60 ../x11include/4.3/programs/Xserver/hw/xfree86/rac \
61 ../x11include/4.3/programs/Xserver/hw/xfree86/ramdac \
62 ../x11include/4.3/programs/Xserver/hw/xfree86/shadowfb \
63 ../x11include/4.3/programs/Xserver/hw/xfree86/vgahw \
64 ../x11include/4.3/programs/Xserver/hw/xfree86/xf1bpp \
65 ../x11include/4.3/programs/Xserver/hw/xfree86/xf24_32bpp \
66 ../x11include/4.3/programs/Xserver/hw/xfree86/xf4bpp \
67 ../x11include/4.3/programs/Xserver/mfb \
68 ../x11include/4.3/programs/Xserver/mi \
69 ../x11include/4.3/programs/Xserver/miext/shadow \
70 ../x11include/4.3/programs/Xserver/render \
71 ../x11include/4.3/programs/Xserver/Xext
72else
73vboxvideo_drv_INCS = \
74 ../x11include/4.2/exports/include/X11 \
75 ../x11include/4.2/include \
76 ../x11include/4.2/include/extensions \
77 ../x11include/4.2/include/fonts \
78 ../x11include/4.2/programs/Xserver/afb \
79 ../x11include/4.2/programs/Xserver/include \
80 ../x11include/4.2/programs/Xserver/fb \
81 ../x11include/4.2/programs/Xserver/hw/xfree86/common \
82 ../x11include/4.2/programs/Xserver/hw/xfree86/ddc \
83 ../x11include/4.2/programs/Xserver/hw/xfree86/int10 \
84 ../x11include/4.2/programs/Xserver/hw/xfree86/i2c \
85 ../x11include/4.2/programs/Xserver/hw/xfree86/os-support \
86 ../x11include/4.2/programs/Xserver/hw/xfree86/os-support/bus \
87 ../x11include/4.2/programs/Xserver/hw/xfree86/os-support/vbe \
88 ../x11include/4.2/programs/Xserver/hw/xfree86/rac \
89 ../x11include/4.2/programs/Xserver/hw/xfree86/ramdac \
90 ../x11include/4.2/programs/Xserver/hw/xfree86/shadowfb \
91 ../x11include/4.2/programs/Xserver/hw/xfree86/vgahw \
92 ../x11include/4.2/programs/Xserver/hw/xfree86/xf1bpp \
93 ../x11include/4.2/programs/Xserver/hw/xfree86/xf24_32bpp \
94 ../x11include/4.2/programs/Xserver/hw/xfree86/xf4bpp \
95 ../x11include/4.2/programs/Xserver/mfb \
96 ../x11include/4.2/programs/Xserver/mi \
97 ../x11include/4.2/programs/Xserver/miext/shadow \
98 ../x11include/4.2/programs/Xserver/render \
99 ../x11include/4.2/programs/Xserver/Xext
100endif
101vboxvideo_drv_SOURCES = \
102 vboxvideo.c \
103 vboxutils.c
104
105
106vboxvideo_drv_70_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
107vboxvideo_drv_70_DEFS := \
108 XFree86Server IN_MODULE XFree86Module XFree86LOADER \
109 IN_RING3 VBOX XORG_7X PIC RENDER=1
110vboxvideo_drv_70_CFLAGS.linux := \
111 -Wno-conversion -Wno-unused-parameter \
112 $(VBOX_GCC_Wno-variadic-macros)
113vboxvideo_drv_70_LDFLAGS = -s
114vboxvideo_drv_70_INCS = \
115 ../x11include/7.0 \
116 ../x11include/7.0/X11 \
117 ../x11include/7.0/xorg
118vboxvideo_drv_70_SOURCES = \
119 $(vboxvideo_drv_SOURCES)
120
121
122vboxvideo_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
123vboxvideo_drv_71_DEFS := $(vboxvideo_drv_70_DEFS)
124vboxvideo_drv_71_CFLAGS.linux := $(vboxvideo_drv_70_CFLAGS.linux)
125vboxvideo_drv_71_LDFLAGS = -s
126vboxvideo_drv_71_INCS = \
127 ../x11include/7.1 \
128 ../x11include/7.1/X11 \
129 ../x11include/7.1/xorg
130vboxvideo_drv_71_SOURCES = \
131 $(vboxvideo_drv_SOURCES)
132
133
134include $(PATH_KBUILD)/footer.kmk
135
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