1 |
# |
2 |
# qtrdesktop makefile |
3 |
# qt should be installed in /usr/local/qt or /usr/lib/qt3 |
4 |
# set QTBDIR to this location |
5 |
|
6 |
QTBDIR = /usr/lib/qt3 |
7 |
|
8 |
CC = g++ |
9 |
CPPFLAGS = -O2 -Wall -I$(QTBDIR)/include -I.. |
10 |
# the next line is for sound |
11 |
#CPPFLAGS += -DWITH_RDPSND |
12 |
RESTOBJ = tcp.o iso.o mcs.o secure.o rdp.o rdp5.o |
13 |
RESTOBJ += orders.o cache.o mppc.o licence.o bitmap.o |
14 |
RESTOBJ += channels.o pstcache.o ssl.o |
15 |
# the next line is for sound |
16 |
#RESTOBJ += rdpsnd.o rdpsnd_oss.o rdpsnd_dsp.o |
17 |
LD2FLAGS = -L$(QTBDIR)/lib -L/usr/X11R6/lib |
18 |
LDFLAGS = -lcrypto -lqt-mt -lXext -lX11 -lm |
19 |
MOCFILE = $(QTBDIR)/bin/moc |
20 |
|
21 |
all: qtrd |
22 |
|
23 |
qtrd: $(RESTOBJ) qtwin.o |
24 |
$(MOCFILE) qtwin.h > moc_qtwin.cpp |
25 |
$(CC) $(CPPFLAGS) -c moc_qtwin.cpp |
26 |
$(CC) -o qtrdesktop $(LD2FLAGS) qtwin.o moc_qtwin.o $(RESTOBJ) $(LDFLAGS) |
27 |
strip qtrdesktop |
28 |
|
29 |
clean: |
30 |
rm -f qtrdesktop |
31 |
rm -f *.o |
32 |
rm -f ../*.o |
33 |
rm -f moc_qtwin.cpp |
34 |
|
35 |
# common files |
36 |
|
37 |
tcp.o: ../tcp.c |
38 |
$(CC) $(CPPFLAGS) -c ../tcp.c |
39 |
|
40 |
iso.o: ../iso.c |
41 |
$(CC) $(CPPFLAGS) -c ../iso.c |
42 |
|
43 |
mcs.o: ../mcs.c |
44 |
$(CC) $(CPPFLAGS) -c ../mcs.c |
45 |
|
46 |
secure.o: ../secure.c |
47 |
$(CC) $(CPPFLAGS) -c ../secure.c |
48 |
|
49 |
rdp.o: ../rdp.c |
50 |
$(CC) $(CPPFLAGS) -c ../rdp.c |
51 |
|
52 |
rdp5.o: ../rdp5.c |
53 |
$(CC) $(CPPFLAGS) -c ../rdp5.c |
54 |
|
55 |
orders.o: ../orders.c |
56 |
$(CC) $(CPPFLAGS) -c ../orders.c |
57 |
|
58 |
cache.o: ../cache.c |
59 |
$(CC) $(CPPFLAGS) -c ../cache.c |
60 |
|
61 |
mppc.o: ../mppc.c |
62 |
$(CC) $(CPPFLAGS) -c ../mppc.c |
63 |
|
64 |
licence.o: ../licence.c |
65 |
$(CC) $(CPPFLAGS) -c ../licence.c |
66 |
|
67 |
bitmap.o: ../bitmap.c |
68 |
$(CC) $(CPPFLAGS) -c ../bitmap.c |
69 |
|
70 |
channels.o: ../channels.c |
71 |
$(CC) $(CPPFLAGS) -c ../channels.c |
72 |
|
73 |
pstcache.o: ../pstcache.c |
74 |
$(CC) $(CPPFLAGS) -c ../pstcache.c |
75 |
|
76 |
ssl.o: ../ssl.c |
77 |
$(CC) $(CPPFLAGS) -c ../ssl.c |
78 |
|
79 |
rdpsnd.o: ../rdpsnd.c |
80 |
$(CC) $(CPPFLAGS) -c ../rdpsnd.c |
81 |
|
82 |
rdpsnd_oss.o: ../rdpsnd_oss.c |
83 |
$(CC) $(CPPFLAGS) -c ../rdpsnd_oss.c |
84 |
|
85 |
rdpsnd_dsp.o: ../rdpsnd_dsp.c |
86 |
$(CC) $(CPPFLAGS) -c ../rdpsnd_dsp.c |