VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/xclient/Makefile.kmk@ 6356

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

Integrated VbglR3Daemonize in GuestR3Lib. Linux vboxclient now uses it. Renamed LINUX_CLIPBOARD to VBOX_X11_CLIPBOARD. clipboard-new has the clipboard implemetation using R3 lib, currently used only by Solaris. Note: this change affects OS2, linux, solaris so someone should check for build breaks on OS2.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# $Id: Makefile.kmk 6356 2008-01-15 13:27:51Z vboxsync $
2## @file
3# Makefile for the VirtualBox Linux Guest Addition X11 Client.
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)
22ifneq ($(USERNAME),bird) # crap
23 PROGRAMS = vboxadd-xclient
24endif
25
26OTHER_CLEAN = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
27
28vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
29vboxadd-xclient_SOURCES = clipboard.cpp main.cpp
30vboxadd-xclient_DEFS += VBOX_X11_CLIPBOARD
31
32ifdef LINUX_SEAMLESS_GUEST
33 vboxadd-xclient_SOURCES += \
34 seamless-host.cpp \
35 seamless-x11.cpp \
36 thread.cpp
37endif
38vboxadd-xclient_LIBPATH = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
39# Ugly recursive dependency between the runtime and the guest library. Sorry.
40vboxadd-xclient_LIBS = \
41 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
42 $(PATH_LIB)/VBoxGuestR3LibLinux.a \
43 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
44 pthread \
45 rt \
46 Xt \
47 Xext \
48 X11
49vboxadd-xclient_DEFS += _GNU_SOURCE VBOX_HGCM
50
51ifdef LINUX_SEAMLESS_GUEST
52 vboxadd-xclient_DEFS += SEAMLESS_LINUX
53endif
54
55# link agaginst libstdc++.a (http://www.trilithium.com/johan/2005/06/static-libstdc/)
56$(PATH_TARGET)/vboxadd-xclient/vboxadd-xclient: $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
57
58$(PATH_TARGET)/vboxadd-xclient/libstdc++.a:
59 $(call MSG_L1,Forcing static libstdc++)
60 $(QUIET)ln -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ || cp `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
61
62ifdef LINUX_SEAMLESS_GUEST
63 ifdef VBOX_WITH_TESTCASES
64 # Additional testcase designed to be run manually, which initiates and starts the Linux
65 # guest client part of the seamless additions in the host, faking seamless events from
66 # the host and writing information about guest events to standard output.
67 PROGRAMS += tstSeamlessX11
68 tstSeamlessX11_TEMPLATE = VBOXR3EXE
69 tstSeamlessX11_SOURCES = \
70 testcase/tstSeamlessX11.cpp \
71 seamless-host.cpp \
72 seamless-x11.cpp \
73 thread.cpp
74 tstSeamlessX11_LIBS = \
75 $(LIB_RUNTIME) \
76 Xext \
77 X11
78 tstSeamlessX11_INST = $(INST_TESTCASE)
79 endif
80endif
81endif # target linux l4
82
83ifeq ($(BUILD_TARGET),solaris)
84PROGRAMS = VBoxClient
85
86VBoxClient_TEMPLATE = VBOXGUESTR3EXE
87VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_HGCM
88VBoxClient_SOURCES = \
89 clipboard-new.cpp \
90 main.cpp
91VBoxClient_LIBS = \
92 $(VBOX_LIB_VBGL_R3) \
93 $(VBOX_LIB_IPRT_GUEST_R3) \
94 X11 \
95 Xt
96endif # target solaris
97
98include $(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