-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmakefile
More file actions
34 lines (27 loc) · 1.02 KB
/
makefile
File metadata and controls
34 lines (27 loc) · 1.02 KB
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
# makefile: makes the adFE2D program
current_dir = $(shell pwd)
SRC=$(current_dir)/src
OBJ=$(current_dir)/obj
BIN=$(current_dir)/bin
# Compiler
FF = gfortran
#FFlags = -Wall -fbounds-check
FLIBS = -lblas -llapack
# Extra object files required by main program
objects=$(OBJ)/input.o $(OBJ)/globals.o $(OBJ)/construct.o $(OBJ)/legendre.o $(OBJ)/linsolver.o
$(BIN)/adFE2D: $(OBJ)/adFE2D.o $(objects)
$(FF) $(FFlags) -o $@ $+ $(FLIBS)
$(OBJ)/adFE2D.o: $(SRC)/adFE2D.f90 $(objects)
$(FF) $(FFlags) -I$(OBJ) -c -o $@ $<
$(OBJ)/input.o: $(SRC)/input.f90 $(OBJ)/globals.o
$(FF) $(FFlags) -J$(OBJ) -c -o $@ $<
$(OBJ)/globals.o: $(SRC)/globals.f90
$(FF) $(FFlags) -J$(OBJ) -c -o $@ $<
$(OBJ)/construct.o: $(SRC)/construct.f90 $(OBJ)/globals.o $(OBJ)/legendre.o
$(FF) $(FFlags) -J$(OBJ) -c -o $@ $<
$(OBJ)/legendre.o: $(SRC)/legendre.f90 $(OBJ)/linsolver.o
$(FF) $(FFlags) -J$(OBJ) -c -o $@ $<
$(OBJ)/linsolver.o: $(SRC)/linsolver.f90 $(OBJ)/globals.o
$(FF) $(FFlags) -J$(OBJ) -c -o $@ $<
clean:
rm $(OBJ)/*.o $(OBJ)/*.mod $(BIN)/adFE2D