1 | # $Id: Makefile.kmk 23531 2009-10-03 18:05:57Z 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 |
|
---|
22 | SUB_DEPTH = ../../../..
|
---|
23 | include $(KBUILD_PATH)/subheader.kmk
|
---|
24 |
|
---|
25 | # Globals
|
---|
26 | VBOX_PATH_RDESKTOP_SRC := $(PATH_SUB_CURRENT)
|
---|
27 | VBOX_RDESKTOP_SRC_SUBDIR = rdesktop-1.6.0-vrdp
|
---|
28 |
|
---|
29 | #
|
---|
30 | # The rdesktop-vrdp program.
|
---|
31 | #
|
---|
32 | PROGRAMS += rdesktop-vrdp
|
---|
33 | rdesktop-vrdp_TEMPLATE = VBOXR3NPEXE
|
---|
34 | rdesktop-vrdp_SDKS = VBOX_OPENSSL
|
---|
35 | rdesktop-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_STATVFS_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\")\"/rdesktop-vrdp-keymaps\" \
|
---|
45 | RDESKTOP=1
|
---|
46 |
|
---|
47 | rdesktop-vrdp_DEFS.linux = \
|
---|
48 | HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 STAT_STATVFS=1 HAVE_SYS_VFS_H=1 HAVE_STRUCT_STATFS_F_NAMELEN=1 \
|
---|
49 | ICONV_CONST= RDPSND_OSS=1 WITH_RDPUSB=1 HAVE_SYS_STATFS_H=1
|
---|
50 | # Solaris 10 doesn't have dirfd(), and as thus we go for the low tech solution.
|
---|
51 | rdesktop-vrdp_DEFS.linux += \
|
---|
52 | HAVE_DIRFD=1 HAVE_DECL_DIRFD=1
|
---|
53 | ifdef VBOX_WITH_LINUX_COMPILER_H
|
---|
54 | rdesktop-vrdp_DEFS.linux += VBOX_WITH_LINUX_COMPILER_H
|
---|
55 | endif
|
---|
56 | # @todo once rdp proxy is available on Solaris, add WITH_RDPUSB=1
|
---|
57 | rdesktop-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 HAVE_SYS_VFS_H=1 HAVE_SYS_STATFS_H=1
|
---|
60 | rdesktop-vrdp_DEFS.freebsd = \
|
---|
61 | RDPSND_OSS=1 HAVE_ICONV_H=1 ICONV_CONST=const HAVE_SYS_STATVFS_H=1 _FILE_OFFSET_BITS=64 HAVE_DIRFD=1
|
---|
62 |
|
---|
63 | rdesktop-vrdp_SOURCES = \
|
---|
64 | tcp.c \
|
---|
65 | iso.c \
|
---|
66 | mcs.c \
|
---|
67 | secure.c \
|
---|
68 | licence.c \
|
---|
69 | rdp.c \
|
---|
70 | orders.c \
|
---|
71 | bitmap.c \
|
---|
72 | cache.c \
|
---|
73 | rdp5.c \
|
---|
74 | channels.c \
|
---|
75 | rdpdr.c \
|
---|
76 | serial.c \
|
---|
77 | printer.c \
|
---|
78 | disk.c \
|
---|
79 | parallel.c \
|
---|
80 | printercache.c \
|
---|
81 | mppc.c \
|
---|
82 | pstcache.c \
|
---|
83 | lspci.c \
|
---|
84 | seamless.c \
|
---|
85 | ssl.c \
|
---|
86 | rdesktop.c \
|
---|
87 | xwin.c \
|
---|
88 | xkeymap.c \
|
---|
89 | ewmhints.c \
|
---|
90 | xclip.c \
|
---|
91 | cliprdr.c \
|
---|
92 | rdpsnd.c \
|
---|
93 | rdpsnd_dsp.c
|
---|
94 | rdesktop-vrdp_SOURCES.linux = \
|
---|
95 | rdpsnd_oss.c \
|
---|
96 | vrdp/rdpusb.c \
|
---|
97 | vrdp/USBProxyDevice-linux.c
|
---|
98 | # @todo implement usb proxy for Solaris
|
---|
99 | rdesktop-vrdp_SOURCES.solaris = \
|
---|
100 | rdpsnd_sun.c
|
---|
101 | rdesktop-vrdp_SOURCES.freebsd = \
|
---|
102 | rdpsnd_oss.c
|
---|
103 | rdesktop-vrdp_LIBPATH = \
|
---|
104 | /usr/lib \
|
---|
105 | $(VBOX_LIBPATH_X11)
|
---|
106 | rdesktop-vrdp_LIBS = \
|
---|
107 | X11 \
|
---|
108 | $(LIB_RUNTIME)
|
---|
109 | rdesktop-vrdp_LIBS.solaris = \
|
---|
110 | nsl
|
---|
111 |
|
---|
112 | #
|
---|
113 | # The keymaps.
|
---|
114 | #
|
---|
115 | INSTALLS += rdesktop-vrdp-keymaps
|
---|
116 | rdesktop-vrdp-keymaps_INST = $(INST_BIN)rdesktop-vrdp-keymaps/
|
---|
117 | rdesktop-vrdp-keymaps_MODE = 644
|
---|
118 | rdesktop-vrdp-keymaps_SOURCES = $(wildcard $(VBOX_PATH_RDESKTOP_SRC)/keymaps/*)
|
---|
119 |
|
---|
120 |
|
---|
121 | #
|
---|
122 | # The source tarball (further down).
|
---|
123 | #
|
---|
124 | ## @todo change this to an INSTALLS target.
|
---|
125 | OTHERS += $(PATH_BIN)/rdesktop-vrdp.tar.gz
|
---|
126 | OTHER_CLEAN += $(OTHERS) $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR)
|
---|
127 |
|
---|
128 |
|
---|
129 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
130 |
|
---|
131 | rdesktop-vrdp_TARSOURCES = \
|
---|
132 | COPYING \
|
---|
133 | README \
|
---|
134 | configure \
|
---|
135 | configure.ac \
|
---|
136 | config.sub \
|
---|
137 | config.guess \
|
---|
138 | bootstrap \
|
---|
139 | install-sh \
|
---|
140 | Makefile.in \
|
---|
141 | proto.head \
|
---|
142 | proto.tail \
|
---|
143 | rdesktop.spec \
|
---|
144 | *.c \
|
---|
145 | *.h \
|
---|
146 | keymaps/?? \
|
---|
147 | keymaps/??-?? \
|
---|
148 | keymaps/common \
|
---|
149 | keymaps/modifiers \
|
---|
150 | keymaps/convert-map \
|
---|
151 | doc/HACKING \
|
---|
152 | doc/AUTHORS \
|
---|
153 | doc/TODO \
|
---|
154 | doc/ChangeLog \
|
---|
155 | doc/keymapping.txt \
|
---|
156 | doc/keymap-names.txt \
|
---|
157 | doc/ipv6.txt \
|
---|
158 | doc/licensing.txt \
|
---|
159 | doc/patches.txt \
|
---|
160 | doc/redirection.txt \
|
---|
161 | doc/rdesktop.1 \
|
---|
162 | vrdp/*.c \
|
---|
163 | vrdp/*.h
|
---|
164 |
|
---|
165 | $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR):
|
---|
166 | $(MKDIR) -p $(@D)
|
---|
167 | $(LN_SYMLINK) $(abspath $(VBOX_PATH_RDESKTOP_SRC)) $@
|
---|
168 |
|
---|
169 | $(PATH_BIN)/rdesktop-vrdp.tar.gz: \
|
---|
170 | $(addprefix $(PATH_ROOT)/src/VBox/RDP/client/,$(rdesktop-vrdp_TARSOURCES)) \
|
---|
171 | | $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR)
|
---|
172 | $(call MSG_TOOL,tar/gzip,,$@)
|
---|
173 | $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(VBOX_RDESKTOP_SRC_SUBDIR)/,$(rdesktop-vrdp_TARSOURCES)) | gzip - > $@
|
---|
174 |
|
---|