VirtualBox

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

Last change on this file since 17610 was 13795, checked in by vboxsync, 16 years ago

rdesktop/Makefile: VBOX_PATH_RDESKTOP_SRC

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 4.5 KB
Line 
1# $Id: Makefile.kmk 13795 2008-11-04 18:10:38Z vboxsync $
2## @file
3# VBox - rdesktop with VRDP enhancements sub-makefile.
4#
5
6#
7# Copyright (C) 2006-2007 Sun Microsystems, Inc.
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# Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa
18# Clara, CA 95054 USA or visit http://www.sun.com if you need
19# additional information or have any questions.
20#
21
22SUB_DEPTH = ../../../..
23include $(KBUILD_PATH)/subheader.kmk
24
25# Globals
26VBOX_PATH_RDESKTOP_SRC := $(PATH_SUB_CURRENT)
27VBOX_RDESKTOP_SRC_SUBDIR = rdesktop-1.6.0-vrdp
28
29#
30# The rdesktop-vrdp program.
31#
32PROGRAMS += rdesktop-vrdp
33rdesktop-vrdp_TEMPLATE = VBOXR3NPEXE
34rdesktop-vrdp_SDKS = VBOX_OPENSSL
35rdesktop-vrdp_DEFS = \
36 PACKAGE_NAME=\"rdesktop-vrdp\" PACKAGE_TARNAME=\"rdesktop-vrdp\" PACKAGE_VERSION=\"1.6.0\" \
37 PACKAGE_STRING=\"rdesktop\ 1.6.0\" PACKAGE_BUGREPORT=\"\" STDC_HEADERS=1 L_ENDIAN=1 \
38 HAVE_SYS_TYPES_H=1 HAVE_SYS_STAT_H=1 HAVE_STDLIB_H=1 HAVE_STRING_H=1 HAVE_MEMORY_H=1 \
39 HAVE_STRINGS_H=1 HAVE_INTTYPES_H=1 HAVE_STDINT_H=1 HAVE_UNISTD_H=1 HAVE_SYS_SELECT_H=1 \
40 HAVE_LOCALE_H=1 HAVE_LANGINFO_H=1 HAVE_ICONV_H=1 \
41 EGD_SOCKET=\"/var/run/egd-pool\" WITH_RDPSND=1 HAVE_DIRENT_H=1 \
42 HAVE_ICONV=1 HAVE_SYS_VFS_H=1 HAVE_SYS_STATVFS_H=1 HAVE_SYS_STATFS_H=1 \
43 HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \
44 KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(DEFS)),RTPATH_APP_PRIVATE,\"/opt/VirtualBox-$(VBOX_VERSION_STRING)\")\"/rdesktop-vrdp-keymaps\" \
45 RDESKTOP=1
46
47rdesktop-vrdp_DEFS.linux = \
48 HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 STAT_STATVFS=1 HAVE_STRUCT_STATFS_F_NAMELEN=1 \
49 ICONV_CONST= RDPSND_OSS=1 WITH_RDPUSB=1
50# Solaris 10 doesn't have dirfd(), and as thus we go for the low tech solution.
51rdesktop-vrdp_DEFS.linux += \
52 HAVE_DIRFD=1 HAVE_DECL_DIRFD=1
53ifdef VBOX_WITHOUT_LINUX_COMPILER_H
54 rdesktop-vrdp_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
55endif
56# @todo once rdp proxy is available on Solaris, add WITH_RDPUSB=1
57rdesktop-vrdp_DEFS.solaris = \
58 HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 HAVE_ICONV_H=1 ICONV_CONST=const STAT_STATVFS64=1 _FILE_OFFSET_BITS=64 \
59 DIR_FD_MEMBER_NAME=dd_fd
60
61rdesktop-vrdp_SOURCES = \
62 tcp.c \
63 iso.c \
64 mcs.c \
65 secure.c \
66 licence.c \
67 rdp.c \
68 orders.c \
69 bitmap.c \
70 cache.c \
71 rdp5.c \
72 channels.c \
73 rdpdr.c \
74 serial.c \
75 printer.c \
76 disk.c \
77 parallel.c \
78 printercache.c \
79 mppc.c \
80 pstcache.c \
81 lspci.c \
82 seamless.c \
83 ssl.c \
84 rdesktop.c \
85 xwin.c \
86 xkeymap.c \
87 ewmhints.c \
88 xclip.c \
89 cliprdr.c \
90 rdpsnd.c \
91 rdpsnd_dsp.c
92rdesktop-vrdp_SOURCES.linux = \
93 rdpsnd_oss.c \
94 vrdp/rdpusb.c \
95 vrdp/USBProxyDevice-linux.c
96# @todo implement usb proxy for Solaris
97rdesktop-vrdp_SOURCES.solaris = \
98 rdpsnd_sun.c
99rdesktop-vrdp_LIBPATH = \
100 /usr/lib \
101 $(VBOX_LIBPATH_X11)
102rdesktop-vrdp_LIBS = \
103 X11
104rdesktop-vrdp_LIBS.solaris = \
105 nsl
106
107#
108# The keymaps.
109#
110INSTALLS += rdesktop-vrdp-keymaps
111rdesktop-vrdp-keymaps_INST = $(INST_BIN)rdesktop-vrdp-keymaps/
112rdesktop-vrdp-keymaps_MODE = 644
113rdesktop-vrdp-keymaps_SOURCES = $(wildcard $(VBOX_PATH_RDESKTOP_SRC)/keymaps/*)
114
115
116#
117# The source tarball (further down).
118#
119## @todo change this to an INSTALLS target.
120OTHERS += $(PATH_BIN)/rdesktop-vrdp.tar.gz
121OTHER_CLEAN += $(OTHERS) $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR)
122
123
124include $(KBUILD_PATH)/subfooter.kmk
125
126rdesktop-vrdp_TARSOURCES = \
127 COPYING \
128 README \
129 configure \
130 configure.ac \
131 config.sub \
132 config.guess \
133 bootstrap \
134 install-sh \
135 Makefile.in \
136 proto.head \
137 proto.tail \
138 rdesktop.spec \
139 *.c \
140 *.h \
141 keymaps/?? \
142 keymaps/??-?? \
143 keymaps/common \
144 keymaps/modifiers \
145 keymaps/convert-map \
146 doc/HACKING \
147 doc/AUTHORS \
148 doc/TODO \
149 doc/ChangeLog \
150 doc/keymapping.txt \
151 doc/keymap-names.txt \
152 doc/ipv6.txt \
153 doc/licensing.txt \
154 doc/patches.txt \
155 doc/redirection.txt \
156 doc/rdesktop.1 \
157 vrdp/*.c \
158 vrdp/*.h
159
160$(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR):
161 $(MKDIR) -p $(@D)
162 $(LN_SYMLINK) $(abspath $(VBOX_PATH_RDESKTOP_SRC)) $@
163
164$(PATH_BIN)/rdesktop-vrdp.tar.gz: \
165 $(addprefix $(PATH_ROOT)/src/VBox/RDP/client/,$(rdesktop-vrdp_TARSOURCES)) \
166 | $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR)
167 $(call MSG_TOOL,tar/gzip,,$@)
168 $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(VBOX_RDESKTOP_SRC_SUBDIR)/,$(rdesktop-vrdp_TARSOURCES)) | gzip - > $@
169
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