diff Makefile.in @ 507:ca95f9e4d45f

Profiling in Makefile
author Adam Chlipala <adamc@hcoop.net>
date Tue, 25 Nov 2008 15:57:16 -0500
parents 8875ff2e85dc
children 6daa59a55c43
line wrap: on
line diff
--- a/Makefile.in	Tue Nov 25 10:05:44 2008 -0500
+++ b/Makefile.in	Tue Nov 25 15:57:16 2008 -0500
@@ -53,6 +53,10 @@
 	MLTON += -const 'Exn.keepHistory true'
 endif
 
+ifdef PROFILE
+	MLTON += -profile $(PROFILE)
+endif
+
 bin/urweb: src/urweb.mlb src/*.sig src/*.sml \
 		src/urweb.mlton.lex.sml \
 		src/urweb.mlton.grm.sig src/urweb.mlton.grm.sml