forked from mit-carbon/Graphite
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
39 lines (31 loc) · 1.08 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
SIM_ROOT ?= $(CURDIR)
CLEAN=$(findstring clean,$(MAKECMDGOALS))
CARBON_LIB = $(SIM_ROOT)/lib/libcarbon_sim.a
DSENT_LIB = $(SIM_ROOT)/contrib/dsent/libdsent_contrib.a
MCPAT_LIB = $(SIM_ROOT)/contrib/mcpat/libmcpat.a
DB_UTILS_LIB = $(SIM_ROOT)/contrib/db_utils/libdb_utils.a
CONTRIB_LIBS = $(DSENT_LIB) $(MCPAT_LIB) $(DB_UTILS_LIB)
PIN_SIM_LIB = $(SIM_ROOT)/lib/pin_sim.so
all: $(CARBON_LIB) $(CONTRIB_LIBS) $(PIN_SIM_LIB)
include common/Makefile
include contrib/Makefile
include tests/apps/Makefile
include tests/unit/Makefile
include tests/benchmarks/Makefile
ifneq ($(findstring parsec,$(MAKECMDGOALS)),)
include tests/Makefile.parsec
endif
.PHONY: $(PIN_SIM_LIB)
$(PIN_SIM_LIB): $(CONTRIB_LIBS)
$(MAKE) -C $(SIM_ROOT)/pin
clean:
$(MAKE) -C pin clean
$(MAKE) -C common clean
$(MAKE) -C contrib clean
$(MAKE) -C tests/unit clean
$(MAKE) -C tests/apps clean
$(MAKE) -C tests/benchmarks clean
clean_output_dirs:
rm -f $(SIM_ROOT)/results/latest
rm -rf $(SIM_ROOT)/results/[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]_[0-9][0-9]-[0-9][0-9]-[0-9][0-9]
regress_quick: regress_unit regress_apps