/[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 125 - (hide annotations)
Sat Sep 14 15:00:11 2002 UTC (21 years, 9 months ago) by astrand
File size: 2524 byte(s)
Applied most of http://bibl4.oru.se/projects/rdesktop/patch19/patches/Makefile.diff, which
makes it possible to compile on for example Solaris without trouble.

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

  ViewVC Help
Powered by ViewVC 1.1.26