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