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