# # rdesktop: A Remote Desktop Protocol client # Makefile.in # Copyright (C) Matthew Chapman 1999-2007 # prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ mandir = @mandir@ datarootdir = @datarootdir@ datadir = @datadir@ VERSION = @PACKAGE_VERSION@ KEYMAP_PATH = $(datadir)/rdesktop/keymaps/ CC = @CC@ INSTALL = @INSTALL@ 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 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 LDFLAGS = @LDFLAGS@ @LIBS@ @X_LIBS@ @X_EXTRA_LIBS@ -lpthread -ldl STRIP = @STRIP@ TARGETS = rdesktop @RDP2VNCTARGET@ VNCINC = @VNCINC@ LDVNC = @LDVNC@ VNCLINK = @VNCLINK@ SOUNDOBJ = @SOUNDOBJ@ SCARDOBJ = @SCARDOBJ@ CREDSSPOBJ = @CREDSSPOBJ@ 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/symlink-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 X11OBJ = rdesktop.o xwin.o xkeymap.o ewmhints.o xclip.o cliprdr.o ctrl.o VNCOBJ = vnc/rdp2vnc.o vnc/vnc.o vnc/xkeymap.o vnc/x11stubs.o .PHONY: all all: $(TARGETS) rdesktop: $(X11OBJ) $(SOUNDOBJ) $(RDPOBJ) $(SCARDOBJ) $(CREDSSPOBJ) $(CXX) $(CFLAGS) -o rdesktop $(X11OBJ) $(SOUNDOBJ) $(RDPOBJ) $(SCARDOBJ) $(CREDSSPOBJ) $(LDFLAGS) -lX11 rdp2vnc: $(VNCOBJ) $(SOUNDOBJ) $(RDPOBJ) $(SCARDOBJ) $(CREDSSPOBJ) $(VNCLINK) $(CFLAGS) -o rdp2vnc $(VNCOBJ) $(SOUNDOBJ) $(RDPOBJ) $(SCARDOBJ) $(CREDSSPOBJ) $(LDFLAGS) $(LDVNC) vnc/rdp2vnc.o: rdesktop.c $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/rdp2vnc.o -c rdesktop.c vnc/vnc.o: vnc/vnc.c $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/vnc.o -c vnc/vnc.c vnc/xkeymap.o: xkeymap.c $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/xkeymap.o -c xkeymap.c vnc/x11stubs.o: vnc/x11stubs.c $(CC) $(CFLAGS) $(VNCINC) -o vnc/x11stubs.o -c vnc/x11stubs.c .PHONY: install install: installbin installkeymaps installman .PHONY: installbin installbin: rdesktop mkdir -p $(DESTDIR)$(bindir) $(INSTALL) rdesktop $(DESTDIR)$(bindir) $(STRIP) $(DESTDIR)$(bindir)/rdesktop chmod 755 $(DESTDIR)$(bindir)/rdesktop .PHONY: installman installman: doc/rdesktop.1 mkdir -p $(DESTDIR)$(mandir)/man1 cp doc/rdesktop.1 $(DESTDIR)$(mandir)/man1 chmod 644 $(DESTDIR)$(mandir)/man1/rdesktop.1 .PHONY: installkeymaps installkeymaps: mkdir -p $(DESTDIR)$(KEYMAP_PATH) # Prevent copying the CVS directory cp keymaps/?? keymaps/??-?? $(DESTDIR)$(KEYMAP_PATH) cp keymaps/common $(DESTDIR)$(KEYMAP_PATH) cp keymaps/modifiers $(DESTDIR)$(KEYMAP_PATH) chmod 644 $(DESTDIR)$(KEYMAP_PATH)/* .PHONY: proto proto: cat proto.head > proto.h cproto -DMAKE_PROTO \ bitmap.c cache.c channels.c cliprdr.c disk.c mppc.c ewmhints.c \ iso.c licence.c mcs.c orders.c parallel.c printer.c printercache.c \ pstcache.c rdesktop.c rdp5.c rdp.c rdpdr.c rdpsnd.c \ secure.c serial.c tcp.c xclip.c xkeymap.c xwin.c lspci.c seamless.c \ scard.c >> proto.h cat proto.tail >> proto.h .PHONY: clean clean: 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 .PHONY: distclean distclean: clean rm -rf autom4te.cache config.log config.status Makefile rdesktop-$(VERSION).tar.gz .PHONY: dist dist: rdesktop-$(VERSION).tar.gz rdesktop-$(VERSION).tar.gz: Makefile configure mkdir -p /tmp/rdesktop-make-dist-dir ln -sf `pwd` /tmp/rdesktop-make-dist-dir/rdesktop-$(VERSION) (cd /tmp/rdesktop-make-dist-dir; \ tar zcvf rdesktop-$(VERSION)/rdesktop-$(VERSION).tar.gz \ rdesktop-$(VERSION)/COPYING \ rdesktop-$(VERSION)/README \ rdesktop-$(VERSION)/configure \ rdesktop-$(VERSION)/configure.ac \ rdesktop-$(VERSION)/config.sub \ rdesktop-$(VERSION)/config.guess \ rdesktop-$(VERSION)/bootstrap \ rdesktop-$(VERSION)/install-sh \ rdesktop-$(VERSION)/Makefile.in \ rdesktop-$(VERSION)/rdesktop.spec \ rdesktop-$(VERSION)/*.c \ rdesktop-$(VERSION)/*.h \ rdesktop-$(VERSION)/proto.head \ rdesktop-$(VERSION)/proto.tail \ rdesktop-$(VERSION)/keymaps/?? \ rdesktop-$(VERSION)/keymaps/??-?? \ rdesktop-$(VERSION)/keymaps/common \ rdesktop-$(VERSION)/keymaps/modifiers \ rdesktop-$(VERSION)/keymaps/convert-map \ rdesktop-$(VERSION)/doc/HACKING \ rdesktop-$(VERSION)/doc/AUTHORS \ rdesktop-$(VERSION)/doc/TODO \ rdesktop-$(VERSION)/doc/ChangeLog \ rdesktop-$(VERSION)/doc/keymapping.txt \ rdesktop-$(VERSION)/doc/keymap-names.txt \ rdesktop-$(VERSION)/doc/ipv6.txt \ rdesktop-$(VERSION)/doc/licensing.txt \ rdesktop-$(VERSION)/doc/patches.txt \ rdesktop-$(VERSION)/doc/redirection.txt \ rdesktop-$(VERSION)/doc/rdesktop.1 ) rm -rf /tmp/rdesktop-make-dist-dir .PHONY: dist-noversion dist-noversion: rdesktop.tar.gz rdesktop.tar.gz: rdesktop-$(VERSION).tar.gz mkdir -p /tmp/rdesktop-make-dist-dir tar zxvf $< -C /tmp/rdesktop-make-dist-dir mv /tmp/rdesktop-make-dist-dir/rdesktop-$(VERSION) /tmp/rdesktop-make-dist-dir/rdesktop ls /tmp/rdesktop-make-dist-dir/rdesktop tar zcvf $@ -C /tmp/rdesktop-make-dist-dir rdesktop rm -rf /tmp/rdesktop-make-dist-dir Makefile: Makefile.in configure ./config.status configure: configure.ac ./bootstrap .SUFFIXES: .SUFFIXES: .c .cpp .o .c.o: $(CC) $(CFLAGS) -o $@ -c $< .PHONY: doc/AUTHORS doc/AUTHORS: ./genauthors *.c