1 | #
|
---|
2 | # rdesktop: A Remote Desktop Protocol client
|
---|
3 | # Makefile.in
|
---|
4 | # Copyright (C) Matthew Chapman 1999-2007
|
---|
5 | #
|
---|
6 |
|
---|
7 | prefix = @prefix@
|
---|
8 | exec_prefix = @exec_prefix@
|
---|
9 | bindir = @bindir@
|
---|
10 | mandir = @mandir@
|
---|
11 | datarootdir = @datarootdir@
|
---|
12 | datadir = @datadir@
|
---|
13 |
|
---|
14 | VERSION = @PACKAGE_VERSION@
|
---|
15 | KEYMAP_PATH = $(datadir)/rdesktop/keymaps/
|
---|
16 |
|
---|
17 | CC = @CC@
|
---|
18 | INSTALL = @INSTALL@
|
---|
19 | CFLAGS = @CFLAGS@ @X_CFLAGS@ @DEFS@ -Iinclude -DKEYMAP_PATH=\"$(KEYMAP_PATH)\" -DWITH_RDPUSB=1 -DRDESKTOP -DVBOX -DIN_RING3 -DRT_OS_LINUX -DLOG_DISABLED -DRTLOG_REL_DISABLED -DVBOX_USB_WITH_SYSFS
|
---|
20 | CXXFLAGS = @CXXFLAGS@ @DEFS@ -Iinclude -DKEYMAP_PATH=\"$(KEYMAP_PATH)\" -DWITH_RDPUSB=1 -DRDESKTOP -DVBOX -DIN_RING3 -DRT_OS_LINUX -DLOG_DISABLED -DRTLOG_REL_DISABLED -DVBOX_USB_WITH_SYSFS
|
---|
21 | LDFLAGS = @LDFLAGS@ @LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ -lpthread -ldl
|
---|
22 | STRIP = @STRIP@
|
---|
23 |
|
---|
24 | TARGETS = rdesktop @RDP2VNCTARGET@
|
---|
25 | VNCINC = @VNCINC@
|
---|
26 | LDVNC = @LDVNC@
|
---|
27 | VNCLINK = @VNCLINK@
|
---|
28 | SOUNDOBJ = @SOUNDOBJ@
|
---|
29 | SCARDOBJ = @SCARDOBJ@
|
---|
30 | CREDSSPOBJ = @CREDSSPOBJ@
|
---|
31 |
|
---|
32 | RDPOBJ = tcp.o asn.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o rdp5.o channels.o rdpdr.o serial.o printer.o disk.o parallel.o printercache.o mppc.o pstcache.o lspci.o seamless.o ssl.o utils.o Runtime/common/alloc/alloc.o Runtime/common/err/errmsg.o Runtime/common/err/errmsgxpcom.o Runtime/common/err/RTErrConvertFromErrno.o Runtime/common/err/RTErrConvertToErrno.o Runtime/common/misc/sg.o Runtime/common/path/RTPathAppend.o Runtime/common/path/RTPathAppendEx.o Runtime/common/path/RTPathCountComponents.o Runtime/common/path/RTPathFilename.o Runtime/common/path/rtPathRootSpecLen.o Runtime/common/path/RTPathStripFilename.o Runtime/common/path/RTPathStripTrailingSlash.o Runtime/common/path/rtPathVolumeSpecLen.o Runtime/common/string/RTStrCmp.o Runtime/common/string/RTStrNCmp.o Runtime/common/string/RTStrCopy.o Runtime/common/string/RTStrNLen.o Runtime/common/string/straprintf.o Runtime/common/string/stringalloc.o Runtime/common/string/strformat.o Runtime/common/string/strformatrt.o Runtime/common/string/strformattype.o Runtime/common/string/strprintf.o Runtime/common/string/strstrip.o Runtime/common/string/strtonum.o Runtime/common/string/unidata-flags.o Runtime/common/string/unidata-upper.o Runtime/common/string/unidata-lower.o Runtime/common/string/utf-16.o Runtime/common/string/utf-8.o Runtime/common/string/utf-8-case.o Runtime/common/time/timesysalias.o Runtime/generic/pathhost-generic.o Runtime/generic/RTPathAbs-generic.o Runtime/r3/alloc.o Runtime/r3/dir.o Runtime/r3/fileio.o Runtime/r3/fs.o Runtime/r3/linux/sysfs.o Runtime/r3/linux/time-linux.o Runtime/r3/posix/dir-posix.o Runtime/r3/posix/env-posix.o Runtime/r3/posix/fileio-posix.o Runtime/r3/posix/fs2-posix.o Runtime/r3/posix/fs3-posix.o Runtime/r3/posix/path-posix.o Runtime/r3/posix/path2-posix.o Runtime/r3/posix/pipe-posix.o Runtime/r3/posix/thread2-posix.o Runtime/r3/posix/utf8-posix.o Runtime/r3/stream.o vrdp/rdpusb.o vrdp/USBGetDevices.o vrdp/USBLib.o vrdp/linux/USBProxyDevice-linux.o
|
---|
33 | X11OBJ = rdesktop.o xwin.o xkeymap.o ewmhints.o xclip.o cliprdr.o ctrl.o
|
---|
34 | VNCOBJ = vnc/rdp2vnc.o vnc/vnc.o vnc/xkeymap.o vnc/x11stubs.o
|
---|
35 |
|
---|
36 | .PHONY: all
|
---|
37 | all: $(TARGETS)
|
---|
38 |
|
---|
39 | rdesktop: $(X11OBJ) $(SOUNDOBJ) $(RDPOBJ) $(SCARDOBJ) $(CREDSSPOBJ)
|
---|
40 | $(CXX) $(CFLAGS) -o rdesktop $(X11OBJ) $(SOUNDOBJ) $(RDPOBJ) $(SCARDOBJ) $(CREDSSPOBJ) $(LDFLAGS) -lX11
|
---|
41 |
|
---|
42 | rdp2vnc: $(VNCOBJ) $(SOUNDOBJ) $(RDPOBJ) $(SCARDOBJ) $(CREDSSPOBJ)
|
---|
43 | $(VNCLINK) $(CFLAGS) -o rdp2vnc $(VNCOBJ) $(SOUNDOBJ) $(RDPOBJ) $(SCARDOBJ) $(CREDSSPOBJ) $(LDFLAGS) $(LDVNC)
|
---|
44 |
|
---|
45 | vnc/rdp2vnc.o: rdesktop.c
|
---|
46 | $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/rdp2vnc.o -c rdesktop.c
|
---|
47 |
|
---|
48 | vnc/vnc.o: vnc/vnc.c
|
---|
49 | $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/vnc.o -c vnc/vnc.c
|
---|
50 |
|
---|
51 | vnc/xkeymap.o: xkeymap.c
|
---|
52 | $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/xkeymap.o -c xkeymap.c
|
---|
53 |
|
---|
54 | vnc/x11stubs.o: vnc/x11stubs.c
|
---|
55 | $(CC) $(CFLAGS) $(VNCINC) -o vnc/x11stubs.o -c vnc/x11stubs.c
|
---|
56 |
|
---|
57 | .PHONY: install
|
---|
58 | install: installbin installkeymaps installman
|
---|
59 |
|
---|
60 | .PHONY: installbin
|
---|
61 | installbin: rdesktop
|
---|
62 | mkdir -p $(DESTDIR)$(bindir)
|
---|
63 | $(INSTALL) rdesktop $(DESTDIR)$(bindir)
|
---|
64 | $(STRIP) $(DESTDIR)$(bindir)/rdesktop
|
---|
65 | chmod 755 $(DESTDIR)$(bindir)/rdesktop
|
---|
66 |
|
---|
67 | .PHONY: installman
|
---|
68 | installman: doc/rdesktop.1
|
---|
69 | mkdir -p $(DESTDIR)$(mandir)/man1
|
---|
70 | cp doc/rdesktop.1 $(DESTDIR)$(mandir)/man1
|
---|
71 | chmod 644 $(DESTDIR)$(mandir)/man1/rdesktop.1
|
---|
72 |
|
---|
73 | .PHONY: installkeymaps
|
---|
74 | installkeymaps:
|
---|
75 | mkdir -p $(DESTDIR)$(KEYMAP_PATH)
|
---|
76 | # Prevent copying the CVS directory
|
---|
77 | cp keymaps/?? keymaps/??-?? $(DESTDIR)$(KEYMAP_PATH)
|
---|
78 | cp keymaps/common $(DESTDIR)$(KEYMAP_PATH)
|
---|
79 | cp keymaps/modifiers $(DESTDIR)$(KEYMAP_PATH)
|
---|
80 | chmod 644 $(DESTDIR)$(KEYMAP_PATH)/*
|
---|
81 |
|
---|
82 | .PHONY: proto
|
---|
83 | proto:
|
---|
84 | cat proto.head > proto.h
|
---|
85 | cproto -DMAKE_PROTO \
|
---|
86 | bitmap.c cache.c channels.c cliprdr.c disk.c mppc.c ewmhints.c \
|
---|
87 | iso.c licence.c mcs.c orders.c parallel.c printer.c printercache.c \
|
---|
88 | pstcache.c rdesktop.c rdp5.c rdp.c rdpdr.c rdpsnd.c \
|
---|
89 | secure.c serial.c tcp.c xclip.c xkeymap.c xwin.c lspci.c seamless.c \
|
---|
90 | scard.c >> proto.h
|
---|
91 | cat proto.tail >> proto.h
|
---|
92 |
|
---|
93 | .PHONY: clean
|
---|
94 | clean:
|
---|
95 | rm -f *.o *~ vnc/*.o vnc/*~ vrdp/*.o vrdp/*~ vrdp/linux/*.o vrdp/linux/*~ Runtime/common/*/*.o Runtime/common/*/*~ Runtime/generic/*.o Runtime/generic/*~ Runtime/r3/*.o Runtime/r3/*~ Runtime/r3/*/*.o Runtime/r3/*/*~ rdesktop rdp2vnc
|
---|
96 |
|
---|
97 | .PHONY: distclean
|
---|
98 | distclean: clean
|
---|
99 | rm -rf autom4te.cache config.log config.status Makefile rdesktop-$(VERSION).tar.gz
|
---|
100 |
|
---|
101 | .PHONY: dist
|
---|
102 | dist: rdesktop-$(VERSION).tar.gz
|
---|
103 |
|
---|
104 | rdesktop-$(VERSION).tar.gz: Makefile configure
|
---|
105 | mkdir -p /tmp/rdesktop-make-dist-dir
|
---|
106 | ln -sf `pwd` /tmp/rdesktop-make-dist-dir/rdesktop-$(VERSION)
|
---|
107 | (cd /tmp/rdesktop-make-dist-dir; \
|
---|
108 | tar zcvf rdesktop-$(VERSION)/rdesktop-$(VERSION).tar.gz \
|
---|
109 | rdesktop-$(VERSION)/COPYING \
|
---|
110 | rdesktop-$(VERSION)/README \
|
---|
111 | rdesktop-$(VERSION)/configure \
|
---|
112 | rdesktop-$(VERSION)/configure.ac \
|
---|
113 | rdesktop-$(VERSION)/config.sub \
|
---|
114 | rdesktop-$(VERSION)/config.guess \
|
---|
115 | rdesktop-$(VERSION)/bootstrap \
|
---|
116 | rdesktop-$(VERSION)/install-sh \
|
---|
117 | rdesktop-$(VERSION)/Makefile.in \
|
---|
118 | rdesktop-$(VERSION)/rdesktop.spec \
|
---|
119 | rdesktop-$(VERSION)/*.c \
|
---|
120 | rdesktop-$(VERSION)/*.h \
|
---|
121 | rdesktop-$(VERSION)/proto.head \
|
---|
122 | rdesktop-$(VERSION)/proto.tail \
|
---|
123 | rdesktop-$(VERSION)/keymaps/?? \
|
---|
124 | rdesktop-$(VERSION)/keymaps/??-?? \
|
---|
125 | rdesktop-$(VERSION)/keymaps/common \
|
---|
126 | rdesktop-$(VERSION)/keymaps/modifiers \
|
---|
127 | rdesktop-$(VERSION)/keymaps/convert-map \
|
---|
128 | rdesktop-$(VERSION)/doc/HACKING \
|
---|
129 | rdesktop-$(VERSION)/doc/AUTHORS \
|
---|
130 | rdesktop-$(VERSION)/doc/TODO \
|
---|
131 | rdesktop-$(VERSION)/doc/ChangeLog \
|
---|
132 | rdesktop-$(VERSION)/doc/keymapping.txt \
|
---|
133 | rdesktop-$(VERSION)/doc/keymap-names.txt \
|
---|
134 | rdesktop-$(VERSION)/doc/ipv6.txt \
|
---|
135 | rdesktop-$(VERSION)/doc/licensing.txt \
|
---|
136 | rdesktop-$(VERSION)/doc/patches.txt \
|
---|
137 | rdesktop-$(VERSION)/doc/redirection.txt \
|
---|
138 | rdesktop-$(VERSION)/doc/rdesktop.1 )
|
---|
139 | rm -rf /tmp/rdesktop-make-dist-dir
|
---|
140 |
|
---|
141 | .PHONY: dist-noversion
|
---|
142 | dist-noversion: rdesktop.tar.gz
|
---|
143 |
|
---|
144 | rdesktop.tar.gz: rdesktop-$(VERSION).tar.gz
|
---|
145 | mkdir -p /tmp/rdesktop-make-dist-dir
|
---|
146 | tar zxvf $< -C /tmp/rdesktop-make-dist-dir
|
---|
147 | mv /tmp/rdesktop-make-dist-dir/rdesktop-$(VERSION) /tmp/rdesktop-make-dist-dir/rdesktop
|
---|
148 | ls /tmp/rdesktop-make-dist-dir/rdesktop
|
---|
149 | tar zcvf $@ -C /tmp/rdesktop-make-dist-dir rdesktop
|
---|
150 | rm -rf /tmp/rdesktop-make-dist-dir
|
---|
151 |
|
---|
152 | Makefile: Makefile.in configure
|
---|
153 | ./config.status
|
---|
154 |
|
---|
155 | configure: configure.ac
|
---|
156 | ./bootstrap
|
---|
157 |
|
---|
158 | .SUFFIXES:
|
---|
159 | .SUFFIXES: .c .cpp .o
|
---|
160 |
|
---|
161 | .c.o:
|
---|
162 | $(CC) $(CFLAGS) -o $@ -c $<
|
---|
163 |
|
---|
164 | .PHONY: doc/AUTHORS
|
---|
165 | doc/AUTHORS:
|
---|
166 | ./genauthors *.c
|
---|