1 | # $Id: Makefile.kmk 9902 2008-06-25 10:38:37Z vboxsync $
|
---|
2 | ## @file
|
---|
3 | # VBox - rdesktop with VRDP enhancements 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 | DEPTH = ../../../..
|
---|
14 | include $(KBUILD_PATH)/header.kmk
|
---|
15 |
|
---|
16 | SOURCE_DIRECTORY = rdesktop-1.6.0-vrdp
|
---|
17 |
|
---|
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 |
|
---|
23 | rdesktop-vrdp_TEMPLATE = VBOXR3NPEXE
|
---|
24 | # rdesktop-vrdp_SDKS = VBOX_OPENSSL - crap, we don't build everything that's required here. :/
|
---|
25 | rdesktop-vrdp_SOURCES = \
|
---|
26 | tcp.c \
|
---|
27 | iso.c \
|
---|
28 | mcs.c \
|
---|
29 | secure.c \
|
---|
30 | licence.c \
|
---|
31 | rdp.c \
|
---|
32 | orders.c \
|
---|
33 | bitmap.c \
|
---|
34 | cache.c \
|
---|
35 | rdp5.c \
|
---|
36 | channels.c \
|
---|
37 | rdpdr.c \
|
---|
38 | serial.c \
|
---|
39 | printer.c \
|
---|
40 | disk.c \
|
---|
41 | parallel.c \
|
---|
42 | printercache.c \
|
---|
43 | mppc.c \
|
---|
44 | pstcache.c \
|
---|
45 | lspci.c \
|
---|
46 | seamless.c \
|
---|
47 | ssl.c \
|
---|
48 | rdesktop.c \
|
---|
49 | xwin.c \
|
---|
50 | xkeymap.c \
|
---|
51 | ewmhints.c \
|
---|
52 | xclip.c \
|
---|
53 | cliprdr.c \
|
---|
54 | rdpsnd.c \
|
---|
55 | rdpsnd_dsp.c \
|
---|
56 | rdpsnd_oss.c
|
---|
57 | rdesktop-vrdp_SOURCES += \
|
---|
58 | vrdp/rdpusb.c \
|
---|
59 | 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
|
---|
75 | rdesktop-vrdp_LIBPATH = \
|
---|
76 | /usr/lib \
|
---|
77 | $(VBOX_LIBPATH_X11)
|
---|
78 | rdesktop-vrdp_LIBS = \
|
---|
79 | X11 \
|
---|
80 | crypto
|
---|
81 |
|
---|
82 | rdesktop-vrdp-keymaps_INST = $(INST_BIN)rdesktop-vrdp-keymaps
|
---|
83 | rdesktop-vrdp-keymaps_MODE = 644
|
---|
84 | rdesktop-vrdp-keymaps_SOURCES = $(wildcard keymaps/*)
|
---|
85 |
|
---|
86 | include $(KBUILD_PATH)/footer.kmk
|
---|
87 |
|
---|
88 | rdesktop-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
|
---|
98 |
|
---|
99 | $(PATH_TARGET)/$(SOURCE_DIRECTORY):
|
---|
100 | $(MKDIR) -p $(@D)
|
---|
101 | $(LN_SYMLINK) $(abspath $(PATH_CURRENT)) $@
|
---|
102 |
|
---|
103 | $(PATH_BIN)/rdesktop-vrdp.tar.gz: $(rdesktop-vrdp_TARSOURCES) $(PATH_TARGET)/$(SOURCE_DIRECTORY)
|
---|
104 | $(call MSG_TOOL,tar/gzip,,$@)
|
---|
105 | $(QUIET)cd $(PATH_TARGET) && tar -chf - $(addprefix $(SOURCE_DIRECTORY)/,$(rdesktop-vrdp_TARSOURCES)) | gzip - > $@
|
---|