mirror of
git://sourceware.org/git/glibc.git
synced 2024-12-21 04:31:04 +08:00
a00d3f4a8c
For situations where we are cross-building or where we want to avoid building on the target system, we want a way to only build benchmarks and then copy them over to the target system to run them. I have also added a simple enhancement for the 'bench' target where all benchmark binaries are built and then the benchmarks executed. Tested on arm. Makefile.in (bench-build): New target. Rules (PHONY): Add bench-build target. benchtests/Makefile (bench): Depend on bench-build. (bench-build): New target.
21 lines
566 B
Makefile
21 lines
566 B
Makefile
srcdir = @srcdir@
|
|
|
|
# Uncomment the line below if you want to do parallel build.
|
|
# PARALLELMFLAGS = -j 4
|
|
|
|
.PHONY: all install bench
|
|
|
|
all .DEFAULT:
|
|
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@
|
|
|
|
install:
|
|
LC_ALL=C; export LC_ALL; \
|
|
$(MAKE) -r PARALLELMFLAGS="$(PARALLELMFLAGS)" -C $(srcdir) objdir=`pwd` $@
|
|
|
|
bench bench-clean bench-build:
|
|
$(MAKE) -C $(srcdir)/benchtests $(PARALLELMFLAGS) objdir=`pwd` $@
|
|
|
|
# Convenience target to rebuild ULPs for all math tests.
|
|
regen-ulps:
|
|
$(MAKE) -C $(srcdir)/math $(PARALLELMFLAGS) objdir=`pwd` $@
|