-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (40 loc) · 1.07 KB
/
Makefile
File metadata and controls
40 lines (40 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#
# Makefile for ccdtest.
# Steven J Gibbons 2023/08/21 (Oslo)
# Before trying to compile, please ensure that the following
# lines have the correct locations of SACLIB, LAPACK, and BLAS
# BINDIR must be set to the directory in which you want the executable to reside
#
SACHOME = /home/stg/ext_programs/SAC/sac-102.0
SACLIB = ${SACHOME}/lib/libsacio.a
LAPACK= /home/stg/ext_programs/LEOPACK-2022-revision/lib/lalib.a
BLAS= /home/stg/ext_programs/LEOPACK-2022-revision/lib/bllib.a
FFTPACK= /home/stg/ext_programs/fftpack/lib/x86_64/libfftpack.a
TOPDIR= /home/stg/SRC
# BINDIR= $(TOPDIR)/BIN
BINDIR= .
#
# PLEASE CHECK ALL THE ABOVE LINES FOR YOUR SYSTEM ----
#
PROGNAME= ccdtest
ALLSOURCECODE= \
$(PROGNAME).f XAPIIR.f
#
SOURCES= \
$(ALLSOURCECODE)
#
OPTIM= -O3
EXEFILE= $(BINDIR)/$(PROGNAME)
FORTRAN= gfortran
#
LIBS= $(LAPACK) $(BLAS) $(SACLIB) $(FFTPACK)
#
backup:
cp -ip $(ALLSOURCECODE) ./BACKUP ; \
cd ./BACKUP ; \
\rm -f *.gz ; \
gzip $(ALLSOURCECODE) ; \
cd ../
#
$(PROGNAME): $(ALLSOURCECODE) $(LIBS)
$(FORTRAN) -o $(EXEFILE) $(ALLSOURCECODE) $(LIBS) $(OPTIM)