From 2009354719f5f8c7bd13a927cd325482ece5458b Mon Sep 17 00:00:00 2001 From: Erik Schnetter Date: Sat, 18 Jun 2016 21:38:15 -0400 Subject: [PATCH] Add fourier tool to lrslib --- .../packages/lrslib/Makefile.spack.patch | 31 +++++++++---------- 1 file changed, 15 insertions(+), 16 deletions(-) diff --git a/var/spack/repos/builtin/packages/lrslib/Makefile.spack.patch b/var/spack/repos/builtin/packages/lrslib/Makefile.spack.patch index 2a76316fe2..afa1c1af13 100644 --- a/var/spack/repos/builtin/packages/lrslib/Makefile.spack.patch +++ b/var/spack/repos/builtin/packages/lrslib/Makefile.spack.patch @@ -1,11 +1,12 @@ --- old/Makefile.spack +++ new/Makefile.spack -@@ -0,0 +1,55 @@ +@@ -0,0 +1,54 @@ +# Set PREFIX to the install location for both building and installing +# Set BOOST_PREFIX to the location where BOOST is installed +# Set GMP_PREFIX to the location where GMP is installed + -+all: liblrsgmp.la 2nash lrs lrs1 lrsnash redund redund1 setnash setnash2 ++all: liblrsgmp.la \ ++ 2nash fourier lrs lrs1 lrsnash redund redund1 setnash setnash2 + +liblrsgmp.la: lrslib-GMP.lo lrsgmp-GMP.lo + libtool --mode=link --tag=CC cc -g -O3 \ @@ -16,21 +17,21 @@ + libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ +redund1: redund-LONG.lo lrslib-LONG.lo lrslong-LONG.lo + libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ ++lrs: lrs-GMP.lo lrslib-GMP.lo lrsmp-GMP.lo liblrsgmp.la ++ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ ++redund: redund-GMP.lo lrslib-GMP.lo lrsmp-GMP.lo liblrsgmp.la ++ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ ++fourier: fourier-GMP.lo lrslib-GMP.lo lrsgmp-GMP.lo liblrsgmp.la ++ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ ++lrsnash: lrsnash-GMP.lo lrsnashlib-GMP.lo lrslib-GMP.lo lrsmp-GMP.lo \ ++ liblrsgmp.la ++ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ ++2nash: 2nash.lo ++ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ +setnash: setupnash.lo lrslib.lo lrsmp.lo + libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ +setnash2: setupnash2.lo lrslib.lo lrsmp.lo + libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ -+lrs: lrs.lo lrslib.lo lrsmp.lo -+ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ \ -+ -L$(GMP_PREFIX)/lib -lgmp -+redund: redund.lo lrslib.lo lrsmp.lo -+ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ \ -+ -L$(GMP_PREFIX)/lib -lgmp -+lrsnash: lrsnash.lo lrsnashlib.lo lrslib.lo lrsmp.lo -+ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ \ -+ -L$(GMP_PREFIX)/lib -lgmp -+2nash: 2nash.lo -+ libtool --mode=link --tag=CC cc -g -O3 -o $@ $^ + +%.lo: %.c + libtool --mode=compile --tag=CC cc -g -O3 -o $@ -c $*.c @@ -38,14 +39,12 @@ + libtool --mode=compile --tag=CC cc -g -O3 -o $@ -DGMP -c $*.c +%-LONG.lo: %.c + libtool --mode=compile --tag=CC cc -g -O3 -o $@ -DLRSLONG -c $*.c -+%-SIGNALS.lo: %.c -+ libtool --mode=compile --tag=CC cc -g -O3 -o $@ \ -+ -DTIMES -DSIGNALS -c $*.c + +install: + mkdir -p $(PREFIX)/bin + mkdir -p $(PREFIX)/lib + libtool --mode=install cp 2nash $(PREFIX)/bin/2nash ++ libtool --mode=install cp fourier $(PREFIX)/bin/fourier + libtool --mode=install cp lrs $(PREFIX)/bin/lrs + libtool --mode=install cp lrs1 $(PREFIX)/bin/lrs1 + libtool --mode=install cp lrsnash $(PREFIX)/bin/lrsnash