1 | # $Id: Makefile.kmk 6459 2008-01-23 06:30:01Z 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 | if1of ($(BUILD_TARGET),linux l4)
|
---|
22 | ifneq ($(USERNAME),bird) # crap
|
---|
23 | PROGRAMS = vboxadd-xclient
|
---|
24 | endif
|
---|
25 |
|
---|
26 | OTHER_CLEAN = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
|
---|
27 |
|
---|
28 | vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
|
---|
29 | vboxadd-xclient_SOURCES = clipboard.cpp main.cpp
|
---|
30 | vboxadd-xclient_DEFS += VBOX_X11_CLIPBOARD
|
---|
31 |
|
---|
32 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
33 | vboxadd-xclient_SOURCES += \
|
---|
34 | seamless-host.cpp \
|
---|
35 | seamless-x11.cpp \
|
---|
36 | thread.cpp
|
---|
37 | endif
|
---|
38 | vboxadd-xclient_LIBPATH = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
|
---|
39 | # Ugly recursive dependency between the runtime and the guest library. Sorry.
|
---|
40 | vboxadd-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
|
---|
49 | vboxadd-xclient_DEFS += _GNU_SOURCE VBOX_HGCM
|
---|
50 |
|
---|
51 | ifdef VBOX_X11_SEAMLESS_GUEST
|
---|
52 | vboxadd-xclient_DEFS += SEAMLESS_X11
|
---|
53 | endif
|
---|
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 |
|
---|
62 | ifdef VBOX_X11_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
|
---|
80 | endif
|
---|
81 | endif # target linux l4
|
---|
82 |
|
---|
83 | ifeq ($(BUILD_TARGET),solaris)
|
---|
84 | PROGRAMS = VBoxClient
|
---|
85 |
|
---|
86 | VBoxClient_TEMPLATE = VBOXGUESTR3EXE
|
---|
87 | VBoxClient_DEFS += VBOX_X11_CLIPBOARD VBOX_HGCM
|
---|
88 | VBoxClient_SOURCES = \
|
---|
89 | clipboard-new.cpp \
|
---|
90 | main.cpp
|
---|
91 | VBoxClient_LIBS = \
|
---|
92 | $(VBOX_LIB_VBGL_R3) \
|
---|
93 | $(VBOX_LIB_IPRT_GUEST_R3) \
|
---|
94 | X11 \
|
---|
95 | Xt
|
---|
96 | endif # target solaris
|
---|
97 |
|
---|
98 | include $(PATH_KBUILD)/footer.kmk
|
---|