-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
49 lines (36 loc) · 815 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
41
42
43
44
45
46
47
48
49
#MPI=openmpi
MPI=mpich
FLAGS= #-fopenmp -Wall -O2 -std=gnu++11
ifeq ($(MPI), openmpi)
CC=mpicc
CXX=mpiCC
else ifeq ($(MPI), mpich)
CC=cc
CXX=CC
INC= -I/lus/scratch/harveyr/mpt/mpich-cray/mpt_rma_install/include
LIBS=-lm -L/lus/scratch/harveyr/mpt/mpich-cray/mpt_rma_install/lib -lmpich_cray -lmpichcxx_cray
FLAGS += -DMPICH -DVERIFY
else
$(error bad mpi distro)
endif
CPPFLAGS=-I. $(INC)
CXXFLAGS=$(FLAGS)
CFLAGS=$(FLAGS)
SRCS=mpiBase.cc mpiPart.cc \
mpiBaseTest1.cc \
mpiBaseTest11.cc \
mpiBaseTest2.cc \
mpiBaseTest21.cc \
mpiBaseTest3.cc \
mpiBaseTest31.cc \
mpiBaseTest31t.cc \
mpiBaseTest32.cc \
mpiBaseTest5.cc \
mpiBaseTestOdd.cc
OBJS=$(SRCS:.cc=.o)
EXE = partTest.$(MPI)
all: $(EXE)
$(EXE): $(OBJS)
$(CXX) $(CPPFLAGS) $(LIBS) $(CFLAGS) $^ -o $@
clean:
rm -rf $(OBJS) $(EXE)