forked from dsc-nec/triangle
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile-nec
24 lines (19 loc) · 843 Bytes
/
Makefile-nec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
RMATPATH = GTgraph/R-MAT
SPRNPATH = GTgraph/sprng2.0-lite
INCLUDE = -I$(SPRNPATH)/include
#COMPILER = mpinc++ -std=c++11 -DNEC -ftrace -fopenmp -O3 -I.
COMPILER = mpinc++ -std=c++11 -DNEC -fopenmp -O3 -I.
sprng:
(cd $(SPRNPATH); $(MAKE); cd ../..)
rmat: sprng
(cd $(RMATPATH); $(MAKE); cd ../..)
#TOCOMPILE = $(RMATPATH)/graph.o $(RMATPATH)/utils.o $(RMATPATH)/init.o $(RMATPATH)/globals.o MPIType.o
TOCOMPILE = MPIType.o
MPIType.o: MPIType.cpp MPIType.h
$(COMPILER) $(INCLUDE) $(FLAGS) -c -o MPIType.o MPIType.cpp
#triangles: triangles.cpp CSC.h CSC.cpp CSR.h CSR.cpp multiply.h rmat MPIType.o
triangles: triangles.cpp CSC.h CSC.cpp CSR.h CSR.cpp multiply.h MPIType.o
$(COMPILER) $(FLAGS) $(INCLUDE) -fopenmp -o triangles-nec triangles.cpp ${TOCOMPILE} ${LIBS}
clean:
(cd GTgraph; make clean; cd ../..)
rm -rf *.o triangles-nec