/[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 432 - (hide annotations)
Tue Jul 1 09:31:25 2003 UTC (20 years, 11 months ago) by matthewc
File size: 2963 byte(s)
Commit of work in progress on channels (so that other people can hack on
RDPSND), in particular:
* channel layer takes care of virtual channel header
* split X dependent parts out of CLIPRDR, simplified IPC implementation
* initial RDPDR implementation

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 matthewc 432 RDPOBJ = tcp.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o rdp5.o channels.o rdpsnd.o rdpdr.o serial.o printer.o
18     X11OBJ = rdesktop.o xwin.o xkeymap.o ewmhints.o xclip.o cliprdr.o
19     VNCOBJ = vnc/rdp2vnc.o vnc/vnc.o vnc/xkeymap.o vnc/x11stubs.o
20 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
21 matty 6
22 matthewc 156 include Makeconf # configure-generated
23 matty 30
24 astrand 333 all: $(TARGETS)
25 matty 30
26 matthewc 432 rdesktop: $(X11OBJ) $(RDPOBJ) $(CRYPTOBJ)
27     $(CC) $(CFLAGS) -o rdesktop $(X11OBJ) $(RDPOBJ) $(CRYPTOBJ) $(LDFLAGS) -lX11
28 matty 10
29 matthewc 432 rdp2vnc: $(VNCOBJ) $(RDPOBJ) $(CRYPTOBJ)
30     $(CCLD) $(CFLAGS) -o rdp2vnc $(VNCOBJ) $(RDPOBJ) $(CRYPTOBJ) $(LDFLAGS) $(LDVNC)
31 astrand 333
32     vnc/rdp2vnc.o: rdesktop.c
33     $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/rdp2vnc.o -c rdesktop.c
34    
35     vnc/vnc.o: vnc/vnc.c
36     $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/vnc.o -c vnc/vnc.c
37    
38     vnc/xkeymap.o: xkeymap.c
39     $(CC) $(CFLAGS) $(VNCINC) -DRDP2VNC -o vnc/xkeymap.o -c xkeymap.c
40    
41     vnc/x11stubs.o: vnc/x11stubs.c
42     $(CC) $(CFLAGS) $(VNCINC) -o vnc/x11stubs.o -c vnc/x11stubs.c
43    
44 matty 30 Makeconf:
45     ./configure
46    
47 astrand 106 install: installbin installkeymaps installman
48 matty 30
49     installbin: rdesktop
50 matthewc 162 mkdir -p $(DESTDIR)/$(bindir)
51     install rdesktop $(DESTDIR)/$(bindir)
52     strip $(DESTDIR)/$(bindir)/rdesktop
53     chmod 755 $(DESTDIR)/$(bindir)/rdesktop
54 matty 30
55 astrand 106 installman: doc/rdesktop.1
56 matthewc 162 mkdir -p $(DESTDIR)/$(mandir)/man1
57     cp doc/rdesktop.1 $(DESTDIR)/$(mandir)/man1
58     chmod 644 $(DESTDIR)/$(mandir)/man1/rdesktop.1
59 matty 30
60 matthewc 38 installkeymaps:
61 astrand 98 mkdir -p $(DESTDIR)/$(KEYMAP_PATH)
62 astrand 91 # Prevent copying the CVS directory
63 matthewc 247 cp keymaps/?? keymaps/??-?? $(DESTDIR)/$(KEYMAP_PATH)
64 astrand 98 cp keymaps/common $(DESTDIR)/$(KEYMAP_PATH)
65     cp keymaps/modifiers $(DESTDIR)/$(KEYMAP_PATH)
66     chmod 644 $(DESTDIR)/$(KEYMAP_PATH)/*
67 matthewc 38
68 matty 9 proto:
69 matty 14 cproto -DMAKE_PROTO -o proto.h *.c
70 matty 9
71 matty 6 clean:
72 astrand 333 rm -f *.o crypto/*.o *~ vnc/*.o vnc/*~ rdesktop rdp2vnc
73 matty 14
74 astrand 95 dist:
75     mkdir -p /tmp/rdesktop-make-dist-dir
76     ln -sf `pwd` /tmp/rdesktop-make-dist-dir/rdesktop
77     (cd /tmp/rdesktop-make-dist-dir; \
78     tar zcvf rdesktop/rdesktop.tgz \
79     rdesktop/COPYING \
80     rdesktop/crypto/README \
81     rdesktop/crypto/*.c \
82     rdesktop/crypto/*.h \
83     rdesktop/*.c \
84     rdesktop/*.h \
85 matthewc 247 rdesktop/keymaps/?? \
86     rdesktop/keymaps/??-?? \
87 astrand 95 rdesktop/keymaps/common \
88     rdesktop/keymaps/modifiers \
89     rdesktop/keymaps/convert-map \
90     rdesktop/doc/HACKING \
91     rdesktop/doc/TODO \
92 astrand 106 rdesktop/doc/keymapping.txt \
93     rdesktop/doc/rdesktop.1 \
94 astrand 95 rdesktop/Makefile \
95     rdesktop/configure \
96 astrand 106 rdesktop/rdesktop.spec)
97 astrand 95 rm -rf /tmp/rdesktop-make-dist-dir
98    
99 matty 14 .SUFFIXES:
100     .SUFFIXES: .c .o
101    
102     .c.o:
103 matthewc 189 $(CC) $(CFLAGS) -o $@ -c $<
104 matty 30

  ViewVC Help
Powered by ViewVC 1.1.26