summaryrefslogtreecommitdiff
path: root/tune/Makefile.am
blob: a39af71cdb158fec347af7d8d8acbe6c1a73355b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Copyright 2010 Free Software Foundation, Inc.
# This Makefile.am is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
# with or without modifications, as long as this notice is preserved.

# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE.


EXTRA_PROGRAMS = tuneup speed bidimensional_sample

tuneup_SOURCES = tuneup.c
tuneup_LDADD = -lspeed $(top_builddir)/src/libmpfr.la
tuneup_LDFLAGS = -static

speed_SOURCES = speed.c
speed_LDADD = -lspeed $(top_builddir)/src/libmpfr.la
speed_LDFLAGS = -static

bidimensional_sample_SOURCES = bidimensional_sample.c
bidimensional_sample_LDADD = -lspeed $(top_builddir)/src/libmpfr.la
bidimensional_sample_LDFLAGS = -static

INCLUDES = -I$(top_srcdir)/src -I$(top_builddir)/src

tune:
	$(MAKE) $(AM_MAKEFLAGS) tuneup$(EXEEXT)
	./tuneup$(EXEEXT) -v
	mv mparam.h $(top_builddir)/src/
	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) clean
	cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) libmpfr.la

$(top_builddir)/src/libmpfr.la:
	cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) libmpfr.la

CLEANFILES = $(EXTRA_PROGRAMS) mparam.h