/[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 162 - (hide annotations)
Sun Sep 15 12:58:42 2002 UTC (21 years, 8 months ago) by matthewc
File size: 2365 byte(s)
Fix references to BINDIR/MANDIR -> bindir/mandir.

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

  ViewVC Help
Powered by ViewVC 1.1.26