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 |
|
---|
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 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 |
|
---|
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 | ifdef VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
47 | rdesktop-vrdp_DEFS.linux += VBOX_WITHOUT_LINUX_COMPILER_H
|
---|
48 | endif
|
---|
49 | # @todo once rdp proxy is available on Solaris, add WITH_RDPUSB=1
|
---|
50 | rdesktop-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 |
|
---|
53 | rdesktop-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
|
---|
84 | rdesktop-vrdp_SOURCES.linux = \
|
---|
85 | rdpsnd_oss.c \
|
---|
86 | vrdp/rdpusb.c \
|
---|
87 | vrdp/USBProxyDevice-linux.c
|
---|
88 | # @todo implement usb proxy for Solaris
|
---|
89 | rdesktop-vrdp_SOURCES.solaris = \
|
---|
90 | rdpsnd_sun.c
|
---|
91 | rdesktop-vrdp_LIBPATH = \
|
---|
92 | /usr/lib \
|
---|
93 | $(VBOX_LIBPATH_X11)
|
---|
94 | rdesktop-vrdp_LIBS = \
|
---|
95 | X11
|
---|
96 | rdesktop-vrdp_LIBS.solaris = \
|
---|
97 | nsl
|
---|
98 |
|
---|
99 | #
|
---|
100 | # The keymaps.
|
---|
101 | #
|
---|
102 | INSTALLS += rdesktop-vrdp-keymaps
|
---|
103 | rdesktop-vrdp-keymaps_INST = $(INST_BIN)rdesktop-vrdp-keymaps/
|
---|
104 | rdesktop-vrdp-keymaps_MODE = 644
|
---|
105 | rdesktop-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.
|
---|
112 | OTHERS += $(PATH_BIN)/rdesktop-vrdp.tar.gz
|
---|
113 | OTHER_CLEAN += $(OTHERS) $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR)
|
---|
114 |
|
---|
115 |
|
---|
116 | include $(KBUILD_PATH)/subfooter.kmk
|
---|
117 |
|
---|
118 | rdesktop-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 |
|
---|