summaryrefslogtreecommitdiff
path: root/ext/mcpat/makefile
diff options
context:
space:
mode:
authorAnthony Gutierrez <atgutier@umich.edu>2014-04-01 12:44:30 -0400
committerAnthony Gutierrez <atgutier@umich.edu>2014-04-01 12:44:30 -0400
commite553a7bfa7f0eb47b78632cd63e6e1e814025c9a (patch)
treef69a8e3e0ed55b95bf276b6f857793b9ef7b6490 /ext/mcpat/makefile
parent8d665ee166bf5476bb9b73a0016843ff9953c266 (diff)
downloadgem5-e553a7bfa7f0eb47b78632cd63e6e1e814025c9a.tar.xz
ext: add McPAT source
this patch adds the source for mcpat, a power, area, and timing modeling framework.
Diffstat (limited to 'ext/mcpat/makefile')
-rw-r--r--ext/mcpat/makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/ext/mcpat/makefile b/ext/mcpat/makefile
new file mode 100644
index 000000000..27f213fa5
--- /dev/null
+++ b/ext/mcpat/makefile
@@ -0,0 +1,28 @@
+TAR = mcpat
+
+.PHONY: dbg opt depend clean clean_dbg clean_opt
+
+all: opt
+
+dbg: $(TAR).mk obj_dbg
+ @$(MAKE) TAG=dbg -C . -f $(TAR).mk
+
+opt: $(TAR).mk obj_opt
+ @$(MAKE) TAG=opt -C . -f $(TAR).mk
+
+obj_dbg:
+ mkdir $@
+
+obj_opt:
+ mkdir $@
+
+clean: clean_dbg clean_opt
+
+clean_dbg: obj_dbg
+ @$(MAKE) TAG=dbg -C . -f $(TAR).mk clean
+ rm -rf $<
+
+clean_opt: obj_opt
+ @$(MAKE) TAG=opt -C . -f $(TAR).mk clean
+ rm -rf $<
+