1# Copyright 2010-2023 Free Software Foundation, Inc. 2# Contributed by the AriC and Caramba projects, INRIA. 3 4# This file is part of the GNU MPFR Library. 5 6# This Makefile.am is free software; the Free Software Foundation 7# gives unlimited permission to copy and/or distribute it, 8# with or without modifications, as long as this notice is preserved. 9 10# This program is distributed in the hope that it will be useful, 11# but WITHOUT ANY WARRANTY, to the extent permitted by law; without 12# even the implied warranty of MERCHANTABILITY or FITNESS FOR A 13# PARTICULAR PURPOSE. 14 15 16# The ".POSIX" line is needed in particular for GNU "make", so that 17# recipes are invoked as if the shell had been passed the -e flag. 18# But note that since GNU Automake adds non-comment lines before it 19# in its generated Makefile, this does not ensure POSIX behavior with 20# other "make" implementations. 21.POSIX: 22 23EXTRA_PROGRAMS = tuneup speed bidimensional_sample 24 25tuneup_SOURCES = tuneup.c 26tuneup_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(TUNE_LIBS) 27tuneup_LDFLAGS = -static 28 29speed_SOURCES = speed.c 30speed_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(TUNE_LIBS) 31speed_LDFLAGS = -static 32 33bidimensional_sample_SOURCES = bidimensional_sample.c 34bidimensional_sample_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(TUNE_LIBS) 35bidimensional_sample_LDFLAGS = -static 36 37AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src 38 39tune: 40 $(MAKE) $(AM_MAKEFLAGS) tuneup$(EXEEXT) 41 ./tuneup$(EXEEXT) -v 42 mv mparam.h $(top_builddir)/src/ 43 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) clean 44 cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) libmpfr.la 45 46$(top_builddir)/src/libmpfr.la: 47 cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) libmpfr.la 48 49CLEANFILES = $(EXTRA_PROGRAMS) mparam.h 50