blob: ff20da0cc24b8894e87379edaaea92a31edafa58 [file] [log] [blame]
Marri Devender Rao947258d2018-09-25 10:52:24 -05001AM_CPPFLAGS = \
Patrick Ventureca4f7882018-12-03 09:05:32 -08002 -I$(top_srcdir)
Marri Devender Rao947258d2018-09-25 10:52:24 -05003
4AM_CFLAGS = \
Patrick Ventureca4f7882018-12-03 09:05:32 -08005 $(SDBUSPLUS_CFLAGS) \
Marri Devender Raof4682712019-03-19 05:00:28 -05006 $(SDEVENTPLUS_CFLAGS) \
Patrick Ventureca4f7882018-12-03 09:05:32 -08007 $(PHOSPHOR_DBUS_INTERFACES_CFLAGS) \
8 $(PHOSPHOR_LOGGING_CFLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -05009
Patrick Ventured51f1032018-12-03 08:48:17 -080010AM_CXXFLAGS =
Marri Devender Rao947258d2018-09-25 10:52:24 -050011
12AM_LDFLAGS = \
Patrick Ventureca4f7882018-12-03 09:05:32 -080013 -lstdc++fs \
14 $(SDBUSPLUS_LIBS) \
Marri Devender Raof4682712019-03-19 05:00:28 -050015 $(SDEVENTPLUS_LIBS) \
Patrick Ventureca4f7882018-12-03 09:05:32 -080016 $(PHOSPHOR_DBUS_INTERFACES_LIBS) \
17 $(PHOSPHOR_LOGGING_LIBS) \
18 $(OPENSSL_LIBS) \
Marri Devender Rao6ceec402019-02-01 03:15:19 -060019 $(GTEST_LIBS) -lgmock_main $(GMOCK_LIBS) \
Patrick Ventureca4f7882018-12-03 09:05:32 -080020 $(OESDK_TESTCASE_FLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -050021
22check_PROGRAMS =
23
24# Run all 'check' test programs
25TESTS = $(check_PROGRAMS)
26
27# Build/add certs_manager_test to test suite
28check_PROGRAMS += certs_manager_test
Jayanth Othayothdd74bd22018-09-28 06:13:35 -050029certs_manager_test_CPPFLAGS = $(AM_CPPFLAGS) $(GTEST_CPPFLAGS)
Marri Devender Rao947258d2018-09-25 10:52:24 -050030certs_manager_test_LDFLAGS = $(AM_LDFLAGS) $(PTHREAD_LIBS) $(OESDK_TESTCASE_FLAGS)
31certs_manager_test_SOURCES = certs_manager_test.cpp
32certs_manager_test_LDADD = $(top_builddir)/certs_manager.o
Marri Devender Rao6ceec402019-02-01 03:15:19 -060033certs_manager_test_LDADD += $(top_builddir)/certificate.o
Marri Devender Raof4682712019-03-19 05:00:28 -050034certs_manager_test_LDADD += $(top_builddir)/csr.o
Marri Devender Raoffad1ef2019-06-03 04:54:12 -050035certs_manager_test_LDADD += $(top_builddir)/watch.o