1 | # $Id: Makefile.kmk 3134 2007-06-17 20:40:40Z 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 | # If you received this file as part of a commercial VirtualBox
|
---|
18 | # distribution, then only the terms of your commercial VirtualBox
|
---|
19 | # license agreement apply instead of the previous paragraph.
|
---|
20 | #
|
---|
21 | #
|
---|
22 |
|
---|
23 | DEPTH = ../../../../..
|
---|
24 | include $(PATH_KBUILD)/header.kmk
|
---|
25 |
|
---|
26 |
|
---|
27 | ifneq ($(USERNAME),bird) # crap
|
---|
28 | PROGRAMS = vboxadd-xclient
|
---|
29 | endif
|
---|
30 |
|
---|
31 | OTHER_CLEAN = $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
|
---|
32 |
|
---|
33 | vboxadd-xclient_TEMPLATE = VBOXLNX32GUESTR3EXE
|
---|
34 | vboxadd-xclient_SOURCES = clipboard.cpp
|
---|
35 | vboxadd-xclient_LIBPATH = $(PATH_TARGET)/vboxadd-xclient $(VBOX_LIBPATH32_X11)
|
---|
36 | vboxadd-xclient_LIBS = \
|
---|
37 | $(PATH_LIB)/RuntimeLnx32GuestR3.a pthread rt Xt X11
|
---|
38 | vboxadd-xclient_DEFS = _GNU_SOURCE VBOX_HGCM
|
---|
39 |
|
---|
40 | # link agaginst libstdc++.a (http://www.trilithium.com/johan/2005/06/static-libstdc/)
|
---|
41 | $(PATH_TARGET)/vboxadd-xclient/vboxadd-xclient: $(PATH_TARGET)/vboxadd-xclient/libstdc++.a
|
---|
42 |
|
---|
43 | $(PATH_TARGET)/vboxadd-xclient/libstdc++.a:
|
---|
44 | $(call MSG_L1,Forcing static libstdc++)
|
---|
45 | $(QUIET)ln -s `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@ || cp `$(TOOL_$(VBOX_GCC32_TOOL)_CXX) -print-file-name=libstdc++.a` $@
|
---|
46 |
|
---|
47 | include $(PATH_KBUILD)/footer.kmk
|
---|