Makefile 549 Bytes
Newer Older
Simon Brass's avatar
Simon Brass committed
1
INCLUDE =
2
LDFLAGS = -L/usr/lib -L/usr/local/lib -L../mpiP/lib
Simon Brass's avatar
Simon Brass committed
3
4
5
LIBS = -lmpiP -lm -lbfd -liberty -lbfd -lz -lunwind

FC = mpifort
6
FCFLAGS = -g -fbacktrace
Simon Brass's avatar
Simon Brass committed
7
8
9
10

SRC = mpi-basic.f08 \
			mpi-bcast.f08 \
			mpi-block-dist.f08 \
11
			mpi-box.f08 \
Simon Brass's avatar
Simon Brass committed
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
			mpi-error.f08 \
			mpi-gather.f08 \
			mpi-reduce.f08 \
			mpi-scatter-gather.f08 \
			mpi-spawn.f08

EXE = $(SRC:.f08=.exe)

.PHONY: all
all: ${EXE}
	@echo All done.

.SUFFIXES: .exe .f08
.f08.exe:
	$(FC) $(FCFLAGS)  $^ -o $@ $(LDFLAGS) $(LIBS)

.PHONY: clean
clean:
	rm -f *.exe
	rm -f *.mpiP
32
	rm -f *.log.*