mpir/yasm/tools/genperf/Makefile.inc
wbhart c0e157e3b2 Roughly speaking mpir should now build on an AMD64. At the present moment the config.guess doesn't distinguish a Core 2 from an AMD64 and so the same code is probably built on both.
One must build yasm (included in the yasm directory) before building GMP, if building on an x86_64 machine.

Note: make test and make tune do not currently build.
2008-05-26 22:11:40 +00:00

40 lines
1.5 KiB
Makefile

# $Id: Makefile.inc 1939 2007-09-10 07:15:50Z peter $
# These utility programs have to be built for BUILD host in cross-build.
# This makes things rather non-standard automake
noinst_PROGRAMS += genperf
# Suffix rule for genperf
SUFFIXES += .gperf
.gperf.c: genperf$(EXEEXT)
$(top_builddir)/genperf$(EXEEXT) $< $@
genperf_SOURCES =
EXTRA_DIST += tools/genperf/genperf.c
EXTRA_DIST += tools/genperf/perfect.c
EXTRA_DIST += tools/genperf/perfect.h
EXTRA_DIST += tools/genperf/standard.h
genperf_LDADD = genperf.$(OBJEXT)
genperf_LDADD += gp-perfect.$(OBJEXT)
genperf_LDADD += gp-phash.$(OBJEXT)
genperf_LDADD += gp-xmalloc.$(OBJEXT)
genperf_LDADD += gp-xstrdup.$(OBJEXT)
genperf_LINK = $(CCLD_FOR_BUILD) -o $@
genperf.$(OBJEXT): tools/genperf/genperf.c
$(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) -c -o $@ `test -f tools/genperf/genperf.c || echo '$(srcdir)/'`tools/genperf/genperf.c
gp-perfect.$(OBJEXT): tools/genperf/perfect.c
$(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) -c -o $@ `test -f tools/genperf/perfect.c || echo '$(srcdir)/'`tools/genperf/perfect.c
gp-phash.$(OBJEXT): libyasm/phash.c
$(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) -c -o $@ `test -f libyasm/phash.c || echo '$(srcdir)/'`libyasm/phash.c
gp-xmalloc.$(OBJEXT): libyasm/xmalloc.c
$(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) -c -o $@ `test -f libyasm/xmalloc.c || echo '$(srcdir)/'`libyasm/xmalloc.c
gp-xstrdup.$(OBJEXT): libyasm/xstrdup.c
$(CC_FOR_BUILD) $(DEFAULT_INCLUDES) $(INCLUDES) -c -o $@ `test -f libyasm/xstrdup.c || echo '$(srcdir)/'`libyasm/xstrdup.c