1 | # $Id: Makefile.kmk 11540 2008-08-21 15:24:59Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # Sub-Makefile for the VBox Additions XFree86 and X.org mouse drivers.
|
---|
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 |
|
---|
22 | ifdef VBOX_KBUILD_HACKING
|
---|
23 | SUB_DEPTH = ../../../../..
|
---|
24 | else
|
---|
25 | DEPTH ?= ../../../../..
|
---|
26 | SUB_DEPTH = ../..
|
---|
27 | endif
|
---|
28 | include $(KBUILD_PATH)/subheader.kmk
|
---|
29 |
|
---|
30 |
|
---|
31 | #
|
---|
32 | # vboxmouse_drv
|
---|
33 | #
|
---|
34 | if1of ($(KBUILD_TARGET), linux)
|
---|
35 | SYSMODS += vboxmouse_drv
|
---|
36 | vboxmouse_drv_TEMPLATE = VBOXGUESTR3XF86MOD
|
---|
37 | vboxmouse_drv_DEFS.linux = linux
|
---|
38 | vboxmouse_drv_DEFS.x86 += __i386__
|
---|
39 | vboxmouse_drv_DEFS += \
|
---|
40 | _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
|
---|
41 | _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
|
---|
42 | XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
|
---|
43 | GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
|
---|
44 | XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
|
---|
45 | BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
|
---|
46 | IN_MODULE XFree86Module PNP_MOUSE
|
---|
47 | vboxmouse_drv_INCS := \
|
---|
48 | $(VBOX_PATH_X11_XFREE_4_2)/exports/include \
|
---|
49 | $(VBOX_PATH_X11_XFREE_4_2)/exports/include/X11 \
|
---|
50 | $(VBOX_PATH_X11_XFREE_4_2)/include \
|
---|
51 | $(VBOX_PATH_X11_XFREE_4_2)/include/extensions \
|
---|
52 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/include \
|
---|
53 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86 \
|
---|
54 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/common \
|
---|
55 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support \
|
---|
56 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/hw/xfree86/os-support/bus \
|
---|
57 | $(VBOX_PATH_X11_XFREE_4_2)/programs/Xserver/mi \
|
---|
58 | $(PATH_SUB_CURRENT)
|
---|
59 | vboxmouse_drv_SOURCES = \
|
---|
60 | mouse.c \
|
---|
61 | pnp.c \
|
---|
62 | VBoxUtils_68.c
|
---|
63 | endif
|
---|
64 |
|
---|
65 |
|
---|
66 | #
|
---|
67 | # vboxmouse_drv_70
|
---|
68 | #
|
---|
69 | DLLS += vboxmouse_drv_70
|
---|
70 | vboxmouse_drv_70_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
71 | vboxmouse_drv_70_DEFS = \
|
---|
72 | XFree86Server IN_MODULE XFree86Module XFree86LOADER XINPUT XORG_7X
|
---|
73 | ifeq ($(KBUILD_TARGET),solaris) # don't use .solaris or anything here.
|
---|
74 | vboxmouse_drv_70_DEFS += _XPG6 __EXTENSIONS__
|
---|
75 | endif
|
---|
76 | vboxmouse_drv_70_INCS := \
|
---|
77 | $(VBOX_PATH_X11_XORG_7_0) \
|
---|
78 | $(VBOX_PATH_X11_XORG_7_0)/X11 \
|
---|
79 | $(VBOX_PATH_X11_XORG_7_0)/xorg \
|
---|
80 | $(PATH_SUB_CURRENT)
|
---|
81 | vboxmouse_drv_70_SOURCES = \
|
---|
82 | xorg70/mouse.c \
|
---|
83 | xorg70/pnp.c \
|
---|
84 | VBoxUtils.c
|
---|
85 |
|
---|
86 |
|
---|
87 | #
|
---|
88 | # vboxmouse_drv_71
|
---|
89 | #
|
---|
90 | DLLS += vboxmouse_drv_71
|
---|
91 | vboxmouse_drv_71_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
92 | vboxmouse_drv_71_DEFS := $(vboxmouse_drv_70_DEFS)
|
---|
93 | vboxmouse_drv_71_INCS := \
|
---|
94 | $(VBOX_PATH_X11_XORG_7_1) \
|
---|
95 | $(VBOX_PATH_X11_XORG_7_1)/X11 \
|
---|
96 | $(VBOX_PATH_X11_XORG_7_1)/xorg \
|
---|
97 | $(PATH_SUB_CURRENT)
|
---|
98 | vboxmouse_drv_71_SOURCES = \
|
---|
99 | xorg71/mouse.c \
|
---|
100 | xorg71/pnp.c \
|
---|
101 | VBoxUtils.c
|
---|
102 |
|
---|
103 |
|
---|
104 | #
|
---|
105 | # vboxmouse_drv_14
|
---|
106 | #
|
---|
107 | DLLS += vboxmouse_drv_14
|
---|
108 | vboxmouse_drv_14_TEMPLATE = VBOXGUESTR3XORGMOD
|
---|
109 | vboxmouse_drv_14_DEFS := $(vboxmouse_drv_70_DEFS) NO_ANSIC
|
---|
110 | vboxmouse_drv_14_INCS := \
|
---|
111 | $(VBOX_PATH_X11_XORG_1_4) \
|
---|
112 | $(VBOX_PATH_X11_XORG_1_4)/X11 \
|
---|
113 | $(VBOX_PATH_X11_XORG_1_4)/xorg \
|
---|
114 | $(PATH_SUB_CURRENT)
|
---|
115 | vboxmouse_drv_14_SOURCES = \
|
---|
116 | xorg14/mouse.c \
|
---|
117 | xorg14/pnp.c \
|
---|
118 | VBoxUtils.c
|
---|
119 |
|
---|
120 |
|
---|
121 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
122 |
|
---|