-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
74 lines (53 loc) · 1.3 KB
/
makefile
File metadata and controls
74 lines (53 loc) · 1.3 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# Makefile to build boxcar diffusion Program
#
# Andrew J. Pounds, Ph.D.
# Departments of Chemistry and Computer Science
# Mercer University
# Fall 2011
#
F95 = gfortran
CC = gcc
debug ?= n
ifeq ($(debug), y)
CFLAGS += -g -DDEBUG
else
CFLAGS += -O3
endif
ATLASLIBS = -L/usr/lib64/atlas -lblas -llapack -lf77blas -lcblas -latlas
OBJS = array.o zeromat.o walltime.o cputime.o mmm.o \
vvm.o
all: driver atlasdriver
atlasdriver : atlasdriver.o $(OBJS)
$(F95) -o atlasdriver atlasdriver.o $(OBJS) $(ATLASLIBS)
atlasdriver.o : atlasdriver.f90 array.o
$(F95) $(FFLAGS) -c atlasdriver.f90
driver : driver.o $(OBJS)
$(F95) -o driver driver.o $(OBJS)
driver.o : driver.f90 array.o
$(F95) $(FFLAGS) -c driver.f90
zeromat.o : zeromat.f90
$(F95) $(FFLAGS) -c zeromat.f90
array.o : array.f90
$(F95) -c array.f90
mmm.o : mmm.c
$(CC) $(CFLAGS) $(COPTFLAGS) -c mmm.c
vvm.o : vvm.c
$(CC) $(CFLAGS) -c vvm.c
# Timing Library targets
walltime.o : walltime.c
$(CC) -c walltime.c
cputime.o : cputime.c
$(CC) -c cputime.c
lib: cputime.o walltime.o
ar -rc liblbstime.a cputime.o walltime.o
ranlib liblbstime.a
# Default Targets for Cleaning up the Environment
clean :
rm *.o
pristine :
rm *.o
touch *.c *.f90
rm *.mod
rm driver atlasdriver
ctags :
ctags *.f90