-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (30 loc) · 777 Bytes
/
Makefile
File metadata and controls
34 lines (30 loc) · 777 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
33
34
PROG = ggmcalc
FC = gfortran
FCFLAGS = -Wall -O3 -Isrc -Jsrc -ffree-form -ffree-line-length-none -ffast-math -Ofast -fopenmp
LD = $(FC)
SRCS = src/nrtype.f \
src/coordinates_mod.f \
src/legendre_mod.f \
src/c_2n_mod.f \
src/gamma_mod.f \
src/w_mod.f \
src/u_mod.f \
src/undulation_mod.f \
src/height_anomaly_mod.f \
src/gravity_disturbance_mod.f \
src/gravity_anomaly_mod.f \
src/progressbar_mod.f \
src/date_sub.f \
src/duration.f
SRCP = src/$(PROG).f
OBJS = $(SRCS:%.f=%.o)
MODS = $(SRCS:%.f=%.mod)
OBJP = $(SRCP:%.f=%.o)
RM = rm -f
all: $(PROG)
$(PROG): $(OBJS) $(OBJP)
$(LD) $(FCFLAGS) $^ -o $@
.f.o:
$(FC) $(FCFLAGS) -c $< -o $@
clean:
$(RM) $(PROG) $(OBJS) $(OBJP) $(MODS)