-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
57 lines (42 loc) · 1.53 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
49
50
51
52
53
54
55
56
57
# -*- Makefile -*-
# Copyright 2010-2011, Georgia Institute of Technology, USA.
# See COPYING for license.
BUILD_OPENMP = No
BUILD_XMT = No
include make.inc
CPPFLAGS+=-Isupport/Random123/include
# Add -DSTORED_EDGELIST to CPPFLAGS to generate and store the edge list
# rather than generating on the fly.
GRAPH500_SOURCES=graph500.c options.c verify.c generator.c \
prng.c sorts.c output_results.c globals.c xalloc.c timer.c
MAKE_EDGELIST_SOURCES=make-edgelist.c options.c generator.c \
prng.c sorts.c globals.c xalloc.c timer.c
BIN=seq-csr/seq-csr make-edgelist
ifeq ($(BUILD_OPENMP), Yes)
BIN += omp-csr/omp-csr
endif
ifeq ($(BUILD_MPI), Yes)
BIN += mpi/graph500_mpi_simple
endif
ifeq ($(BUILD_XMT), Yes)
BIN = xmt-csr/xmt-csr xmt-csr-local/xmt-csr-local
endif
.PHONY: all
all: $(BIN)
CPPFLAGS += -I./generator
make-edgelist: CFLAGS:=$(CFLAGS) $(CFLAGS_OPENMP)
make-edgelist: $(MAKE_EDGELIST_SOURCES)
seq-csr/seq-csr: seq-csr/seq-csr.c $(GRAPH500_SOURCES)
omp-csr/omp-csr: CFLAGS:=$(CFLAGS) $(CFLAGS_OPENMP)
omp-csr/omp-csr: omp-csr/omp-csr.c $(GRAPH500_SOURCES)
xmt-csr/xmt-csr: CFLAGS:=$(CFLAGS) -pl xmt-csr/xmt-csr.pl
xmt-csr/xmt-csr: CPPFLAGS:=$(CPPFLAGS) -DSTORED_EDGELIST
xmt-csr/xmt-csr: xmt-csr/xmt-csr.c $(GRAPH500_SOURCES)
xmt-csr-local/xmt-csr-local: CFLAGS:=$(CFLAGS) -pl xmt-csr-local/xmt-csr-local.pl
xmt-csr-local/xmt-csr-local: xmt-csr-local/xmt-csr-local.c $(GRAPH500_SOURCES)
mpi/graph500_mpi_simple mpi/graph500_mpi_one_sided mpi/graph500_mpi_replicated:
$(MAKE) -C mpi
.PHONY: clean
clean:
rm -f $(BIN)
#-$(MAKE) -C mpi clean