summaryrefslogtreecommitdiff
path: root/src/accelwattch/makefile
diff options
context:
space:
mode:
authorJRPan <[email protected]>2023-05-10 14:57:09 -0400
committerGitHub <[email protected]>2023-05-10 14:57:09 -0400
commit57aa5ab28bdcb59b32762bd746586824707282eb (patch)
treec8ab3b5ed3660283b9f95ec63cb620331aac94a7 /src/accelwattch/makefile
parentda6a16a990a007edb7a760a2eb5b9b48ccc06e4c (diff)
parent948c0e1a0e379e37e60c83b9ab622217522aea86 (diff)
Merge branch 'dev' into fix_different_latencies_to_same_ex_unit
Diffstat (limited to 'src/accelwattch/makefile')
-rw-r--r--src/accelwattch/makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/src/accelwattch/makefile b/src/accelwattch/makefile
new file mode 100644
index 0000000..354c9ec
--- /dev/null
+++ b/src/accelwattch/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 -p $@
+
+obj_opt:
+ mkdir -p $@
+
+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
+
+