forked from hphratchian/spinContaminationChecker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
33 lines (29 loc) · 813 Bytes
/
makefile
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
#
# This is a simple makefile for building spin-squared calculation code.
#
MQCDir = $(mqcinstall)
MQCMODS = $(MQCDir)/PGI/mod
MQCLIB = $(MQCDir)/PGI/lib
LIBS = -llapack -lblas -L$(MQCLIB)
F03Flags =
RunF = nvfortran -i8 -r8 -mp -Mallocatable=03
#
#
# The 'all' rule.
#
all: spinContaminationChecker1.exe
#
# Generic rules for building module (*.mod) and object (*.o) files.
#
%.mod: %.f03
$(RunF) $(LIBS) $(Prof) -I$(MQCMODS) -c $*.f03
%.o: %.f90
$(RunF) -I$(MQCMODS) -c $*.f90
%.o: %.f03
$(RunF) $(F03Flags) -I$(MQCMODS) -c $*.f03
#
# Generic rule for building general executable program (*.exe) from a standard
# f03 source (*.f03) file.
#
%.exe: %.f03 hphSpinFun_mod.f03 $(MQCLIB)/libmqc.a
$(RunF) $(LIBS) $(Prof) -I$(MQCMODS) -o $*.exe $*.f03 $(MQCLIB)/libmqc.a