-
Notifications
You must be signed in to change notification settings - Fork 11
/
Makefile
39 lines (31 loc) · 999 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
TOPLEVEL := .
IRAPPS := bfs mst sssp sgd dmr mis cc pr triangle
APPS := bh pta
INPUT_URL := http://iss.ices.utexas.edu/projects/galois/downloads/lonestargpu2-inputs.tar.bz2
BIP_INPUT_URL := http://iss.ices.utexas.edu/projects/galois/downloads/lonestargpu21-bipartite-inputs.tar.xz
INPUT := lonestargpu2-inputs.tar.bz2
BIP_INPUT := lonestargpu21-bipartite-inputs.tar.xz
.PHONY: rt all clean inputs
all: rt $(APPS)
for IRAPPS in $(IRAPPS); do make -C apps/$$IRAPPS; done
rt:
make -C rt/src
$(APPS):
make -C apps/$@
$(IRAPPS):
make -C apps/$@
include arch.mk
include common.mk
inputs:
@echo "Downloading inputs ..."
@wget $(INPUT_URL) -O $(INPUT)
@wget $(BIP_INPUT_URL) -O $(BIP_INPUT)
@echo "Uncompressing inputs ..."
@tar xvf $(INPUT)
@tar xvf $(BIP_INPUT)
@rm $(INPUT) $(BIP_INPUT)
@echo "Inputs available at $(TOPLEVEL)/inputs/"
clean:
make -C rt/src clean
for APP in $(APPS); do make -C apps/$$APP clean; done
for IRAPPS in $(IRAPPS); do make -C apps/$$IRAPPS clean; done