File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ #
2+ # Makefile for m3csdirest.
3+ # Steven J Gibbons 2023/08/21 (Oslo)
4+ # Before trying to compile, please ensure that the following
5+ # lines have the correct locations of SACLIB, LAPACK, and BLAS
6+ # BINDIR must be set to the directory in which you want the executable to reside
7+ #
8+ SACHOME = /home/stg/ext_programs/SAC/sac-102.0
9+ SACLIB = ${SACHOME}/lib/libsacio.a
10+ LAPACK = /home/stg/ext_programs/LEOPACK-2022-revision/lib/lalib.a
11+ BLAS = /home/stg/ext_programs/LEOPACK-2022-revision/lib/bllib.a
12+ TOPDIR = /home/stg/SRC
13+ BINDIR = $(TOPDIR ) /BIN
14+ #
15+ # PLEASE CHECK ALL THE ABOVE LINES FOR YOUR SYSTEM ----
16+ #
17+ PROGNAME = m3csdirest
18+ ALLSOURCECODE = \
19+ $(PROGNAME ) .f
20+ #
21+ SOURCES = \
22+ $(ALLSOURCECODE )
23+ #
24+ OPTIM = -O3
25+ EXEFILE = $(BINDIR ) /$(PROGNAME )
26+ FORTRAN = gfortran
27+ #
28+ LIBS = $(LAPACK ) $(BLAS ) $(SACLIB )
29+ #
30+ backup :
31+ cp -ip $(ALLSOURCECODE ) ./BACKUP ; \
32+ cd ./BACKUP ; \
33+ \r m -f * .gz ; \
34+ gzip $(ALLSOURCECODE ) ; \
35+ cd ../
36+ #
37+ $(PROGNAME ) : $(ALLSOURCECODE ) $(LIBS )
38+ $(FORTRAN ) -o $(EXEFILE ) $(ALLSOURCECODE ) $(LIBS ) $(OPTIM )
You can’t perform that action at this time.
0 commit comments