1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-16 08:49:15 -04:00
ports/math/math77/files/patch-makefile
Pawel Pekala 81910de90c Mathematical subprogram libraries for Fortran 77.
Created by CalTech.

WWW: http://netlib.org/math/

PR:		201918
Submitted by:	mexas@bris.ac.uk
2015-10-10 12:55:33 +00:00

30 lines
919 B
Text

--- makefile.orig 2015-07-13 15:16:24 UTC
+++ makefile
@@ -6,12 +6,11 @@
# you will want to change the optimization level. (For example change
# -ggdb to -O3 or -O2.
-FC = /usr/bin/gfortran
std_flags=-march=native -fimplicit-none -fno-f2c -fno-backslash\
-funroll-loops -ffpe-trap=zero,overflow,invalid -finit-real=NAN\
- -ftree-vectorize -floop-interchange -floop-strip-mine -floop-block -pipe
+ -ftree-vectorize -pipe
-FFLAGS = -ggdb $(std_flags) -Wall
+FFLAGS+= $(std_flags) -Wall
#
objm77 = $(patsubst %.f,%.o, $(wildcard *.f))
#
@@ -20,10 +19,10 @@ all: libmath77.a
.SUFFIXES:
.SUFFIXES: .f .o
%.o: %.f
- $(FC) -c $(FFLAGS) $(FOPTS) -o $@ $*.f &>>compile.msg
+ $(FC) -c $(FFLAGS) $(FOPTS) -o $@ $*.f
libmath77.a: $(objm77)
- ar r $@ $(objm77) &>>compile.msg
+ ar r $@ $(objm77)
demo: libmath77.a makefile demo/dr$(code).f
$(FC) $(FFLAGS) -o demo/dr$(code) demo/dr$(code).f -L. -lmath77;\