summaryrefslogtreecommitdiffstats
path: root/qt/examples/Makefile.am
blob: 0d4c6eba475875f3c346feca9f27e5f54f187144 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
INCLUDES=-I$(top_srcdir)/qt $(DBUS_CLIENT_CFLAGS) $(DBUS_QT_CFLAGS) -DDBUS_COMPILATION
LDADD = ../src/libdbus-qt4-1.la

if HAVE_QT_GUI
chat_LDADD = $(LDADD) $(DBUS_QT_GUI_LIBS)
dist_chat_SOURCES = chat.cpp chat.h chatadaptor.cpp
nodist_chat_SOURCES = chatinterface.cpp
chat.o: ui_chatmainwindow.h ui_chatsetnickname.h chatinterface.h chatadaptor.h chat.moc chatadaptor.moc
ui_chatmainwindow.h: chatmainwindow.ui
ui_chatsetnickname.h: chatsetnickname.ui
chatinterface.cpp chatinterface.h: com.trolltech.ChatInterface.xml
	../tools/dbusidl2cpp -m -p chatinterface $?
	$(QT_MOC) -o chatinterface.moc chatinterface.h

CHAT=chat
endif


noinst_PROGRAMS = hello listnames ping pong complexping complexpong $(CHAT)
hello_SOURCES = hello.cpp
listnames_SOURCES = listnames.cpp

ping_SOURCES = ping.cpp
pong_SOURCES = pong.cpp pong.h
pong.o: pong.moc

complexping_SOURCES = complexping.cpp complexping.h
complexpong_SOURCES = complexpong.cpp complexpong.h
complexpong.o: complexpong.moc
complexping.o: complexping.moc

EXTRA_DIST = ping-common.h chatmainwindow.ui chatsetnickname.ui com.trolltech.ChatInterface.xml chatadaptor.h

CLEANFILES = chat.moc chatadaptor.moc complexping.moc complexpong.moc pong.moc \
	chatinterface.cpp chatinterface.h chatinterface.moc \
	ui_chatmainwindow.h ui_chatsetnickname.h

%.moc: %.h
	$(QT_MOC) $< > $@
ui_%.h: %.ui
	$(QT_UIC) -o $@ $?