/[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 120 - (hide annotations)
Thu Sep 12 09:41:28 2002 UTC (21 years, 8 months ago) by astrand
File size: 2358 byte(s)
install target uses install rather than cp. Makes it possible to
install while the rdesktop binary is in use.

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 matty 30 INCLUDES = -I/usr/X11R6/include
12 n-ki 51 LDLIBS = -L/usr/X11R6/lib -lX11 -lXext
13 matty 3
14 matty 30 PREFIX = /usr/local
15     EPREFIX = $(PREFIX)
16     BINDIR = $(EPREFIX)/bin
17 astrand 106 MANDIR = $(PREFIX)/man
18 matthewc 38 SHAREDIR = $(PREFIX)/share/rdesktop
19 matty 30
20 matthewc 38 KEYMAP_PATH = $(SHAREDIR)/keymaps/
21    
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 matty 30 include Makeconf # local configuration
26    
27    
28 matty 10 rdesktop: $(RDPOBJ) $(CRYPTOBJ)
29 matty 30 $(CC) $(CFLAGS) -o rdesktop $(RDPOBJ) $(CRYPTOBJ) $(LDDIRS) $(LDLIBS)
30 matty 10
31 matty 30 Makeconf:
32     ./configure
33    
34 astrand 106 install: installbin installkeymaps installman
35 matty 30
36     installbin: rdesktop
37 astrand 98 mkdir -p $(DESTDIR)/$(BINDIR)
38 astrand 120 install rdesktop $(DESTDIR)/$(BINDIR)
39 astrand 98 strip $(DESTDIR)/$(BINDIR)/rdesktop
40     chmod 755 $(DESTDIR)/$(BINDIR)/rdesktop
41 matty 30
42 astrand 106 installman: doc/rdesktop.1
43     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