/[rdesktop]/sourceforge.net/trunk/rdesktop/Makefile
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Annotation of /sourceforge.net/trunk/rdesktop/Makefile

Parent Directory Parent Directory | Revision Log Revision Log


Revision 333 - (hide annotations)
Thu Feb 20 12:14:13 2003 UTC (21 years, 3 months ago) by astrand
File size: 2921 byte(s)
Added rdp2vnc support

1 matty 30 #
2     # rdesktop: A Remote Desktop Protocol client
3     # Makefile
4     # Copyright (C) Matthew Chapman 1999-2001
5     #
6 matty 3
7 matty 30 # Configuration defaults
8 matty 10
9 matthewc 156 prefix = /usr/local
10     exec_prefix = $(prefix)
11     bindir = $(exec_prefix)/bin
12     mandir = $(prefix)/man
13     datadir = $(prefix)/share/rdesktop
14 matthewc 38
15 matthewc 156 KEYMAP_PATH = $(datadir)/keymaps/
16 astrand 125
17 astrand 333 RDPOBJ = rdesktop.o tcp.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o xwin.o xkeymap.o ewmhints.o
18     RDP2VNCOBJ = vnc/rdp2vnc.o tcp.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o vnc/vnc.o vnc/xkeymap.o vnc/x11stubs.o
19 matty 32 CRYPTOBJ = crypto/rc4_enc.o crypto/rc4_skey.o crypto/md5_dgst.o crypto/sha1dgst.o crypto/bn_exp.o crypto/bn_mul.o crypto/bn_div.o crypto/bn_sqr.o crypto/bn_add.o crypto/bn_shift.o crypto/bn_asm.o crypto/bn_ctx.o crypto/bn_lib.o
20 matty 6
21 matthewc 156 include Makeconf # configure-generated
22 matty 30
23 astrand 333 all: $(TARGETS)
24 matty 30
25 matty 10 rdesktop: $(RDPOBJ) $(CRYPTOBJ)
26 astrand 333 $(CC) $(CFLAGS) -o rdesktop $(RDPOBJ) $(CRYPTOBJ) $(LDFLAGS) -lX11
27 matty 10
28 astrand 333 rdp2vnc: $(RDP2VNCOBJ) $(CRYPTOBJ)
29     $(CCLD) $(CFLAGS) -o rdp2vnc $(RDP2VNCOBJ) $(CRYPTOBJ) $(LDFLAGS) $(LDVNC)
30    
31     vnc/rdp2vnc.o: rdesktop.c
32     $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/rdp2vnc.o -c rdesktop.c
33    
34     vnc/vnc.o: vnc/vnc.c
35     $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/vnc.o -c vnc/vnc.c
36    
37     vnc/xkeymap.o: xkeymap.c
38     $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/xkeymap.o -c xkeymap.c
39    
40     vnc/x11stubs.o: vnc/x11stubs.c
41     $(CC) $(CFLAGS) $(VNCINC) -o vnc/x11stubs.o -c vnc/x11stubs.c
42    
43 matty 30 Makeconf:
44     ./configure
45    
46 astrand 106 install: installbin installkeymaps installman
47 matty 30
48     installbin: rdesktop
49 matthewc 162 mkdir -p $(DESTDIR)/$(bindir)
50     install rdesktop $(DESTDIR)/$(bindir)
51     strip $(DESTDIR)/$(bindir)/rdesktop
52     chmod 755 $(DESTDIR)/$(bindir)/rdesktop
53 matty 30
54 astrand 106 installman: doc/rdesktop.1
55 matthewc 162 mkdir -p $(DESTDIR)/$(mandir)/man1
56     cp doc/rdesktop.1 $(DESTDIR)/$(mandir)/man1
57     chmod 644 $(DESTDIR)/$(mandir)/man1/rdesktop.1
58 matty 30
59 matthewc 38 installkeymaps:
60 astrand 98 mkdir -p $(DESTDIR)/$(KEYMAP_PATH)
61 astrand 91 # Prevent copying the CVS directory
62 matthewc 247 cp keymaps/?? keymaps/??-?? $(DESTDIR)/$(KEYMAP_PATH)
63 astrand 98 cp keymaps/common $(DESTDIR)/$(KEYMAP_PATH)
64     cp keymaps/modifiers $(DESTDIR)/$(KEYMAP_PATH)
65     chmod 644 $(DESTDIR)/$(KEYMAP_PATH)/*
66 matthewc 38
67 matty 9 proto:
68 matty 14 cproto -DMAKE_PROTO -o proto.h *.c
69 matty 9
70 matty 6 clean:
71 astrand 333 rm -f *.o crypto/*.o *~ vnc/*.o vnc/*~ rdesktop rdp2vnc
72 matty 14
73 astrand 95 dist:
74     mkdir -p /tmp/rdesktop-make-dist-dir
75     ln -sf `pwd` /tmp/rdesktop-make-dist-dir/rdesktop
76     (cd /tmp/rdesktop-make-dist-dir; \
77     tar zcvf rdesktop/rdesktop.tgz \
78     rdesktop/COPYING \
79     rdesktop/crypto/README \
80     rdesktop/crypto/*.c \
81     rdesktop/crypto/*.h \
82     rdesktop/*.c \
83     rdesktop/*.h \
84 matthewc 247 rdesktop/keymaps/?? \
85     rdesktop/keymaps/??-?? \
86 astrand 95 rdesktop/keymaps/common \
87     rdesktop/keymaps/modifiers \
88     rdesktop/keymaps/convert-map \
89     rdesktop/doc/HACKING \
90     rdesktop/doc/TODO \
91 astrand 106 rdesktop/doc/keymapping.txt \
92     rdesktop/doc/rdesktop.1 \
93 astrand 95 rdesktop/Makefile \
94     rdesktop/configure \
95 astrand 106 rdesktop/rdesktop.spec)
96 astrand 95 rm -rf /tmp/rdesktop-make-dist-dir
97    
98 matty 14 .SUFFIXES:
99     .SUFFIXES: .c .o
100    
101     .c.o:
102 matthewc 189 $(CC) $(CFLAGS) -o $@ -c $<
103 matty 30

  ViewVC Help
Powered by ViewVC 1.1.26