blob: 74760fe266a3aca8711621cd22f195ff7e7f8f48 [file] [log] [blame]
Vishwanatha Subbanna32c97272017-04-04 14:10:08 +05301AM_CPPFLAGS = -I$(top_srcdir)
Vishwanatha Subbanna77ec4792017-04-10 15:43:47 +05302AM_CXXFLAGS = $(LIBEVDEV_CFLAGS)
Vishwanatha Subbanna32c97272017-04-04 14:10:08 +05303
4# Run all 'check' test programs
5TESTS = $(check_PROGRAMS)
6
Gunnar Mills5d89f182017-07-28 12:49:32 -05007# Build/add utest to test suite
Vishwanatha Subbanna32c97272017-04-04 14:10:08 +05308check_PROGRAMS = utest
Gunnar Mills5d89f182017-07-28 12:49:32 -05009
10utest_CPPFLAGS = \
11 -Igtest \
12 $(GTEST_CPPFLAGS) \
13 $(AM_CPPFLAGS) \
14 $(PHOSPHOR_LOGGING_CFLAGS) \
15 $(LIBEVDEV_CFLAGS)
16
17utest_CXXFLAGS = \
18 $(PTHREAD_CFLAGS) \
19 $(LIBEVDEV_CFLAGS) \
20 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS)
21
22utest_LDFLAGS = \
23 -lgtest_main -lgtest \
24 $(PTHREAD_LIBS) \
25 $(OESDK_TESTCASE_FLAGS) \
26 $(SYSTEMD_LIBS) \
27 $(PHOSPHOR_LOGGING_LIBS) \
28 $(LIBEVDEV_LIBS) \
29 $(PHOSPHOR_DBUS_INTERFACES_LIBS)
30
Vishwanatha Subbanna32c97272017-04-04 14:10:08 +053031utest_SOURCES = utest.cpp
Gunnar Mills5d89f182017-07-28 12:49:32 -050032
33utest_LDADD = \
34 $(top_builddir)/monitor.o \
35 $(top_srcdir)/evdev.cpp