VirtualBox

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

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