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