summaryrefslogtreecommitdiffstats
path: root/test/qt/Makefile.am
blob: 8ebd33234ba240a6f111a35178bbbb95d5086fb2 (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
INCLUDES=-I$(top_srcdir) -I$(top_srcdir)/qt $(DBUS_CLIENT_CFLAGS) $(DBUS_QT_CFLAGS) $(DBUS_QTESTLIB_CFLAGS) -DDBUS_COMPILATION

if DBUS_BUILD_TESTS
TEST_BINARIES = tst_headertest tst_qdbusxmlparser tst_qdbusconnection qpong tst_qdbusmarshall tst_qdbusinterface tst_qdbusabstractadaptor tst_hal
TESTS=
else
TEST_BINARIES=
TESTS=
endif

noinst_PROGRAMS= $(TEST_BINARIES)

qpong_SOURCES= qpong.cpp
tst_headertest_SOURCES = tst_headertest.cpp
tst_qdbusconnection_SOURCES = tst_qdbusconnection.cpp
tst_qdbusxmlparser_SOURCES = tst_qdbusxmlparser.cpp
tst_qdbusmarshall_SOURCES = tst_qdbusmarshall.cpp
tst_qdbusinterface_SOURCES = tst_qdbusinterface.cpp
tst_qdbusabstractadaptor_SOURCES = tst_qdbusabstractadaptor.cpp common.h
tst_hal_SOURCES = tst_hal.cpp

qpong.o: qpong.moc
tst_qdbusxmlparser.o: tst_qdbusxmlparser.moc
tst_qdbusmarshall.o: tst_qdbusmarshall.moc
tst_qdbusconnection.o: tst_qdbusconnection.moc
tst_qdbusinterface.o: tst_qdbusinterface.moc
tst_qdbusabstractadaptor.o: tst_qdbusabstractadaptor.moc
tst_hal.o: tst_hal.moc

%.moc: %.cpp
	$(QT_MOC) $< > $@

TEST_LIBS=$(DBUS_QTESTLIB_LIBS) $(top_builddir)/qt/src/libdbus-qt4-1.la

LDADD=$(TEST_LIBS)

clean-local:
	-rm *.moc