1 | # $Id: Makefile.kmk 5999 2007-12-07 15:05:06Z 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 | ifdef LINUX_SEAMLESS_GUEST
|
---|
30 | vboxadd-xclient_SOURCES += \
|
---|
31 | seamless-host.cpp \
|
---|
32 | seamless-x11.cpp \
|
---|
33 | thread.cpp
|
---|
34 | endif
|
---|
35 | vboxadd-xclient_LIBPATH = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
|
---|
36 | vboxadd-xclient_LIBS = \
|
---|
37 | $(PATH_LIB)/VBoxGuestR3LibLinux.a \
|
---|
38 | $(PATH_LIB)/RuntimeLnx32GuestR3.a \
|
---|
39 | pthread \
|
---|
40 | rt \
|
---|
41 | Xt \
|
---|
42 | Xext \
|
---|
43 | X11
|
---|
44 | vboxadd-xclient_DEFS = _GNU_SOURCE VBOX_HGCM
|
---|
45 | ifdef LINUX_SEAMLESS_GUEST
|
---|
46 | vboxadd-xclient_DEFS += LINUX_SEAMLESS
|
---|
47 | endif
|
---|
48 |
|
---|
49 | # link agaginst libstdc++.a (http://www.trilithium.com/johan/2005/06/static-libstdc/)
|
---|
50 | $(PATH_TARGET)/vboxadd-xclient/vboxadd-xclient: $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
|
---|
51 |
|
---|
52 | $(PATH_TARGET)/vboxadd-xclient/libstdc++.a:
|
---|
53 | $(call MSG_L1,Forcing static libstdc++)
|
---|
54 | $(QUIET)ln -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ || cp `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
|
---|
55 |
|
---|
56 | ifdef LINUX_SEAMLESS_GUEST
|
---|
57 | ifdef VBOX_WITH_CPPUNIT_TESTCASES
|
---|
58 | PROGRAMS += tstSeamlessX11
|
---|
59 | tstSeamlessX11_TEMPLATE = VBOXCPPUNITEXE
|
---|
60 | tstSeamlessX11_SOURCES = \
|
---|
61 | testcase/tstSeamlessX11.cpp \
|
---|
62 | seamless-x11.cpp
|
---|
63 | tstSeamlessX11_INST = $(INST_TESTCASE)
|
---|
64 | endif
|
---|
65 | endif
|
---|
66 |
|
---|
67 | include $(PATH_KBUILD)/footer.kmk
|
---|