-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathMakefile
More file actions
28 lines (20 loc) · 726 Bytes
/
Makefile
File metadata and controls
28 lines (20 loc) · 726 Bytes
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
#CC=clang-3.5
CFLAGS=-fcilkplus -lcilkrts -DCILK -pthread -O2 -std=gnu99 -fms-extensions -ggdb3
#CFLAGS=-O2 -fopenmp -pthread -std=gnu99 -fms-extensions -ggdb3
CC=g++
LDFLAGS= -lm -llapack -lblas -lnuma
OBJ= random.o utils.o buffer.o init_all.o
ALGOS=sssp_pushpull spmv bfsgrid_cilk wcc prgrid_cilk pagerank_simple bfs_simple bfs_numa pr_numa
DIRS= $(patsubst %, .%, $(ALGOS))
MK= $(patsubst %, .%/Makefile, $(ALGOS))
DIRS= $(patsubst %, .%, $(ALGOS))
MK= $(patsubst %, .%/Makefile, $(ALGOS))
export
.PHONY:clean all $(ALGOS)
all: $(ALGOS)
$(MK):Makefile.tmpl
@(echo "#Updating makefile $@"; mkdir -p $(dir $@); cp Makefile.tmpl $@;)
$(ALGOS): %: .%/Makefile
@(make -C .$@)
clean:
rm -rf *.o $(DIRS) $(ALGOS)