gem5/ext/mcpat/makefile
Yasuko Eckert 8499cb2b65 ext: Redirect McPAT object files
All object files and McPAT binaries are moved to directory gem5/build/mcpat/
rather than creating them locally.
2014-06-03 13:32:29 -07:00

30 lines
561 B
Makefile

TAR = mcpat
BUILD_DIR ?= ../../build
ODIR = $(BUILD_DIR)/mcpat
.PHONY: all dbg opt clean clean_dbg clean_opt
all: opt
dbg: $(TAR).mk $(ODIR)/obj_dbg
@$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk
opt: $(TAR).mk $(ODIR)/obj_opt
@$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk
$(ODIR)/obj_dbg:
mkdir -p $@
$(ODIR)/obj_opt:
mkdir -p $@
clean: clean_dbg clean_opt
clean_dbg: $(ODIR)/obj_dbg
@$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk clean
rm -rf $<
clean_opt: $(ODIR)/obj_opt
@$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk clean
rm -rf $<