# $Id: Makefile.kmk 18866 2009-04-10 14:13:10Z vboxsync $ ## @file # VBox - rdesktop with VRDP enhancements sub-makefile. # # # Copyright (C) 2006-2007 Sun Microsystems, Inc. # # This file is part of VirtualBox Open Source Edition (OSE), as # available from http://www.virtualbox.org. This file is free software; # you can redistribute it and/or modify it under the terms of the GNU # General Public License (GPL) as published by the Free Software # Foundation, in version 2 as it comes in the "COPYING" file of the # VirtualBox OSE distribution. VirtualBox OSE is distributed in the # hope that it will be useful, but WITHOUT ANY WARRANTY of any kind. # # Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa # Clara, CA 95054 USA or visit http://www.sun.com if you need # additional information or have any questions. # SUB_DEPTH = ../../../.. include $(KBUILD_PATH)/subheader.kmk # Globals VBOX_PATH_RDESKTOP_SRC := $(PATH_SUB_CURRENT) VBOX_RDESKTOP_SRC_SUBDIR = rdesktop-1.6.0-vrdp # # The rdesktop-vrdp program. # PROGRAMS += rdesktop-vrdp rdesktop-vrdp_TEMPLATE = VBOXR3NPEXE rdesktop-vrdp_SDKS = VBOX_OPENSSL rdesktop-vrdp_DEFS = \ PACKAGE_NAME=\"rdesktop-vrdp\" PACKAGE_TARNAME=\"rdesktop-vrdp\" PACKAGE_VERSION=\"1.6.0\" \ PACKAGE_STRING=\"rdesktop\ 1.6.0\" PACKAGE_BUGREPORT=\"\" STDC_HEADERS=1 L_ENDIAN=1 \ HAVE_SYS_TYPES_H=1 HAVE_SYS_STAT_H=1 HAVE_STDLIB_H=1 HAVE_STRING_H=1 HAVE_MEMORY_H=1 \ HAVE_STRINGS_H=1 HAVE_INTTYPES_H=1 HAVE_STDINT_H=1 HAVE_UNISTD_H=1 HAVE_SYS_SELECT_H=1 \ HAVE_LOCALE_H=1 HAVE_LANGINFO_H=1 HAVE_ICONV_H=1 \ EGD_SOCKET=\"/var/run/egd-pool\" WITH_RDPSND=1 HAVE_DIRENT_H=1 \ HAVE_ICONV=1 HAVE_SYS_VFS_H=1 HAVE_SYS_STATVFS_H=1 HAVE_SYS_STATFS_H=1 \ HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \ KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(DEFS)),RTPATH_APP_PRIVATE,\"/opt/VirtualBox-$(VBOX_VERSION_STRING)\")\"/rdesktop-vrdp-keymaps\" \ RDESKTOP=1 rdesktop-vrdp_DEFS.linux = \ HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 STAT_STATVFS=1 HAVE_STRUCT_STATFS_F_NAMELEN=1 \ ICONV_CONST= RDPSND_OSS=1 WITH_RDPUSB=1 # Solaris 10 doesn't have dirfd(), and as thus we go for the low tech solution. rdesktop-vrdp_DEFS.linux += \ HAVE_DIRFD=1 HAVE_DECL_DIRFD=1 ifdef VBOX_WITH_LINUX_COMPILER_H rdesktop-vrdp_DEFS.linux += VBOX_WITH_LINUX_COMPILER_H endif # @todo once rdp proxy is available on Solaris, add WITH_RDPUSB=1 rdesktop-vrdp_DEFS.solaris = \ HAVE_SYS_FILIO_H=1 RDPSND_SUN=1 HAVE_ICONV_H=1 ICONV_CONST=const STAT_STATVFS64=1 _FILE_OFFSET_BITS=64 \ DIR_FD_MEMBER_NAME=dd_fd rdesktop-vrdp_SOURCES = \ tcp.c \ iso.c \ mcs.c \ secure.c \ licence.c \ rdp.c \ orders.c \ bitmap.c \ cache.c \ rdp5.c \ channels.c \ rdpdr.c \ serial.c \ printer.c \ disk.c \ parallel.c \ printercache.c \ mppc.c \ pstcache.c \ lspci.c \ seamless.c \ ssl.c \ rdesktop.c \ xwin.c \ xkeymap.c \ ewmhints.c \ xclip.c \ cliprdr.c \ rdpsnd.c \ rdpsnd_dsp.c rdesktop-vrdp_SOURCES.linux = \ rdpsnd_oss.c \ vrdp/rdpusb.c \ vrdp/USBProxyDevice-linux.c # @todo implement usb proxy for Solaris rdesktop-vrdp_SOURCES.solaris = \ rdpsnd_sun.c rdesktop-vrdp_LIBPATH = \ /usr/lib \ $(VBOX_LIBPATH_X11) rdesktop-vrdp_LIBS = \ X11 rdesktop-vrdp_LIBS.solaris = \ nsl # # The keymaps. # INSTALLS += rdesktop-vrdp-keymaps rdesktop-vrdp-keymaps_INST = $(INST_BIN)rdesktop-vrdp-keymaps/ rdesktop-vrdp-keymaps_MODE = 644 rdesktop-vrdp-keymaps_SOURCES = $(wildcard $(VBOX_PATH_RDESKTOP_SRC)/keymaps/*) # # The source tarball (further down). # ## @todo change this to an INSTALLS target. OTHERS += $(PATH_BIN)/rdesktop-vrdp.tar.gz OTHER_CLEAN += $(OTHERS) $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR) include $(KBUILD_PATH)/subfooter.kmk rdesktop-vrdp_TARSOURCES = \ COPYING \ README \ configure \ configure.ac \ config.sub \ config.guess \ bootstrap \ install-sh \ Makefile.in \ proto.head \ proto.tail \ rdesktop.spec \ *.c \ *.h \ keymaps/?? \ keymaps/??-?? \ keymaps/common \ keymaps/modifiers \ keymaps/convert-map \ doc/HACKING \ doc/AUTHORS \ doc/TODO \ doc/ChangeLog \ doc/keymapping.txt \ doc/keymap-names.txt \ doc/ipv6.txt \ doc/licensing.txt \ doc/patches.txt \ doc/redirection.txt \ doc/rdesktop.1 \ vrdp/*.c \ vrdp/*.h $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR): $(MKDIR) -p $(@D) $(LN_SYMLINK) $(abspath $(VBOX_PATH_RDESKTOP_SRC)) $@ $(PATH_BIN)/rdesktop-vrdp.tar.gz: \ $(addprefix $(PATH_ROOT)/src/VBox/RDP/client/,$(rdesktop-vrdp_TARSOURCES)) \ | $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR) $(call MSG_TOOL,tar/gzip,,$@) $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(VBOX_RDESKTOP_SRC_SUBDIR)/,$(rdesktop-vrdp_TARSOURCES)) | gzip - > $@