VirtualBox

source: vbox/trunk/src/VBox/Additions/linux/xmouse/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: 3.9 KB
Line 
1#
2# Makefile for the VBox Linux Additions X.org mouse 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 = vboxmouse_drv
25DLLS = vboxmouse_drv_70 vboxmouse_drv_71
26#LIBRARIES = vboxmouse vboxmouse_so_70 vboxmouse_so_71
27#OTHERS = \
28# $(PATH_BIN)/additions/vboxmouse_drv.o \
29# $(PATH_BIN)/additions/vboxmouse_drv_70.so \
30# $(PATH_BIN)/additions/vboxmouse_drv_71.so
31#OTHER_CLEAN = $(OTHERS)
32
33
34vboxmouse_drv_TEMPLATE = VBOXLNX32GUESTR3EXE
35vboxmouse_drv_DEFS = \
36 linux __i386__ _POSIX_C_SOURCE=199309L _POSIX_SOURCE _XOPEN_SOURCE \
37 _BSD_SOURCE _SVID_SOURCE _GNU_SOURCE SHAPE XINPUT XKB LBX XAPPGROUP \
38 XCSECURITY TOGCUP XF86BIGFONT DPMSExtension PIXPRIV PANORAMIX RENDER \
39 GCCUSESGAS AVOID_GLYPHBLT PIXPRIV SINGLEDEPTH XFreeXDGA XvExtension \
40 XFree86LOADER XFree86Server XF86VIDMODE XvMCExtension SMART_SCHEDULE \
41 BUILDDEBUG X_BYTE_ORDER=X_LITTLE_ENDIAN DNDEBUG FUNCPROTO=15 NARROWPROTO \
42 IN_MODULE XFree86Module PNP_MOUSE \
43 IN_RING3 VBOX
44vboxmouse_drv_CFLAGS = -fno-merge-constants
45vboxmouse_drv_SYSSUFF = .o
46vboxmouse_drv_LDFLAGS.release = -S
47vboxmouse_drv_INCS = \
48 ../x11include/4.2/exports/include/X11 \
49 ../x11include/4.2/include \
50 ../x11include/4.2/include/extensions \
51 ../x11include/4.2/programs/Xserver/include \
52 ../x11include/4.2/programs/Xserver/hw/xfree86 \
53 ../x11include/4.2/programs/Xserver/hw/xfree86/common \
54 ../x11include/4.2/programs/Xserver/hw/xfree86/os-support \
55 ../x11include/4.2/programs/Xserver/hw/xfree86/os-support/bus \
56 ../x11include/4.2/programs/Xserver/mi \
57 $(PATH_ROOT)/include
58vboxmouse_drv_SOURCES = \
59 mouse.c \
60 pnp.c \
61 VBoxUtils.c
62
63
64vboxmouse_drv_70_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
65vboxmouse_drv_70_DEFS = \
66 XFree86Server IN_MODULE XFree86Module XFree86LOADER XINPUT \
67 IN_RING3 VBOX XORG_7X PIC
68vboxmouse_drv_70_LDFLAGS = -s
69vboxmouse_drv_70_INCS = \
70 ../x11include/7.0 \
71 ../x11include/7.0/X11 \
72 ../x11include/7.0/xorg
73vboxmouse_drv_70_SOURCES = \
74 xorg70/mouse.c \
75 xorg70/pnp.c \
76 VBoxUtils.c
77
78
79vboxmouse_drv_71_TEMPLATE = VBOXLNX32GUESTR3DLLNOCPP
80vboxmouse_drv_71_DEFS = $(vboxmouse_drv_70_DEFS)
81vboxmouse_drv_71_LDFLAGS = -s
82vboxmouse_drv_71_INCS = \
83 ../x11include/7.1 \
84 ../x11include/7.1/X11 \
85 ../x11include/7.1/xorg
86vboxmouse_drv_71_SOURCES = \
87 xorg71/mouse.c \
88 xorg71/pnp.c \
89 VBoxUtils.c
90
91
92include $(PATH_KBUILD)/footer.kmk
93
94#$(PATH_BIN)/additions/vboxmouse_drv.o: mouse.c pnp.c VBoxUtils.c
95# $(call MSG_L1,Linking $@)
96# $(QUIET)$(MKDIR) -p $(PATH_BIN)/additions
97# $(QUIET)ld -r -o $@ $(PATH_vboxmouse)/mouse.o $(PATH_vboxmouse)/pnp.o $(PATH_vboxmouse)/VBoxUtils.o
98#
99# This is a DLL...
100#$(PATH_BIN)/additions/vboxmouse_drv_70.so: xorg70/mouse.c xorg70/pnp.c VBoxUtils.c
101# $(call MSG_L1,Linking $@)
102# $(QUIET)$(MKDIR) -p $(PATH_BIN)/additions
103# $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -shared -s -o $@ $(PATH_vboxmouse_drv_70)/xorg70/mouse.o $(PATH_vboxmouse_drv_70)/xorg70/pnp.o $(PATH_vboxmouse_drv_70)/VBoxUtils.o
104#
105#$(PATH_BIN)/additions/vboxmouse_drv_71.so: xorg71/mouse.c xorg71/pnp.c VBoxUtils.c
106# $(call MSG_L1,Linking $@)
107# $(QUIET)$(MKDIR) -p $(PATH_BIN)/additions
108# $(QUIET)$(TOOL_$(VBOX_GCC_TOOL)_CC) -shared -s -o $@ $(PATH_vboxmouse_drv_71)/xorg71/mouse.o $(PATH_vboxmouse_drv_71)/xorg71/pnp.o $(PATH_vboxmouse_drv_71)/VBoxUtils.o
109
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