reactos/rosapps/applications/net/tsclient/rdesktop/uiports/makefile_qt
2009-12-02 18:58:05 +00:00

77 lines
1.6 KiB
Text

#
# qtrdesktop makefile
# qt should be installed in /usr/local/qt
#
CC = g++
CPPFLAGS = -O2 -Wall -I/usr/local/qt/include -I..
# the next line is for sound
CPPFLAGS += -DWITH_RDPSND
RESTOBJ = tcp.o iso.o mcs.o secure.o rdp.o rdp5.o
RESTOBJ += orders.o cache.o mppc.o licence.o bitmap.o
RESTOBJ += channels.o pstcache.o
# the next line is for sound
RESTOBJ += rdpsnd.o rdpsnd_oss.o
LD2FLAGS = -L/usr/local/qt/lib -L/usr/X11R6/lib
LDFLAGS = -lcrypto -lqt -lXext -lX11 -lm
MOCFILE = /usr/local/qt/bin/moc
all: qtrd
qtrd: $(RESTOBJ) qtwin.o
$(MOCFILE) qtwin.h > moc_qtwin.cpp
$(CC) $(CPPFLAGS) -c moc_qtwin.cpp
$(CC) -o qtrdesktop $(LD2FLAGS) qtwin.o moc_qtwin.o $(RESTOBJ) $(LDFLAGS)
strip qtrdesktop
clean:
rm -f qtrdesktop
rm -f *.o
rm -f ../*.o
rm -f moc_qtwin.cpp
# common files
tcp.o: ../tcp.c
$(CC) $(CPPFLAGS) -c ../tcp.c
iso.o: ../iso.c
$(CC) $(CPPFLAGS) -c ../iso.c
mcs.o: ../mcs.c
$(CC) $(CPPFLAGS) -c ../mcs.c
secure.o: ../secure.c
$(CC) $(CPPFLAGS) -c ../secure.c
rdp.o: ../rdp.c
$(CC) $(CPPFLAGS) -c ../rdp.c
rdp5.o: ../rdp5.c
$(CC) $(CPPFLAGS) -c ../rdp5.c
orders.o: ../orders.c
$(CC) $(CPPFLAGS) -c ../orders.c
cache.o: ../cache.c
$(CC) $(CPPFLAGS) -c ../cache.c
mppc.o: ../mppc.c
$(CC) $(CPPFLAGS) -c ../mppc.c
licence.o: ../licence.c
$(CC) $(CPPFLAGS) -c ../licence.c
bitmap.o: ../bitmap.c
$(CC) $(CPPFLAGS) -c ../bitmap.c
channels.o: ../channels.c
$(CC) $(CPPFLAGS) -c ../channels.c
pstcache.o: ../pstcache.c
$(CC) $(CPPFLAGS) -c ../pstcache.c
rdpsnd.o: ../rdpsnd.c
$(CC) $(CPPFLAGS) -c ../rdpsnd.c
rdpsnd_oss.o: ../rdpsnd_oss.c
$(CC) $(CPPFLAGS) -c ../rdpsnd_oss.c