1995-02-18 09:27:10 +08:00
|
|
|
srcdir = @srcdir@
|
|
|
|
|
2024-12-06 04:44:05 +08:00
|
|
|
TEST_CC = @TEST_CC@
|
|
|
|
TEST_CXX = @TEST_CXX@
|
|
|
|
test-cc-option-wimplicit-fallthrough = @libc_cv_test_cc_wimplicit_fallthrough@
|
|
|
|
test-config-cflags-mprefer-vector-width = @libc_cv_test_cc_mprefer_vector_width@
|
|
|
|
test-config-cflags-signaling-nans = @libc_cv_test_cc_signaling_nans@
|
|
|
|
test-config-cflags-wno-ignored-attributes = @libc_cv_test_wno_ignored_attributes@
|
|
|
|
test-enable-cet = @test_enable_cet@
|
|
|
|
test-have-mamx-tile = @libc_cv_test_x86_have_amx_tile@
|
|
|
|
test-have-mtls-descriptor = @libc_cv_test_mtls_descriptor@
|
|
|
|
test-have-static-pie = @libc_cv_test_static_pie@
|
|
|
|
test-supported-fortify = @libc_cv_test_supported_fortify_source@
|
|
|
|
|
1997-02-02 09:50:11 +08:00
|
|
|
# Uncomment the line below if you want to do parallel build.
|
|
|
|
# PARALLELMFLAGS = -j 4
|
|
|
|
|
2013-03-15 15:00:03 +08:00
|
|
|
.PHONY: all install bench
|
2012-09-26 07:21:15 +08:00
|
|
|
|
1995-02-18 09:27:10 +08:00
|
|
|
all .DEFAULT:
|
2011-11-18 01:33:33 +08:00
|
|
|
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@
|
2000-11-16 07:56:34 +08:00
|
|
|
|
2024-12-06 04:44:05 +08:00
|
|
|
check xcheck:
|
|
|
|
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) \
|
|
|
|
CC="$(TEST_CC)" CXX="$(TEST_CXX)" \
|
|
|
|
cc-option-wimplicit-fallthrough="$(test-cc-option-wimplicit-fallthrough)" \
|
|
|
|
config-cflags-mprefer-vector-width="$(test-config-cflags-mprefer-vector-width)" \
|
|
|
|
config-cflags-signaling-nans="$(test-config-cflags-signaling-nans)" \
|
|
|
|
config-cflags-wno-ignored-attributes="$(test-config-cflags-wno-ignored-attributes)" \
|
|
|
|
enable-cet="$(test-enable-cet)" \
|
|
|
|
have-mamx-tile="$(test-have-mamx-tile)" \
|
|
|
|
have-mtls-descriptor="$(test-have-mtls-descriptor)" \
|
|
|
|
have-static-pie="$(test-have-static-pie)" \
|
|
|
|
supported-fortify="$(test-supported-fortify)" \
|
|
|
|
objdir=`pwd` $@
|
|
|
|
|
2000-11-16 07:56:34 +08:00
|
|
|
install:
|
2014-06-08 03:58:36 +08:00
|
|
|
LC_ALL=C; export LC_ALL; \
|
2011-11-18 01:33:33 +08:00
|
|
|
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@
|
2013-03-15 15:00:03 +08:00
|
|
|
|
2016-04-20 12:53:28 +08:00
|
|
|
bench bench-clean bench-build:
|
2013-03-15 15:00:03 +08:00
|
|
|
$(MAKE) -C $(srcdir)/benchtests $(PARALLELMFLAGS) objdir=`pwd` $@
|
New Makefile target `regen-ulps'.
The wiki "Regeneration" page has this to say about update ULPs.
"The libm-test-ulps files are semiautomatically updated. To
update an ulps baseline, run each of the failing tests (test-float,
test-double, etc.) with -u; this will generate a file called ULPs;
concatenate each of those files with the existing libm-test-ulps
file, after removing any entries for particularly huge numbers of
ulps that you do not want to mark as expected. Then run
gen-libm-test.pl -n -u FILE where FILE is the concatenated file
produced in the previous step. This generates a file called
NewUlps which is the new sorted version of libm-test-ulps."
The same information is listed in math/README.libm-test, and is a
lot of manual work that you often want to run over-and-over again
while working on a particular test.
The `regen-ulps' convenience target does this automatically for
developers.
We strictly assume the source tree is readonly and add a
new --output-dir option to libm-test.inc to allow for writing
out ULPs to $(objpfx).
When run the new target does the following:
* Starts with the baseline ULPs file.
* Runs each of the libm math tests with -u.
* Adds new changes seen with -u to the baseline.
* Sorts and prepares the test output with gen-libm-test.pl.
* Leaves math/NewUlps in your build tree to copy to your source
tree, cleanup, and checkin.
The math test documentation in math/README.libm-test is updated
document the new Makefile target.
---
2013-04-06 Carlos O'Donell <carlos@redhat.com>
* Makefile.in (regen-ulps): New target.
* math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
[ifneq (no,$(PERL)] (run-regen-ulps): New variable.
[ifneq (no,$(PERL)] (regen-ulps): New target.
[ifeq (no,$(PERL)] (regen-ulps): New target.
* math/libm-test.inc (ulps_file_name): Define.
(output_dir): New variable.
(options): Add "output-dir" option.
(parse_opt): Handle 'o' case.
(main): If output_dir is non-NULL use it as a prefix
otherwise use "".
* math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
2013-04-07 04:22:47 +08:00
|
|
|
|
|
|
|
# Convenience target to rebuild ULPs for all math tests.
|
|
|
|
regen-ulps:
|
|
|
|
$(MAKE) -C $(srcdir)/math $(PARALLELMFLAGS) objdir=`pwd` $@
|