]> rtime.felk.cvut.cz Git - sojka/lightdm.git/blob - tests/src/Makefile.am
814810cbe344e0b1f81752f47aa3c56b0395cdf2
[sojka/lightdm.git] / tests / src / Makefile.am
1 noinst_PROGRAMS = test-runner test-xserver test-gobject-greeter test-guest-account test-session test-script-hook initctl plymouth
2 lib_LTLIBRARIES = libsystem.la
3
4 libsystem_la_SOURCES = libsystem.c
5 libsystem_la_CFLAGS = $(GLIB_CFLAGS)
6 libsystem_la_LIBADD = -ldl
7
8 if COMPILE_LIBLIGHTDM_QT
9 noinst_PROGRAMS += test-qt-greeter
10 endif
11
12 test_runner_CFLAGS = \
13         $(WARN_CFLAGS) \
14         $(GLIB_CFLAGS) \
15         $(GIO_CFLAGS) \
16         -DSRCDIR=\"$(abs_top_srcdir)\" \
17         -DBUILDDIR=\"$(abs_top_builddir)\"
18 test_runner_LDADD = \
19         $(GLIB_LIBS) \
20         $(GIO_LIBS)
21
22 test_xserver_SOURCES = test-xserver.c status.c status.h
23 test_xserver_CFLAGS = \
24         $(WARN_CFLAGS) \
25         $(GOBJECT_CFLAGS) \
26         $(GLIB_CFLAGS) \
27         $(GIO_CFLAGS) \
28         $(GIO_UNIX_CFLAGS)
29 test_xserver_LDADD = \
30         $(GOBJECT_LIBS) \
31         $(GLIB_LIBS) \
32         $(GIO_LIBS) \
33         $(GIO_UNIX_LIBS)
34
35 test_gobject_greeter_SOURCES = test-gobject-greeter.c status.c status.h
36 test_gobject_greeter_CFLAGS = \
37         -I$(top_srcdir)/liblightdm-gobject \
38         $(WARN_CFLAGS) \
39         $(GLIB_CFLAGS) \
40         $(GOBJECT_CFLAGS) \
41         $(XCB_CFLAGS)
42 test_gobject_greeter_LDADD = \
43         -L$(top_builddir)/liblightdm-gobject \
44         -llightdm-gobject-1 \
45         $(GLIB_LIBS) \
46         $(GOBJECT_LIBS) \
47         $(XCB_LIBS)
48
49 test_guest_account_SOURCES = test-guest-account.c status.c status.h
50 test_guest_account_CFLAGS = \
51         $(WARN_CFLAGS) \
52         $(GLIB_CFLAGS)
53 test_guest_account_LDADD = \
54         $(GLIB_LIBS)
55
56 test_script_hook_SOURCES = test-script-hook.c status.c status.h
57 test_script_hook_CFLAGS = \
58         $(WARN_CFLAGS) \
59         $(GLIB_CFLAGS)
60 test_script_hook_LDADD = \
61         $(GLIB_LIBS)
62
63 test-qt-greeter_moc.cpp: test-qt-greeter.h
64         moc $< -o $@
65 test_qt_greeter_SOURCES = test-qt-greeter.cpp test-qt-greeter.h test-qt-greeter_moc.cpp status.c status.h
66 test_qt_greeter_CXXFLAGS = \
67         -I$(top_srcdir)/liblightdm-qt \
68         $(LIGHTDM_QT_GREETER_CFLAGS) \
69         $(XCB_CFLAGS)
70 test_qt_greeter_LDADD = \
71         -L$(top_builddir)/liblightdm-qt \
72         -llightdm-qt-1 \
73         $(LIGHTDM_QT_GREETER_LIBS) \
74         $(XCB_LIBS)
75
76 test_session_SOURCES = test-session.c status.c status.h
77 test_session_CFLAGS = \
78         $(WARN_CFLAGS) \
79         $(GLIB_CFLAGS) \
80         $(XCB_CFLAGS)
81 test_session_LDADD = \
82         $(GLIB_LIBS) \
83         $(XCB_LIBS)
84
85 initctl_SOURCES = initctl.c status.c status.h
86 initctl_CFLAGS = \
87         $(WARN_CFLAGS) \
88         $(GLIB_CFLAGS)
89 initctl_LDADD = \
90         $(GLIB_LIBS)
91
92 plymouth_SOURCES = plymouth.c status.c status.h
93 plymouth_CFLAGS = \
94         $(WARN_CFLAGS) \
95         $(GLIB_CFLAGS)
96 plymouth_LDADD = \
97         $(GLIB_LIBS)
98
99 CLEANFILES = \
100         test-qt-greeter_moc.cpp