diff options
| author | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-03-06 21:52:00 -0500 |
|---|---|---|
| committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2017-03-08 14:17:24 -0500 |
| commit | 0be1f8dc452470acbd1da1df463a53250d2eb463 (patch) | |
| tree | fe80e89ae07f55496ac2407199534e9fab34905a /test | |
| parent | 23d4a7ecf277ff54fc5c6daaff0dc593e0596b25 (diff) | |
| download | phosphor-hwmon-0be1f8dc452470acbd1da1df463a53250d2eb463.tar.gz phosphor-hwmon-0be1f8dc452470acbd1da1df463a53250d2eb463.zip | |
Build: Autotools usage improvements
Use libtool defaults.
Define CXXFLAGS rather than CFLAGS.
Add libraries via LIBADD rather than LDFLAGS. This allows
--as-needed to drop unnecessary libs if present.
Don't bother with PIC objects for convenience library.
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Change-Id: I4a6079402a01ad5f6ccfb71ca9fca44c567ec62d
Diffstat (limited to 'test')
| -rw-r--r-- | test/Makefile.am | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/test/Makefile.am b/test/Makefile.am index 0d7d7a0..2092964 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -3,6 +3,11 @@ noinst_PROGRAMS = phosphor-hwmon-test phosphor_hwmon_test_SOURCES = \ test.cpp -phosphor_hwmon_test_LDFLAGS = $(SDBUSPLUS_LIBS) $(PTHREAD_CFLAGS) -phosphor_hwmon_test_CFLAGS = $(SDBUSPLUS_CFLAGS) -phosphor_hwmon_test_LDADD = ${top_builddir}/libhwmon.la +phosphor_hwmon_test_LDADD = \ + ${top_builddir}/libhwmon.la \ + $(SDBUSPLUS_LIBS) \ + $(PTHREAD_LIBS) + +phosphor_hwmon_test_CXXFLAGS = \ + $(SDBUSPLUS_CFLAGS) \ + $(PTHREAD_CFLAGS) |

