summaryrefslogtreecommitdiff
path: root/src/mcpat/makefile
diff options
context:
space:
mode:
authorTayler Hetherington <[email protected]>2012-11-30 21:29:42 -0800
committerAndrew Boktor <[email protected]>2014-08-14 13:49:22 -0700
commit36ce0f2243fd0723a746b3c2f5f0651577312400 (patch)
treee79475e75f800ad34b4851ea710c4ee409f5bd72 /src/mcpat/makefile
parent08ec3343d0bca75e63e130266f75f8242f22050b (diff)
Merging Power model into Fermi
//depot/gpgpu_sim_research/fermi_power/distribution/... to //depot/gpgpu_sim_research/fermi/distribution/... [git-p4: depot-paths = "//depot/gpgpu_sim_research/fermi/distribution/": change = 14723]
Diffstat (limited to 'src/mcpat/makefile')
-rw-r--r--src/mcpat/makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/mcpat/makefile b/src/mcpat/makefile
new file mode 100644
index 0000000..ab718cc
--- /dev/null
+++ b/src/mcpat/makefile
@@ -0,0 +1,35 @@
+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 $@
+
+depend:
+ @$(MAKE) TAG=opt -C . -f $(TAR).mk depend
+
+clean: clean_dbg clean_opt clean_cacti
+
+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 $<
+
+clean_cacti: cacti
+ rm -rf cacti/obj_opt
+
+