-
Notifications
You must be signed in to change notification settings - Fork 0
/
makefile
27 lines (20 loc) · 613 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
#FC= nagfor -C=all -colour #-fno-align-commons
FC=gfortran
FFLAGS = -c -pg -g #-static
OBJECTS = CTEMainProgram.o \
ModuleGetinput.f90 \
ModuleCommon.o \
ModuleRan3.o
all:prog
prog: $(OBJECTS)
$(FC) -o prog $(OBJECTS)
CTEMainProgram.o:CTEMainProgram.f90 ModuleGetinput.o ModuleRan3.o ModuleCommon.o
$(FC) $(FFLAGS) CTEMainProgram.f90
ModuleGetinput.o:ModuleGetinput.f90 ModuleCommon.o
$(FC) $(FFLAGS) ModuleGetinput.f90
ModuleRan3.o:ModuleRan3.f90 ModuleCommon.o
$(FC) $(FFLAGS) ModuleRan3.f90
ModuleCommon.o:ModuleCommon.f90
$(FC) $(FFLAGS) ModuleCommon.f90
clean:
rm -rf *.o *.mod prog