summaryrefslogtreecommitdiff
path: root/src/accelwattch/makefile
diff options
context:
space:
mode:
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
+
+