forked from mit-carbon/Graphite
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (26 loc) · 760 Bytes
/
Copy pathMakefile
File metadata and controls
35 lines (26 loc) · 760 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
28
29
30
31
32
33
34
35
SIM_ROOT ?= $(CURDIR)
CLEAN=$(findstring clean,$(MAKECMDGOALS))
LIB_CARBON=$(SIM_ROOT)/lib/libcarbon_sim.a
LIB_PIN_SIM=$(SIM_ROOT)/pin/../lib/pin_sim.so
all: output_files $(LIB_CARBON) $(LIB_PIN_SIM)
include common/Makefile
include tests/apps/Makefile
include tests/unit/Makefile
include tests/benchmarks/Makefile
ifneq ($(findstring parsec,$(MAKECMDGOALS)),)
include tests/Makefile.parsec
endif
.PHONY: $(LIB_PIN_SIM)
$(LIB_PIN_SIM):
$(MAKE) -C $(SIM_ROOT)/pin $@
clean: empty_logs
$(MAKE) -C pin clean
$(MAKE) -C common clean
$(MAKE) -C tests/unit clean
$(MAKE) -C tests/apps clean
$(MAKE) -C tests/benchmarks clean
regress_quick: output_files regress_unit regress_apps
output_files:
mkdir output_files
empty_logs :
rm output_files/* ; true