about summary refs log tree commit diff stats
path: root/makefile
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-05-19 00:03:59 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-05-19 00:03:59 -0700
commit72d7e2d0297afc5998b5b5c710cd6df9e7741f00 (patch)
tree7172b394789e081980ffc8a151693847ba5de09b /makefile
parentb31aaa21d5aa0e25091ee51d5bfff561ec929561 (diff)
downloadmu-72d7e2d0297afc5998b5b5c710cd6df9e7741f00.tar.gz
1405
Diffstat (limited to 'makefile')
-rw-r--r--makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/makefile b/makefile
index 4f9f0f84..d21a2490 100644
--- a/makefile
+++ b/makefile
@@ -16,7 +16,7 @@ tangle/tangle:
 termbox/libtermbox.a:
 	cd termbox && make
 
-.PHONY: autogenerated_lists test valgrind clang clena
+.PHONY: autogenerated_lists test valgrind clang opt clang+opt clena
 
 test: mu
 	./mu test
@@ -27,6 +27,12 @@ valgrind: clang
 clang: makefile mu.cc termbox/libtermbox.a autogenerated_lists
 	clang++ -fsanitize=undefined mu.cc termbox/libtermbox.a -o mu
 
+clang+opt: makefile mu.cc termbox/libtermbox.a autogenerated_lists
+	clang++ -O3 -fsanitize=undefined mu.cc termbox/libtermbox.a -o mu
+
+opt: makefile enumerate/enumerate tangle/tangle mu.cc termbox/libtermbox.a autogenerated_lists
+	g++ -O3 -Wall -Wextra -fno-strict-aliasing mu.cc termbox/libtermbox.a -o mu
+
 # auto-generated files; by convention they end in '_list'.
 autogenerated_lists: mu.cc function_list test_list