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 23 EXTRA_PROGRAMS = tuneup speed bidimensional_sample 24 25 tuneup_SOURCES = tuneup.c 26 tuneup_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(TUNE_LIBS) 27 tuneup_LDFLAGS = -static 28 29 speed_SOURCES = speed.c 30 speed_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(TUNE_LIBS) 31 speed_LDFLAGS = -static 32 33 bidimensional_sample_SOURCES = bidimensional_sample.c 34 bidimensional_sample_LDADD = -lspeed $(top_builddir)/src/libmpfr.la $(TUNE_LIBS) 35 bidimensional_sample_LDFLAGS = -static 36 37 AM_CPPFLAGS = -I$(top_srcdir)/src -I$(top_builddir)/src 38 39 tune: 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 49 CLEANFILES = $(EXTRA_PROGRAMS) mparam.h 50