-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakefile
More file actions
33 lines (23 loc) · 689 Bytes
/
makefile
File metadata and controls
33 lines (23 loc) · 689 Bytes
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
CXX = g++
F90 = gfortran
FLAG = -g -fcheck=all -fcheck=bounds -fbacktrace -fdefault-real-8 -fdefault-double-8 -O0
LIBS = -L/usr/local/lib/ -lnleq1 -lblas -llapack
INCSAD = -I$(HOME)/Codes/cppad-2.0.0/cppad-2.0.0/include/
LINK = -lgfortran
all: exec
exec: eigen.o rhsjac.o chem.o csp.o main.o
$(CXX) -o exec eigen.o rhsjac.o chem.o csp.o main.o $(LIBS) $(LINK)
eigen.o : eigen.f90
$(F90) -c $(FLAG) eigen.f90
rhsjac.o : rhsjac.cpp
$(CXX) -c -g $< $(INCSAD)
chem.o : chem.f90 eigen.o rhsjac.o
$(F90) -c $(FLAG) $<
csp.o : csp.f90 chem.o eigen.o
$(F90) -c $(FLAG) $<
main.o : main.f90 csp.o chem.o eigen.o
$(F90) -c $(FLAG) $<
clean:
rm *.o
real-clean:
rm *~