VirtualBox

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

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

Guest Additions: update for the Linux seamless additions

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 KB
Line 
1# $Id: Makefile.kmk 6290 2008-01-09 10:49:16Z 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
21ifneq ($(USERNAME),bird) # crap
22 PROGRAMS = vboxadd-xclient
23endif
24
25OTHER_CLEAN = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
26
27vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
28vboxadd-xclient_SOURCES = clipboard.cpp main.cpp
29vboxadd-xclient_DEFS += CLIPBOARD_LINUX
30
31ifdef LINUX_SEAMLESS_GUEST
32 vboxadd-xclient_SOURCES += \
33 seamless-host.cpp \
34 seamless-x11.cpp \
35 thread.cpp
36endif
37vboxadd-xclient_LIBPATH = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
38# Ugly recursive dependency between the runtime and the guest library. Sorry.
39vboxadd-xclient_LIBS = \
40 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
41 $(PATH_LIB)/VBoxGuestR3LibLinux.a \
42 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
43 pthread \
44 rt \
45 Xt \
46 Xext \
47 X11
48vboxadd-xclient_DEFS += _GNU_SOURCE VBOX_HGCM
49
50ifdef LINUX_SEAMLESS_GUEST
51 vboxadd-xclient_DEFS += SEAMLESS_LINUX
52endif
53
54# link agaginst libstdc++.a (http://www.trilithium.com/johan/2005/06/static-libstdc/)
55$(PATH_TARGET)/vboxadd-xclient/vboxadd-xclient: $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
56
57$(PATH_TARGET)/vboxadd-xclient/libstdc++.a:
58 $(call MSG_L1,Forcing static libstdc++)
59 $(QUIET)ln -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ || cp `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
60
61ifdef LINUX_SEAMLESS_GUEST
62 ifdef VBOX_WITH_TESTCASES
63 # Additional testcase designed to be run manually, which initiates and starts the Linux
64 # guest client part of the seamless additions in the host, faking seamless events from
65 # the host and writing information about guest events to standard output.
66 PROGRAMS += tstSeamlessX11
67 tstSeamlessX11_TEMPLATE = VBOXR3EXE
68 tstSeamlessX11_SOURCES = \
69 testcase/tstSeamlessX11.cpp \
70 seamless-host.cpp \
71 seamless-x11.cpp \
72 thread.cpp
73 tstSeamlessX11_LIBS = \
74 $(LIB_RUNTIME) \
75 Xext \
76 X11
77 tstSeamlessX11_INST = $(INST_TESTCASE)
78 endif
79endif
80
81include $(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