Vishwanatha Subbanna | 32c9727 | 2017-04-04 14:10:08 +0530 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir) |
Vishwanatha Subbanna | 77ec479 | 2017-04-10 15:43:47 +0530 | [diff] [blame] | 2 | AM_CXXFLAGS = $(LIBEVDEV_CFLAGS) |
Vishwanatha Subbanna | 32c9727 | 2017-04-04 14:10:08 +0530 | [diff] [blame] | 3 | |
| 4 | # Run all 'check' test programs |
| 5 | TESTS = $(check_PROGRAMS) |
| 6 | |
Gunnar Mills | 5d89f18 | 2017-07-28 12:49:32 -0500 | [diff] [blame^] | 7 | # Build/add utest to test suite |
Vishwanatha Subbanna | 32c9727 | 2017-04-04 14:10:08 +0530 | [diff] [blame] | 8 | check_PROGRAMS = utest |
Gunnar Mills | 5d89f18 | 2017-07-28 12:49:32 -0500 | [diff] [blame^] | 9 | |
| 10 | utest_CPPFLAGS = \ |
| 11 | -Igtest \ |
| 12 | $(GTEST_CPPFLAGS) \ |
| 13 | $(AM_CPPFLAGS) \ |
| 14 | $(PHOSPHOR_LOGGING_CFLAGS) \ |
| 15 | $(LIBEVDEV_CFLAGS) |
| 16 | |
| 17 | utest_CXXFLAGS = \ |
| 18 | $(PTHREAD_CFLAGS) \ |
| 19 | $(LIBEVDEV_CFLAGS) \ |
| 20 | $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) |
| 21 | |
| 22 | utest_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 Subbanna | 32c9727 | 2017-04-04 14:10:08 +0530 | [diff] [blame] | 31 | utest_SOURCES = utest.cpp |
Gunnar Mills | 5d89f18 | 2017-07-28 12:49:32 -0500 | [diff] [blame^] | 32 | |
| 33 | utest_LDADD = \ |
| 34 | $(top_builddir)/monitor.o \ |
| 35 | $(top_srcdir)/evdev.cpp |