-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile
49 lines (40 loc) · 1 KB
/
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
CC= g++
EXE1=gstoreu
EXE2=gstored
#CCFLAGS+= -g -Wall -march=native -fopenmp -DGENEARATOR_USE_PACKED_TYPE
#CCFLAGS+= -g -Wall -march=native -fopenmp
#CCFLAGS = -O3 -Wall -march=native -fgcse-sm -fgcse-las -fgcse-after-reload -floop-strip-mine -ftree-loop-im -fivopts -funswitch-loops -fopenmp -DGENEARATOR_USE_PACKED_TYPE
CCFLAGS = -O3 -Wall -march=native -fgcse-sm -fgcse-las -fgcse-after-reload -floop-strip-mine -ftree-loop-im -fivopts -funswitch-loops -fopenmp
#OBJS= grid.o util.o pr.o bfs.o wcc.o kcore.o wcc2.o bfs2.o
DEPS=gstore.cpp\
gstore.h\
pr.cpp\
bfs.cpp\
bfs2.cpp\
kcore.cpp\
util.cpp\
wcc.cpp\
wcc.h\
algo.h\
kcore.h\
pr.h\
bfs.h\
bfs2.h\
traverse.h\
traverse.cpp\
Makefile
SRC=gstore.cpp\
pr.cpp\
bfs.cpp\
bfs2.cpp\
kcore.cpp\
util.cpp\
wcc.cpp\
traverse.cpp\
all:${EXE2} ${EXE1}
${EXE1}: $(DEPS)
${CC} $(CCFLAGS) -DHALF_GRID ${SRC} -o ${EXE1} -laio
${EXE2}: $(DEPS)
${CC} $(CCFLAGS) ${SRC} -o ${EXE2} -laio
clean:
rm -rf *.o ${EXE1} ${EXE2}