Skip to content

Commit a5a456e

Browse files
Add files via upload
1 parent b821869 commit a5a456e

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

Makefile

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
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+
\rm -f *.gz ; \
34+
gzip $(ALLSOURCECODE) ; \
35+
cd ../
36+
#
37+
$(PROGNAME): $(ALLSOURCECODE) $(LIBS)
38+
$(FORTRAN) -o $(EXEFILE) $(ALLSOURCECODE) $(LIBS) $(OPTIM)

0 commit comments

Comments
 (0)