mirror of
https://github.com/anrieff/libcpuid
synced 2024-12-16 16:35:45 +00:00
13f382725b
The reason was that the invocation of the cpuid_tool through the makefile was using LD_LIBRARY_PATH=. to force link&use of the latest-build libcpuid library. This doesn't seem to work, so using LD_PRELOAD to explicitly load libcpuid.so into cpuid_tool. The committed approach of course doesn't work on Mac OS X, where make test-old should be used.
24 lines
857 B
Makefile
24 lines
857 B
Makefile
ACLOCAL_AMFLAGS = -I m4
|
|
SUBDIRS = libcpuid cpuid_tool tests
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA = libcpuid.pc
|
|
EXTRA_DIST = libcpuid.pc.in libcpuid_vc71.sln libcpuid_vc9.sln Readme.md
|
|
|
|
consistency:
|
|
$(top_srcdir)/libcpuid/check-consistency.py $(top_srcdir)/libcpuid
|
|
|
|
# "make test" is a bit hacked in order to speed up tests by bypassing the
|
|
# libtool wrapper script. The old (slower) version is available as "test-old"
|
|
|
|
test: test-fast
|
|
|
|
test-fast:
|
|
LD_PRELOAD=$(top_builddir)/libcpuid/.libs/libcpuid.so $(top_srcdir)/tests/run_tests.py $(top_builddir)/cpuid_tool/.libs/cpuid_tool --show-test-fast-warning $(top_srcdir)/tests
|
|
|
|
test-old:
|
|
$(top_srcdir)/tests/run_tests.py $(top_builddir)/cpuid_tool/cpuid_tool $(top_srcdir)/tests
|
|
|
|
fix-tests:
|
|
$(top_srcdir)/tests/run_tests.py $(top_builddir)/cpuid_tool/cpuid_tool $(top_srcdir)/tests --fix
|