/[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 298 - (hide annotations)
Thu Jan 30 10:57:38 2003 UTC (21 years, 4 months ago) by matthewc
File size: 2259 byte(s)
Avoid using non-portable += in generated Makeconf.

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 263 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.c
18 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
19 matty 6
20 matthewc 156 include Makeconf # configure-generated
21 matty 30
22    
23 matty 10 rdesktop: $(RDPOBJ) $(CRYPTOBJ)
24 astrand 125 $(CC) $(CFLAGS) -o rdesktop $(RDPOBJ) $(CRYPTOBJ) $(LDFLAGS)
25 matty 10
26 matty 30 Makeconf:
27     ./configure
28    
29 astrand 106 install: installbin installkeymaps installman
30 matty 30
31     installbin: rdesktop
32 matthewc 162 mkdir -p $(DESTDIR)/$(bindir)
33     install rdesktop $(DESTDIR)/$(bindir)
34     strip $(DESTDIR)/$(bindir)/rdesktop
35     chmod 755 $(DESTDIR)/$(bindir)/rdesktop
36 matty 30
37 astrand 106 installman: doc/rdesktop.1
38 matthewc 162 mkdir -p $(DESTDIR)/$(mandir)/man1
39     cp doc/rdesktop.1 $(DESTDIR)/$(mandir)/man1
40     chmod 644 $(DESTDIR)/$(mandir)/man1/rdesktop.1
41 matty 30
42 matthewc 38 installkeymaps:
43 astrand 98 mkdir -p $(DESTDIR)/$(KEYMAP_PATH)
44 astrand 91 # Prevent copying the CVS directory
45 matthewc 247 cp keymaps/?? keymaps/??-?? $(DESTDIR)/$(KEYMAP_PATH)
46 astrand 98 cp keymaps/common $(DESTDIR)/$(KEYMAP_PATH)
47     cp keymaps/modifiers $(DESTDIR)/$(KEYMAP_PATH)
48     chmod 644 $(DESTDIR)/$(KEYMAP_PATH)/*
49 matthewc 38
50 matty 9 proto:
51 matty 14 cproto -DMAKE_PROTO -o proto.h *.c
52 matty 9
53 matty 6 clean:
54 matty 33 rm -f *.o crypto/*.o *~ rdesktop
55 matty 14
56 astrand 95 dist:
57     mkdir -p /tmp/rdesktop-make-dist-dir
58     ln -sf `pwd` /tmp/rdesktop-make-dist-dir/rdesktop
59     (cd /tmp/rdesktop-make-dist-dir; \
60     tar zcvf rdesktop/rdesktop.tgz \
61     rdesktop/COPYING \
62     rdesktop/crypto/README \
63     rdesktop/crypto/*.c \
64     rdesktop/crypto/*.h \
65     rdesktop/*.c \
66     rdesktop/*.h \
67 matthewc 247 rdesktop/keymaps/?? \
68     rdesktop/keymaps/??-?? \
69 astrand 95 rdesktop/keymaps/common \
70     rdesktop/keymaps/modifiers \
71     rdesktop/keymaps/convert-map \
72     rdesktop/doc/HACKING \
73     rdesktop/doc/TODO \
74 astrand 106 rdesktop/doc/keymapping.txt \
75     rdesktop/doc/rdesktop.1 \
76 astrand 95 rdesktop/Makefile \
77     rdesktop/configure \
78 astrand 106 rdesktop/rdesktop.spec)
79 astrand 95 rm -rf /tmp/rdesktop-make-dist-dir
80    
81 matty 14 .SUFFIXES:
82     .SUFFIXES: .c .o
83    
84     .c.o:
85 matthewc 189 $(CC) $(CFLAGS) -o $@ -c $<
86 matty 30

  ViewVC Help
Powered by ViewVC 1.1.26