/[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 189 - (hide annotations)
Tue Sep 24 07:27:43 2002 UTC (21 years, 8 months ago) by matthewc
File size: 2293 byte(s)
Look for system OpenSSL in the usual places; if not found recommend installing.

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

  ViewVC Help
Powered by ViewVC 1.1.26