-
Notifications
You must be signed in to change notification settings - Fork 5
/
makefile
55 lines (38 loc) · 924 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# EXE OPTIONS:
#
# make
# make all (same as make)
# make clean
# make veryclean
# Intel fortran compiler
FC = ifort
FLFLAGS = # none
FCFLAGS = -free # performance
#FCFLAGS = -free -g -traceback -check all -debug all # debug
# gfortran compiler
#FC = gfortran
#FLFLAGS = # none
#FCFLAGS = -ffree-form # performance
#FCFLAGS = -ffree-form -g -fbacktrace # debug
# ~~~ Do not edit after that line ~~~
PROGRAM = fold2Bloch
# source files and objects
SRCS = util.o $(patsubst %.F, %.o, $(wildcard *.F)) \
$(patsubst %.F90, %.o, $(wildcard *.F90))
all: $(PROGRAM)
$(PROGRAM): $(SRCS)
$(FC) $(FLFLAGS) $(FLINK) -o $@ $^
util.o: util.F90
$(FC) $(FCFLAGS) $(FOPT) -c util.F90
%.o: %.F
$(FC) $(FCFLAGS) $(FOPT) -c $<
%.o: %.F90
$(FC) $(FCFLAGS) $(FOPT) -c $<
#%.mod: %.h
# $(FC) $(FCFLAGS) -o $@ $<
# Utility targets
.PHONY: clean veryclean
clean:
rm -f *.o *.mod *.MOD
veryclean: clean
rm -f *~ $(PROGRAM)