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 |
|
|
CFLAGS = -O2 |
11 |
|
|
INCLUDES = -I/usr/X11R6/include |
12 |
|
|
LDLIBS = -L/usr/X11R6/lib -lX11 |
13 |
matty |
3 |
|
14 |
matty |
30 |
PREFIX = /usr/local |
15 |
|
|
EPREFIX = $(PREFIX) |
16 |
|
|
BINDIR = $(EPREFIX)/bin |
17 |
|
|
MANDIR = $(PREFIX)/man |
18 |
|
|
|
19 |
|
|
RDPOBJ = rdesktop.o tcp.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o xwin.o |
20 |
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 |
21 |
matty |
6 |
|
22 |
matty |
30 |
include Makeconf # local configuration |
23 |
|
|
|
24 |
|
|
|
25 |
matty |
10 |
rdesktop: $(RDPOBJ) $(CRYPTOBJ) |
26 |
matty |
30 |
$(CC) $(CFLAGS) -o rdesktop $(RDPOBJ) $(CRYPTOBJ) $(LDDIRS) $(LDLIBS) |
27 |
matty |
10 |
|
28 |
matty |
30 |
Makeconf: |
29 |
|
|
./configure |
30 |
|
|
|
31 |
|
|
install: installbin |
32 |
|
|
|
33 |
|
|
installbin: rdesktop |
34 |
|
|
mkdir -p $(BINDIR) |
35 |
|
|
cp rdesktop $(BINDIR) |
36 |
|
|
strip $(BINDIR)/rdesktop |
37 |
|
|
chmod 755 $(BINDIR)/rdesktop |
38 |
|
|
|
39 |
|
|
installman: rdesktop.1 |
40 |
|
|
mkdir -p $(MANDIR)/man1 |
41 |
|
|
cp rdesktop.1 $(MANDIR)/man1 |
42 |
|
|
chmod 755 $(MANDIR)/man1/rdesktop.1 |
43 |
|
|
|
44 |
matty |
9 |
proto: |
45 |
matty |
14 |
cproto -DMAKE_PROTO -o proto.h *.c |
46 |
matty |
9 |
|
47 |
matty |
6 |
clean: |
48 |
matty |
10 |
rm -f *.o crypto/*.o *~ |
49 |
matty |
14 |
|
50 |
|
|
.SUFFIXES: |
51 |
|
|
.SUFFIXES: .c .o |
52 |
|
|
|
53 |
|
|
.c.o: |
54 |
matty |
30 |
$(CC) $(CFLAGS) $(INCLUDES) -o $@ -c $< |
55 |
|
|
|