VirtualBox

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

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

re-export x11

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
Line 
1# $Id: Makefile.kmk 6202 2007-12-28 14:02:30Z 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
22PROGRAMS = vboxadd-xclient
23endif
24
25OTHER_CLEAN = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
26
27vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
28vboxadd-xclient_SOURCES = clipboard.cpp main.cpp
29ifdef LINUX_SEAMLESS_GUEST
30vboxadd-xclient_SOURCES += \
31 seamless-host.cpp \
32 seamless-x11.cpp \
33 thread.cpp
34endif
35vboxadd-xclient_LIBPATH = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
36vboxadd-xclient_LIBS = \
37 $(PATH_LIB)/VBoxGuestR3LibLinux.a \
38 $(PATH_LIB)/RuntimeLnx32GuestR3.a \
39 pthread \
40 rt \
41 Xt \
42 Xext \
43 X11
44vboxadd-xclient_DEFS = _GNU_SOURCE VBOX_HGCM
45ifdef LINUX_SEAMLESS_GUEST
46vboxadd-xclient_DEFS += LINUX_SEAMLESS
47endif
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
56ifdef LINUX_SEAMLESS_GUEST
57ifdef 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)
64endif
65endif
66
67include $(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