-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·63 lines (46 loc) · 1.2 KB
/
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
56
57
58
59
60
61
62
63
## Simple make file, It does NOT check for interdependencies of modules.
## It probably is best to do make clean; make if you change a module.
## Make files are extremely picky about syntax.
## Indentations have to be done with tabulators!
## Absolutely nothing can follow a continuation backslash.
## List main program module last
##
SOURCES = precise.f90 \
io.f90 \
vtkxmlmod.f90 \
panelgeometry.f90 \
constants.f90 \
influence.f90 \
slae.f90 \
flowsolve.f90
## Define name of main program
PROGRAM = flowsolve
# Compiler
FF = gfortran
# Delete program
# Linux
RM = rm -f
# DOSe
#RM = del
## Compiler options
# for the Intel Fortran 90 compiler
# CFLAGS = -c -fast -heap-arrays
# for the g95 compiler
CFLAGS = -c -O3
#Linker Options
# for the Intel Fortran 90 compiler
# LDFLAGS = -fast -heap-arrays
# for the g95 compiler
# LDFLAGS = -02 # -c 03
LDFLAGS = -O3 -march=native -ffast-math -funroll-loops # -g -02
## Probably no changes necessary below this line
OBJECTS = $(SOURCES:.f90=.o)
all: $(SOURCES) $(PROGRAM)
$(PROGRAM): $(OBJECTS)
$(FF) $(LDFLAGS) $(OBJECTS) -o $@
$(OBJECTS): %.o: %.f90
$(FF) $(CFLAGS) $< -o $@
clean:
$(RM) $(OBJECTS) *.mod
realclean:
$(RM) $(OBJECTS) *.mod $(PROGRAM)