VirtualBox

Changeset 10131 in vbox for trunk


Ignore:
Timestamp:
Jul 3, 2008 3:36:30 AM (16 years ago)
Author:
vboxsync
Message:

Converted the RDP tree to sub-makefiles.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/RDP/client/Makefile.kmk

    r9902 r10131  
    11# $Id$
    22## @file
    3 # VBox - rdesktop with VRDP enhancements makefile.
     3# VBox - rdesktop with VRDP enhancements sub-makefile.
    44#
    55
     
    1111#
    1212
    13 DEPTH = ../../../..
    14 include $(KBUILD_PATH)/header.kmk
     13ifdef VBOX_KBUILD_HACKING
     14SUB_DEPTH = ../../../..
     15else
     16SUB_DEPTH = ..
     17DEPTH    ?= ../../../..
     18endif
     19include $(KBUILD_PATH)/subheader.kmk
    1520
    16 SOURCE_DIRECTORY = rdesktop-1.6.0-vrdp
     21# Globals
     22VBOX_PATH_RDESKTOP_SRC := $(PATH_SUB_CURRENT)
     23VBOX_RDESKTOP_SRC_SUBDIR = rdesktop-1.6.0-vrdp
    1724
    18 PROGRAMS = rdesktop-vrdp
    19 OTHERS = $(PATH_BIN)/rdesktop-vrdp.tar.gz
    20 OTHER_CLEAN = $(OTHERS) $(PATH_TARGET)/$(SOURCE_DIRECTORY)
    21 INSTALLS += rdesktop-vrdp-keymaps
    22 
     25#
     26# The rdesktop-vrdp program.
     27#
     28PROGRAMS += rdesktop-vrdp
    2329rdesktop-vrdp_TEMPLATE = VBOXR3NPEXE
    2430# rdesktop-vrdp_SDKS = VBOX_OPENSSL - crap, we don't build everything that's required here. :/
     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 ssldir=\"/usr\" \
     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 ICONV_CONST= 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 STAT_STATVFS=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \
     40        HAVE_STRUCT_STATFS_F_NAMELEN=1 HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 \
     41        KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(DEFS)),RTPATH_APP_PRIVATE,\"/opt/VirtualBox-$(VBOX_VERSION_STRING)\")\"/rdesktop-vrdp-keymaps\" \
     42        RDPSND_OSS=1 WITH_RDPUSB=1 RDESKTOP=1
     43ifdef VBOX_WITHOUT_LINUX_COMPILER_H
     44 rdesktop-vrdp_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
     45endif
    2546rdesktop-vrdp_SOURCES = \
    2647        tcp.c \
     
    5879        vrdp/rdpusb.c \
    5980        vrdp/USBProxyDevice-linux.c
    60 rdesktop-vrdp_DEFS = \
    61         PACKAGE_NAME=\"rdesktop-vrdp\" PACKAGE_TARNAME=\"rdesktop-vrdp\" PACKAGE_VERSION=\"1.6.0\" \
    62         PACKAGE_STRING=\"rdesktop\ 1.6.0\" PACKAGE_BUGREPORT=\"\" STDC_HEADERS=1 L_ENDIAN=1 \
    63         HAVE_SYS_TYPES_H=1 HAVE_SYS_STAT_H=1 HAVE_STDLIB_H=1 HAVE_STRING_H=1 HAVE_MEMORY_H=1 \
    64         HAVE_STRINGS_H=1 HAVE_INTTYPES_H=1 HAVE_STDINT_H=1 HAVE_UNISTD_H=1 HAVE_SYS_SELECT_H=1 \
    65         HAVE_LOCALE_H=1 HAVE_LANGINFO_H=1 HAVE_ICONV_H=1 ssldir=\"/usr\" \
    66         EGD_SOCKET=\"/var/run/egd-pool\" WITH_RDPSND=1 HAVE_DIRENT_H=1 HAVE_DIRFD=1 HAVE_DECL_DIRFD=1 \
    67         HAVE_ICONV=1 ICONV_CONST= HAVE_SYS_VFS_H=1 HAVE_SYS_STATVFS_H=1 HAVE_SYS_STATFS_H=1 \
    68         HAVE_SYS_PARAM_H=1 HAVE_SYS_MOUNT_H=1 STAT_STATVFS=1 HAVE_STRUCT_STATVFS_F_NAMEMAX=1 \
    69         HAVE_STRUCT_STATFS_F_NAMELEN=1 HAVE_MNTENT_H=1 HAVE_SETMNTENT=1 \
    70         KEYMAP_PATH=$(if $(findstring RTPATH_APP_PRIVATE,$(DEFS)),RTPATH_APP_PRIVATE,\"/opt/VirtualBox-$(VBOX_VERSION_STRING)\")\"/rdesktop-vrdp-keymaps\" \
    71         RDPSND_OSS=1 WITH_RDPUSB=1 RDESKTOP=1
    72 ifdef VBOX_WITHOUT_LINUX_COMPILER_H
    73 rdesktop-vrdp_DEFS += VBOX_WITHOUT_LINUX_COMPILER_H
    74 endif
    7581rdesktop-vrdp_LIBPATH = \
    7682        /usr/lib \
     
    8086        crypto
    8187
     88#
     89# The keymaps.
     90#
     91INSTALLS += rdesktop-vrdp-keymaps
    8292rdesktop-vrdp-keymaps_INST    = $(INST_BIN)rdesktop-vrdp-keymaps
    8393rdesktop-vrdp-keymaps_MODE    = 644
    8494rdesktop-vrdp-keymaps_SOURCES = $(wildcard keymaps/*)
    8595
    86 include $(KBUILD_PATH)/footer.kmk
     96
     97#
     98# The source tarball (further down).
     99#
     100## @todo change this to an INSTALLS target.
     101OTHERS += $(PATH_BIN)/rdesktop-vrdp.tar.gz
     102OTHER_CLEAN += $(OTHERS) $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR)
     103
     104
     105include $(KBUILD_PATH)/subfooter.kmk
    87106
    88107rdesktop-vrdp_TARSOURCES = \
    89         COPYING README configure configure.ac config.sub \
    90         config.guess bootstrap install-sh Makefile.in proto.head \
    91         proto.tail rdesktop.spec *.c *.h keymaps/?? keymaps/??-?? \
    92         keymaps/common keymaps/modifiers keymaps/convert-map \
    93         doc/HACKING doc/AUTHORS doc/TODO doc/ChangeLog \
    94         doc/keymapping.txt doc/keymap-names.txt \
    95         doc/ipv6.txt doc/licensing.txt doc/patches.txt \
    96         doc/redirection.txt doc/rdesktop.1 \
    97         vrdp/*.c vrdp/*.h
     108        COPYING \
     109        README \
     110        configure \
     111        configure.ac \
     112        config.sub \
     113        config.guess \
     114        bootstrap \
     115        install-sh \
     116        Makefile.in \
     117        proto.head \
     118        proto.tail \
     119        rdesktop.spec \
     120        *.c \
     121        *.h \
     122        keymaps/?? \
     123        keymaps/??-?? \
     124        keymaps/common \
     125        keymaps/modifiers \
     126        keymaps/convert-map \
     127        doc/HACKING \
     128        doc/AUTHORS \
     129        doc/TODO \
     130        doc/ChangeLog \
     131        doc/keymapping.txt \
     132        doc/keymap-names.txt \
     133        doc/ipv6.txt \
     134        doc/licensing.txt \
     135        doc/patches.txt \
     136        doc/redirection.txt \
     137        doc/rdesktop.1 \
     138        vrdp/*.c \
     139        vrdp/*.h
    98140
    99 $(PATH_TARGET)/$(SOURCE_DIRECTORY):
     141$(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR):
    100142        $(MKDIR) -p $(@D)
    101         $(LN_SYMLINK) $(abspath $(PATH_CURRENT)) $@
     143        $(LN_SYMLINK) $(abspath $(VBOX_PATH_RDESKTOP_SRC)) $@
    102144
    103 $(PATH_BIN)/rdesktop-vrdp.tar.gz: $(rdesktop-vrdp_TARSOURCES) $(PATH_TARGET)/$(SOURCE_DIRECTORY)
     145$(PATH_BIN)/rdesktop-vrdp.tar.gz: \
     146                $(addprefix $(PATH_ROOT)/src/VBox/RDP/client/,$(rdesktop-vrdp_TARSOURCES)) \
     147                | $(PATH_TARGET)/$(VBOX_RDESKTOP_SRC_SUBDIR)
    104148        $(call MSG_TOOL,tar/gzip,,$@)
    105         $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(SOURCE_DIRECTORY)/,$(rdesktop-vrdp_TARSOURCES)) | gzip - > $@
     149        $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(VBOX_RDESKTOP_SRC_SUBDIR)/,$(rdesktop-vrdp_TARSOURCES)) | gzip - > $@
     150
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette