-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·37 lines (29 loc) · 868 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
34
35
36
37
#####################################################################
#
# Typing the command below => results in the following actions
# make => Executable a.out
# make clean => Remove object files during compilation
# make realclean => Remove object files, executables
#
######################################################################
FF = ifort
CFLAG = -O3
#CFLAG = -fast
#CFLAG = -mcmodel=medium
#PAL = -D PARALLEL
LIB = -mkl
FILES = constant.o gaussian.o gaussian-stype.o SCF.F90
all: scf.out
scf.out: constant.o gaussian.o gaussian-stype.o
$(FF) $(LIB) $(FILES) -o $@
clean:
rm -f *.o *.out
realclean:
rm -f *.o *.out *.e* *.o*
.SUFFIXES:
constant.o: constant.f90
$(FF) -c constant.f90
gaussian.o: gaussian.f90
$(FF) -c gaussian.f90
gaussian-stype.o: gaussian-stype.f90
$(FF) -c gaussian-stype.f90