-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (33 loc) · 1000 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
ifdef LONG
INTT = -DLONG
endif
ifdef EDGELONG
INTE = -DEDGELONG
endif
#compilers
# ifdef CILK
# PCC = g++
# PCFLAGS = -std=c++14 -fcilkplus -lcilkrts -O2 -DCILK $(INTT) $(INTE)
# PLFLAGS = -fcilkplus -lcilkrts
ifdef MKLROOT
PCC = icpc
PCFLAGS = -std=c++14 -O3 $(INTT) $(INTE)
# else ifdef OPENMP
# PCC = g++
# PCFLAGS = -std=c++14 -fopenmp -O3 -DOPENMP $(INTT) $(INTE)
else
PCC = g++
PCFLAGS = -std=c++14 -O2 $(INTT) $(INTE)
endif
COMMON = utils.h parseCommandLine.h parallel.h quickSort.h blockRadixSort.h transpose.h gettime.h
LOCAL_COMMON = graphIO.h sparseSet.h myVector.h
GENERATORS = rMatGraph gridGraph randLocalGraph SNAPtoAdj wghSNAPtoAdj adjGraphAddWeights adjToBinary count-2paths count-2paths-vector count-2paths-sparseVector count-3paths-sparseVector SNAPtoSequentialVerticesSNAP streamAppDAGGenerator
.PHONY: all clean
all: $(GENERATORS)
% : %.C $(COMMON) $(LOCAL_COMMON)
$(PCC) $(PCFLAGS) -o $@ $<
clean :
rm -f *.o $(GENERATORS)
cleansrc :
make -s clean
rm -f $(COMMON)