-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
35 lines (25 loc) · 735 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
###### Pre-processor directives to increase verbosity
DEBUG = -D _DEBUG_
DEBUG += -D NO_DEBUG2_
###### additional compile-time configuration
SPECIAL_OPTIONS = -D _LINUX_
###### the ParMETIS library compile/link-time options
# (make sure you have a module that sets the variable METIS_HOME)
INCLUDE = -I $(METIS_HOME)/include
LIBS = -L $(METIS_HOME)/lib -lparmetis
###### C++
MPICXX = mpicxx
CXXOPTS = -Wall -fPIC -O0 -std=c++98 -pedantic
CXXOPTS = -Wall -fPIC -O0
CXXOPTS += $(SPECIAL_OPTIONS)
###### C
MPICC = mpicc
COPTS = -Wall -fPIC -O0
COPTS += $(SPECIAL_OPTIONS)
###### linker
LD = ld
###### targets ######
all:
$(MPICC) $(DEBUG) $(COPTS) $(INCLUDE) main.c $(LIBS)
clean:
rm -f *.o *.a a.out *.so *.a adj_*.dat