Files
TRIMSP/fortran/Makefile
Ryan M. L. McFadden 644d0479d8 increase the maximum number of points in the depth distribution
- this mitigates the liklihood of truncated output when the "bin"
  size is small (e.g., < 1 nm).
- an additional compiler flag is needed for this (-mcmodel=medium),
  which relaxes some of the assumptions about addresses and sizes
  of sections in the generated code. See:
  https://gcc.gnu.org/onlinedocs/gcc/x86-Options.html
- improve the Makefile during the update, too.
2021-09-30 09:17:20 -07:00

29 lines
695 B
Makefile

# Makefile MAKEFILE_unix_trimsp.
#
# 17-Jun-2002 TP, use standard f77 code; use
# ranlux random number generator of the CERN mathlib
#
# 4-Feb-2013 ZS, clean up makefile and include random number
# generator in the code. Use gfortran which is now
# a standard part of gcc in moder systems.
#
FC = gfortran
DEBUG = # -g -O -fbacktrace -ffpe-trap='underflow'
WARN = # -Wall -Wextra
DIALECT = -std=gnu
prefix = /usr/local
# OPS = -c $(DIALECT) $(WARN) $(DEBUG)
FCFLAGS = $(DIALECT) $(WARN) $(DEBUG) -O3 -mcmodel=medium
all : trimspNL
trimspNL : trimspNL.F
$(FC) $(FCFLAGS) -o $@ $<
clean:
rm -f *.o *~ \#* .#* trimspNL
install:
mv trimspNL $(prefix)/bin/.