forked from davidhoover/DNAWorks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
40 lines (30 loc) · 812 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
37
38
39
40
# compiler
FC = gfortran
# compile flags
#FCFLAGS = -g -fbounds-check -O2 -static-libgcc
FCFLAGS = -g -fbounds-check -O2
# link flags
FLFLAGS = -g
# program name
PROGRAM = dnaworks
# required objects
objects = dnaworks.o dnaworks_data.o dnaworks_test.o \
control_func.o email_func.o encoding.o input.o misc_func.o \
mutate.o output.o overlaps.o scores.o str_func.o time_func.o
# required modules
modules = dnaworks_data.mod dnaworks_test.mod
# the main linking step
$(PROGRAM): $(objects)
$(FC) $(FCFLAGS) -o $(PROGRAM) $(objects)
# specific requirements for each object
$(objects): $(modules)
# compile recipe for modules
%.mod: %.f90
$(FC) $(FLFLAGS) -c $<
# compile recipe for objects
%.o: %.f90
$(FC) $(FLFLAGS) -c $<
# extra rules
.PHONY: clean
clean:
rm -f $(objects) $(modules) $(PROGRAM)