-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
37 lines (28 loc) · 899 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
#
# SuAVE can be compiled in any operational system, is distributed free of charge and
# it is maintained by a single developer. If you experience code issues, we kindly
# request you to contact us at e-mail: suave.biomat@gmail.com
#
#only change this information if you know what you are doing! =============================
FCFLAGS = -O2
#inserting the source codes and libraries
SRC_ALL = $(wildcard *.f90)
SRC = $(filter-out s_inertia.f90 s_index.f90 ,$(SRC_ALL))
OBJ_ALL = $(patsubst %.f90,%,$(SRC_ALL))
OBJ = $(patsubst %.f90,%,$(SRC))
LIB = diag.f
INSTALL_PATH = /usr/local/suave
all: $(OBJ_ALL)
$(OBJ): % : %.f90
gfortran $(FCFLAGS) $^ -o $@
s_index: s_index.f90
gfortran $^ -o $@
s_inertia: s_inertia.f90 $(LIB)
gfortran $(FCFLAGS) $^ -o $@
clean:
@rm -f *.mod
install:
@mkdir $(INSTALL_PATH)
@mv $(OBJ_ALL) $(INSTALL_PATH)
@echo "SuAVE Installed !"
@echo "Enjoy it !"