1 |
matty |
3 |
############################################## |
2 |
|
|
# rdesktop: A Remote Desktop Protocol client # |
3 |
matty |
10 |
# Basic Makefile # |
4 |
matty |
3 |
# Copyright (C) Matthew Chapman 1999-2000 # |
5 |
|
|
############################################## |
6 |
|
|
|
7 |
matty |
10 |
# Uncomment to enable debugging |
8 |
|
|
# DEBUG = -g -DRDP_DEBUG |
9 |
|
|
|
10 |
matty |
6 |
CC = gcc |
11 |
matty |
13 |
CFLAGS = -O2 -Wall $(DEBUG) -I/usr/X11R6/include |
12 |
matty |
28 |
LIBS = -L/usr/X11R6/lib -lX11 -lnsl |
13 |
matty |
3 |
|
14 |
matty |
10 |
RDPOBJ = rdesktop.o tcp.o iso.o mcs.o secure.o licence.o rdp.o orders.o bitmap.o cache.o xwin.o |
15 |
|
|
CRYPTOBJ = crypto/rc4_enc.o crypto/rc4_skey.o crypto/md5_dgst.o crypto/sha1dgst.o crypto/arith.o |
16 |
matty |
6 |
|
17 |
matty |
10 |
rdesktop: $(RDPOBJ) $(CRYPTOBJ) |
18 |
matty |
14 |
$(CC) $(CFLAGS) -o rdesktop $(LIBS) $(RDPOBJ) $(CRYPTOBJ) |
19 |
matty |
10 |
|
20 |
matty |
9 |
proto: |
21 |
matty |
14 |
cproto -DMAKE_PROTO -o proto.h *.c |
22 |
matty |
9 |
|
23 |
matty |
6 |
clean: |
24 |
matty |
10 |
rm -f *.o crypto/*.o *~ |
25 |
matty |
14 |
|
26 |
|
|
.SUFFIXES: |
27 |
|
|
.SUFFIXES: .c .o |
28 |
|
|
|
29 |
|
|
.c.o: |
30 |
|
|
$(CC) $(CFLAGS) -o $@ -c $< |