diff options
author | Yasuko Eckert <yasuko.eckert@amd.com> | 2014-06-03 13:32:29 -0700 |
---|---|---|
committer | Yasuko Eckert <yasuko.eckert@amd.com> | 2014-06-03 13:32:29 -0700 |
commit | 8499cb2b6571979fc94b6a52d642c4e0fb40bc58 (patch) | |
tree | 0a23873a19b3976f008c940c3db0372b7ac46594 /ext/mcpat/makefile | |
parent | 0be64ffe2f4ff8824b3084362706ffbf456ea490 (diff) | |
download | gem5-8499cb2b6571979fc94b6a52d642c4e0fb40bc58.tar.xz |
ext: Redirect McPAT object files
All object files and McPAT binaries are moved to directory gem5/build/mcpat/
rather than creating them locally.
Diffstat (limited to 'ext/mcpat/makefile')
-rw-r--r-- | ext/mcpat/makefile | 28 |
1 files changed, 15 insertions, 13 deletions
diff --git a/ext/mcpat/makefile b/ext/mcpat/makefile index 27f213fa5..f5af29e74 100644 --- a/ext/mcpat/makefile +++ b/ext/mcpat/makefile @@ -1,28 +1,30 @@ TAR = mcpat +BUILD_DIR ?= ../../build +ODIR = $(BUILD_DIR)/mcpat -.PHONY: dbg opt depend clean clean_dbg clean_opt +.PHONY: all dbg opt clean clean_dbg clean_opt all: opt -dbg: $(TAR).mk obj_dbg - @$(MAKE) TAG=dbg -C . -f $(TAR).mk +dbg: $(TAR).mk $(ODIR)/obj_dbg + @$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk -opt: $(TAR).mk obj_opt - @$(MAKE) TAG=opt -C . -f $(TAR).mk +opt: $(TAR).mk $(ODIR)/obj_opt + @$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk -obj_dbg: - mkdir $@ +$(ODIR)/obj_dbg: + mkdir -p $@ -obj_opt: - mkdir $@ +$(ODIR)/obj_opt: + mkdir -p $@ clean: clean_dbg clean_opt -clean_dbg: obj_dbg - @$(MAKE) TAG=dbg -C . -f $(TAR).mk clean +clean_dbg: $(ODIR)/obj_dbg + @$(MAKE) TAG=dbg ODIR=$(ODIR) -C . -f $(TAR).mk clean rm -rf $< -clean_opt: obj_opt - @$(MAKE) TAG=opt -C . -f $(TAR).mk clean +clean_opt: $(ODIR)/obj_opt + @$(MAKE) TAG=opt ODIR=$(ODIR) -C . -f $(TAR).mk clean rm -rf $< |