blob: 98cc6fbc4087a74c70a9f1b8f519af5e019123f7 [file] [log] [blame]
Andrew Jefferya607a0d2018-05-23 16:15:26 +09301AM_CPPFLAGS = \
2 $(PTHREAD_CPPFLAGS) \
3 $(SDBUSPLUS_CPPFLAGS) \
4 $(PHOSPHOR_DBUS_INTERFACES_CPPFLAGS) \
5 $(CODE_COVERAGE_CPPFLAGS)
6AM_CFLAGS = \
7 $(PTHREAD_CFLAGS) \
8 $(SDBUSPLUS_CFLAGS) \
9 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
10 $(CODE_COVERAGE_CFLAGS)
11AM_CXXFLAGS = \
12 $(PTHREAD_CXXFLAGS) \
13 $(SDBUSPLUS_CXXFLAGS) \
14 $(PHOSPHOR_DBUS_INTERFACES_CXXFLAGS) \
15 $(CODE_COVERAGE_CXXFLAGS)
16AM_LDFLAGS = \
Andrew Jefferye185efb2018-05-24 12:59:06 +093017 -lstdc++fs \
Andrew Jefferya607a0d2018-05-23 16:15:26 +093018 $(SDBUSPLUS_LIBS) \
19 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
20 $(CODE_COVERAGE_LIBS) \
21 -lgtest -lgtest_main -lgmock $(PTHREAD_CFLAGS) $(OESDK_TESTCASE_FLAGS)
22
23test_physical_SOURCES = %reldir%/physical.cpp
Andrew Jeffery42e02d32018-05-24 13:34:05 +093024test_physical_LDADD = physical.o sysfs.o
Andrew Jefferya607a0d2018-05-23 16:15:26 +093025
Andrew Jefferye185efb2018-05-24 12:59:06 +093026test_sysfs_SOURCES = %reldir%/sysfs.cpp
27test_sysfs_LDADD = sysfs.cpp
28
29check_PROGRAMS += \
30 %reldir%/physical \
31 %reldir%/sysfs