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 |
|
---|
18 | DEPTH = ../../../../..
|
---|
19 | include $(PATH_KBUILD)/header.kmk
|
---|
20 |
|
---|
21 | ifneq ($(USERNAME),bird) # crap
|
---|
22 | PROGRAMS = vboxadd-xclient
|
---|
23 | endif
|
---|
24 |
|
---|
25 | OTHER_CLEAN = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
|
---|
26 |
|
---|
27 | vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
|
---|
28 | vboxadd-xclient_SOURCES = clipboard.cpp main.cpp
|
---|
29 | vboxadd-xclient_DEFS += CLIPBOARD_LINUX
|
---|
30 |
|
---|
31 | ifdef LINUX_SEAMLESS_GUEST
|
---|
32 | vboxadd-xclient_SOURCES += \
|
---|
33 | seamless-host.cpp \
|
---|
34 | seamless-x11.cpp \
|
---|
35 | thread.cpp
|
---|
36 | endif
|
---|
37 | vboxadd-xclient_LIBPATH = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
|
---|
38 | # Ugly recursive dependency between the runtime and the guest library. Sorry.
|
---|
39 | vboxadd-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
|
---|
48 | vboxadd-xclient_DEFS += _GNU_SOURCE VBOX_HGCM
|
---|
49 |
|
---|
50 | ifdef LINUX_SEAMLESS_GUEST
|
---|
51 | vboxadd-xclient_DEFS += SEAMLESS_LINUX
|
---|
52 | endif
|
---|
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 |
|
---|
61 | ifdef 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
|
---|
79 | endif
|
---|
80 |
|
---|
81 | include $(PATH_KBUILD)/footer.kmk
|
---|