1 | # $Id: Makefile.kmk 5823 2007-11-22 19:22:50Z 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 as published by the Free Software Foundation,
|
---|
13 | # in version 2 as it comes in the "COPYING" file of the VirtualBox OSE
|
---|
14 | # distribution. VirtualBox OSE is distributed in the hope that it will
|
---|
15 | # be useful, but WITHOUT ANY WARRANTY of any kind.
|
---|
16 |
|
---|
17 | DEPTH = ../../../../..
|
---|
18 | include $(PATH_KBUILD)/header.kmk
|
---|
19 |
|
---|
20 | ifneq ($(USERNAME),bird) # crap
|
---|
21 | PROGRAMS = vboxadd-xclient
|
---|
22 | endif
|
---|
23 |
|
---|
24 | OTHER_CLEAN = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
|
---|
25 |
|
---|
26 | vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
|
---|
27 | vboxadd-xclient_SOURCES = clipboard.cpp main.cpp
|
---|
28 | ifdef LINUX_SEAMLESS_GUEST
|
---|
29 | vboxadd-xclient_SOURCES += \
|
---|
30 | seamless-host.cpp \
|
---|
31 | seamless-x11.cpp
|
---|
32 | endif
|
---|
33 | vboxadd-xclient_LIBPATH = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
|
---|
34 | vboxadd-xclient_LIBS = \
|
---|
35 | $(PATH_LIB)/VBoxGuestR3LibLinux.a \
|
---|
36 | $(PATH_LIB)/RuntimeLnx32GuestR3.a \
|
---|
37 | pthread \
|
---|
38 | rt \
|
---|
39 | Xt \
|
---|
40 | Xext \
|
---|
41 | X11
|
---|
42 | vboxadd-xclient_DEFS = _GNU_SOURCE VBOX_HGCM
|
---|
43 | ifdef LINUX_SEAMLESS_GUEST
|
---|
44 | vboxadd-xclient_DEFS += LINUX_SEAMLESS
|
---|
45 | endif
|
---|
46 |
|
---|
47 | # link agaginst libstdc++.a (http://www.trilithium.com/johan/2005/06/static-libstdc/)
|
---|
48 | $(PATH_TARGET)/vboxadd-xclient/vboxadd-xclient: $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
|
---|
49 |
|
---|
50 | $(PATH_TARGET)/vboxadd-xclient/libstdc++.a:
|
---|
51 | $(call MSG_L1,Forcing static libstdc++)
|
---|
52 | $(QUIET)ln -sf `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ || cp `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
|
---|
53 |
|
---|
54 | include $(PATH_KBUILD)/footer.kmk
|
---|