VirtualBox

source: vbox/trunk/src/VBox/RDP/client/Makefile.kmk@ 31621

Last change on this file since 31621 was 31621, checked in by vboxsync, 14 years ago

RDP/client: temporary hack to unbreak incremental builds, fixed

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 5.7 KB
Line 
1# $Id: Makefile.kmk 31621 2010-08-12 20:12:15Z vboxsync $
2## @file
3# VBox - rdesktop with VRDP enhancements sub-makefile.
4#
5
6#
7# Copyright (C) 2006-2007 Oracle Corporation
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
18SUB_DEPTH = ../../../..
19include $(KBUILD_PATH)/subheader.kmk
20
21# Globals
22VBOX_PATH_RDESKTOP_SRC := $(PATH_SUB_CURRENT)
23VBOX_PATH_DEVICES_USB := $(PATH_ROOT)/src/VBox/Devices/USB
24VBOX_RDESKTOP_SRC_SUBDIR = rdesktop-1.6.0-vrdp
25
26#
27# The rdesktop-vrdp program.
28#
29PROGRAMS += rdesktop-vrdp
30rdesktop-vrdp_TEMPLATE = VBOXR3NPEXE
31rdesktop-vrdp_SDKS = VBOX_OPENSSL
32rdesktop-vrdp_DEFS = \
33 PACKAGE_NAME=\"rdesktop-vrdp\" PACKAGE_TARNAME=\"rdesktop-vrdp\" PACKAGE_VERSION=\"1.6.0\" \
34 PACKAGE_STRING=\"rdesktop\ 1.6.0\" PACKAGE_BUGREPORT=\"\" STDC_HEADERS=1 L_ENDIAN=1 \
35 HAVE_SYS_TYPES_H=1 HAVE_SYS_STAT_H=1 HAVE_STDLIB_H=1 HAVE_STRING_H=1 HAVE_MEMORY_H=1 \
36 HAVE_STRINGS_H=1 HAVE_INTTYPES_H=1 HAVE_STDINT_H=1 HAVE_UNISTD_H=1 HAVE_SYS_SELECT_H=1 \
37 HAVE_LOCALE_H=1 HAVE_LANGINFO_H=1 HAVE_ICONV_H=1 \
38 EGD_SOCKET=\"/var/run/egd-pool\" WITH_RDPSND=1 HAVE_DIRENT_H=1 \
39 HAVE_ICONV=1 HAVE_SYS_STATVFS_H=1 \
40 HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \
41 KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(DEFS)),RTPATH_APP_PRIVATE,\"/opt/VirtualBox\")\"/rdesktop-vrdp-keymaps\" \
42 RDESKTOP=1
43
44rdesktop-vrdp_DEFS.linux = \
45 HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 STAT_STATVFS=1 HAVE_SYS_VFS_H=1 HAVE_STRUCT_STATFS_F_NAMELEN=1 \
46 ICONV_CONST= RDPSND_OSS=1 WITH_RDPUSB=1 HAVE_SYS_STATFS_H=1
47# Solaris 10 doesn't have dirfd(), and as thus we go for the low tech solution.
48rdesktop-vrdp_DEFS.linux += \
49 HAVE_DIRFD=1 HAVE_DECL_DIRFD=1
50ifdef VBOX_WITH_LINUX_COMPILER_H
51 rdesktop-vrdp_DEFS.linux += VBOX_WITH_LINUX_COMPILER_H
52endif
53# @todo once rdp proxy is available on Solaris, add WITH_RDPUSB=1
54rdesktop-vrdp_DEFS.solaris = \
55 HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 HAVE_ICONV_H=1 ICONV_CONST=const STAT_STATVFS64=1 _FILE_OFFSET_BITS=64 \
56 DIR_FD_MEMBER_NAME=dd_fd HAVE_SYS_VFS_H=1 HAVE_SYS_STATFS_H=1
57rdesktop-vrdp_DEFS.freebsd = \
58 RDPSND_OSS=1 HAVE_ICONV_H=1 ICONV_CONST=const HAVE_SYS_STATVFS_H=1 _FILE_OFFSET_BITS=64 HAVE_DIRFD=1
59
60rdesktop-vrdp_SOURCES = \
61 tcp.c \
62 iso.c \
63 mcs.c \
64 secure.c \
65 licence.c \
66 rdp.c \
67 orders.c \
68 bitmap.c \
69 cache.c \
70 rdp5.c \
71 channels.c \
72 rdpdr.c \
73 serial.c \
74 printer.c \
75 disk.c \
76 parallel.c \
77 printercache.c \
78 mppc.c \
79 pstcache.c \
80 lspci.c \
81 seamless.c \
82 ssl.c \
83 rdesktop.c \
84 xwin.c \
85 xkeymap.c \
86 ewmhints.c \
87 xclip.c \
88 cliprdr.c \
89 rdpsnd.c \
90 rdpsnd_dsp.c
91rdesktop-vrdp_SOURCES.linux = \
92 rdpsnd_oss.c \
93 vrdp/rdpusb.c \
94 vrdp/USBProxyDevice-linux.c
95rdesktop-vrdp_INCS += \
96 $(VBOX_PATH_RDESKTOP_SRC) \
97 $(VBOX_PATH_RDESKTOP_SRC)/vrdp \
98 $(VBOX_PATH_DEVICES_USB) \
99 $(PATH_ROOT)/include/VBox
100# @todo implement usb proxy for Solaris
101rdesktop-vrdp_SOURCES.solaris = \
102 rdpsnd_sun.c
103rdesktop-vrdp_SOURCES.freebsd = \
104 rdpsnd_oss.c
105rdesktop-vrdp_LIBPATH = \
106 /usr/lib \
107 $(VBOX_LIBPATH_X11)
108rdesktop-vrdp_LIBS = \
109 X11 \
110 $(LIB_RUNTIME)
111rdesktop-vrdp_LIBS.solaris = \
112 nsl
113
114#
115# The keymaps.
116#
117INSTALLS += rdesktop-vrdp-keymaps
118rdesktop-vrdp-keymaps_INST = $(INST_BIN)rdesktop-vrdp-keymaps/
119rdesktop-vrdp-keymaps_MODE = 644
120rdesktop-vrdp-keymaps_SOURCES = $(wildcard $(VBOX_PATH_RDESKTOP_SRC)/keymaps/*)
121
122
123#
124# The source tarball (further down).
125#
126## @todo change this to an INSTALLS target.
127OTHERS += $(PATH_BIN)/rdesktop-vrdp.tar.gz
128OTHER_CLEAN += $(OTHERS)
129
130
131INSTALLS += rdesktop-bin
132rdesktop-bin_INST = obj/$(VBOX_RDESKTOP_SRC_SUBDIR)
133rdesktop-bin_MODE = a+rx,u+w
134rdesktop-bin_SOURCES = \
135 configure \
136 config.sub \
137 config.guess \
138 bootstrap \
139 install-sh
140
141INSTALLS += rdesktop-nonbin
142rdesktop-nonbin_INST = obj/$(VBOX_RDESKTOP_SRC_SUBDIR)
143rdesktop-nonbin_MODE = a+r,u+w
144rdesktop-nonbin_SOURCES = \
145 $(foreach i,COPYING \
146 README \
147 configure.ac \
148 Makefile.in \
149 proto.head \
150 proto.tail \
151 rdesktop.spec \
152 keymaps/common \
153 keymaps/modifiers \
154 keymaps/convert-map \
155 doc/HACKING \
156 doc/AUTHORS \
157 doc/TODO \
158 doc/ChangeLog \
159 doc/keymapping.txt \
160 doc/keymap-names.txt \
161 doc/ipv6.txt \
162 doc/licensing.txt \
163 doc/patches.txt \
164 doc/redirection.txt \
165 doc/rdesktop.1 \
166 vrdp/rdpusb.c \
167 vrdp/runtime.h \
168 vrdp/vrdpusb.h, \
169 $i=>$i) \
170 $(PATH_ROOT)/include/VBox/vusb.h=>vrdp/vusb.h \
171 $(VBOX_PATH_DEVICES_USB)/linux/USBProxyDevice-linux.cpp=>vrdp/USBProxyDevice-linux.c \
172 $(VBOX_PATH_DEVICES_USB)/USBProxyDevice.h=>vrdp/USBProxyDevice.h \
173 $(foreach i,*.c *.h keymaps/?? keymaps/??-??, \
174 $(foreach j,$(wildcard $(VBOX_PATH_RDESKTOP_SRC)/$i), \
175 $(dir $i)$(notdir $j)=>$(dir $i)$(notdir $j)))
176
177
178$(PATH_BIN)/rdesktop-vrdp.tar.gz: \
179 $$(rdesktop-bin_1_TARGET) \
180 $$(rdesktop-nonbin_1_TARGET)
181 $(call MSG_TOOL,tar/gzip,,$@)
182 # Temporary hack to fix incremental builds (will cause one build failure)
183 $(QUIET)rm -f $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR) 2> /dev/null || /bin/true
184 $(QUIET)cd $(PATH_TARGET) && tar -cf - $(VBOX_RDESKTOP_SRC_SUBDIR) | gzip - > $@
185
186
187include $(KBUILD_PATH)/subfooter.kmk
188
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