9528e39bbcfa7a2d517bd7668aadc358a1f8592c
[platform/upstream/dbus.git] / qt / examples / Makefile.am
1 if HAVE_QT
2 INCLUDES=-I$(top_srcdir) $(DBUS_CLIENT_CFLAGS) $(DBUS_QT_CFLAGS) -DDBUS_COMPILATION
3 LDADD = ../libdbus-qt4-1.la
4
5 if HAVE_QT_GUI
6 chat_LDADD = $(LDADD) $(DBUS_QT_GUI_LIBS)
7 dist_chat_SOURCES = chat.cpp chat.h chatadaptor.cpp
8 nodist_chat_SOURCES = chatinterface.cpp
9 chat.o: chatmainwindow.h chatsetnickname.h chatinterface.h chatadaptor.h chat.moc chatadaptor.moc
10 chatmainwindow.h: chatmainwindow.ui
11 chatsetnickname.h: chatsetnickname.ui
12 chatinterface.cpp chatinterface.h: com.trolltech.ChatInterface.xml
13         ../dbusidl2cpp -m -p chatinterface $?
14         $(QT_MOC) -o chatinterface.moc chatinterface.h
15
16 CHAT=chat
17 endif
18
19
20 noinst_PROGRAMS = hello dbus ping pong complexping complexpong $(CHAT)
21 hello_SOURCES = hello.cpp
22 dbus_SOURCES = dbus.cpp
23
24 ping_SOURCES = ping.cpp
25 pong_SOURCES = pong.cpp pong.h
26 pong.o: pong.moc
27
28 complexping_SOURCES = complexping.cpp complexping.h
29 complexpong_SOURCES = complexpong.cpp complexpong.h
30 complexpong.o: complexpong.moc
31 complexping.o: complexping.moc
32
33 EXTRA_DIST = ping-common.h chatmainwindow.ui chatsetnickname.ui com.trolltech.ChatInterface.xml chatadaptor.h
34
35 CLEANFILES = chat.moc chatadaptor.moc complexping.moc complexpong.moc pong.moc \
36         chatinterface.cpp chatinterface.h chatinterface.moc \
37         chatmainwindow.h chatsetnickname.h
38
39 %.moc: %.h
40         $(QT_MOC) $< > $@
41 %.h: %.ui
42         $(QT_UIC) -o $@ $?
43 endif
44