VirtualBox

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

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

RDP/client: Solaris build fix

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