1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/math/lapack/files/patch-ac
Jean-Marc Zucconi 7776686cb0 Honor FC and FFLAGS so that the user can easily override them.
Enable testing and timing if ENABLE_TESTING is set to YES so that the user
can check how the changes to FC and FFLAGS work.
Patches to workaround the SIGFPE stuff and g77's code checking.
Update pkg/DESCR.
Submitted by:	AMAKAWA Shuhei <sa264@cam.ac.uk>
1999-10-13 22:59:19 +00:00

102 lines
3.4 KiB
Plaintext

--- Makefile.orig Tue Jun 22 13:29:44 1999
+++ Makefile Mon Oct 11 11:31:35 1999
@@ -6,19 +6,27 @@
include make.inc
+.if defined(ENABLE_TESTING) && ${ENABLE_TESTING} == "YES"
all: install lib testing blas_testing timing blas_timing
-
-lib: lapacklib tmglib
-#lib: blaslib lapacklib tmglib
+.else
+all: install lib
+.endif
+
+.if defined(ENABLE_TESTING) && ${ENABLE_TESTING} == "YES"
+lib: blaslib lapacklib tmglib fpmclr_.o
+.else
+lib: lapacklib blaslib
+.endif
clean: cleanlib cleantesting cleantiming
install:
- ( cd INSTALL; $(MAKE); testlsame; testslamch; \
- testdlamch; testsecond; testdsecnd; \
+ ( cd INSTALL; $(MAKE); ./testlsame; ./testslamch; \
+ ./testdlamch; ./testsecond; ./testdsecnd; \
cp lsame.f ../BLAS/SRC/; cp lsame.f ../SRC; \
cp slamch.f ../SRC/; cp dlamch.f ../SRC/; \
- cp second.f ../SRC/; cp dsecnd.f ../SRC/ )
+ cp second.f ../SRC/; cp dsecnd.f ../SRC/; \
+ cp etime_.c ../SRC/ )
blaslib:
( cd BLAS/SRC; $(MAKE) )
@@ -34,40 +42,40 @@
blas_testing:
( cd BLAS/TESTING; $(MAKE) -f Makeblat1 )
- ( cd BLAS; xblat1s > sblat1.out; \
- xblat1d > dblat1.out; \
- xblat1c > cblat1.out; \
- xblat1z > zblat1.out )
+ ( cd BLAS; ./xblat1s > sblat1.out; \
+ ./xblat1d > dblat1.out; \
+ ./xblat1c > cblat1.out; \
+ ./xblat1z > zblat1.out )
( cd BLAS/TESTING; $(MAKE) -f Makeblat2 )
- ( cd BLAS; xblat2s < sblat2.in ; \
- xblat2d < dblat2.in ; \
- xblat2c < cblat2.in ; \
- xblat2z < zblat2.in )
+ ( cd BLAS; ./xblat2s < sblat2.in ; \
+ ./xblat2d < dblat2.in ; \
+ ./xblat2c < cblat2.in ; \
+ ./xblat2z < zblat2.in )
( cd BLAS/TESTING; $(MAKE) -f Makeblat3 )
- ( cd BLAS; xblat3s < sblat3.in ; \
- xblat3d < dblat3.in ; \
- xblat3c < cblat3.in ; \
- xblat3z < zblat3.in )
+ ( cd BLAS; ./xblat3s < sblat3.in ; \
+ ./xblat3d < dblat3.in ; \
+ ./xblat3c < cblat3.in ; \
+ ./xblat3z < zblat3.in )
timing:
( cd TIMING; $(MAKE) )
blas_timing:
( cd TIMING/LIN; $(MAKE) )
- ( cd TIMING; xlintims < sblasa.in > sblasa.out ; \
- xlintims < sblasb.in > sblasb.out ; \
- xlintims < sblasc.in > sblasc.out )
- ( cd TIMING; xlintimd < dblasa.in > dblasa.out ; \
- xlintimd < dblasb.in > dblasb.out ; \
- xlintimd < dblasc.in > dblasc.out )
- ( cd TIMING; xlintimc < cblasa.in > cblasa.out ; \
- xlintimc < cblasb.in > cblasb.out ; \
- xlintimc < cblasc.in > cblasc.out )
- ( cd TIMING; xlintimz < zblasa.in > zblasa.out ; \
- xlintimz < zblasb.in > zblasb.out ; \
- xlintimz < zblasc.in > zblasc.out )
+ ( cd TIMING; ./xlintims < sblasa.in > sblasa.out ; \
+ ./xlintims < sblasb.in > sblasb.out ; \
+ ./xlintims < sblasc.in > sblasc.out )
+ ( cd TIMING; ./xlintimd < dblasa.in > dblasa.out ; \
+ ./xlintimd < dblasb.in > dblasb.out ; \
+ ./xlintimd < dblasc.in > dblasc.out )
+ ( cd TIMING; ./xlintimc < cblasa.in > cblasa.out ; \
+ ./xlintimc < cblasb.in > cblasb.out ; \
+ ./xlintimc < cblasc.in > cblasc.out )
+ ( cd TIMING; ./xlintimz < zblasa.in > zblasa.out ; \
+ ./xlintimz < zblasb.in > zblasb.out ; \
+ ./xlintimz < zblasc.in > zblasc.out )
cleanlib:
( cd INSTALL; $(MAKE) clean )