To build locus without optimizations, with debug info and with asserts, simply assign something non-empty to shell variable LOCUS_CURRENT_VERSION (of course, I use the version number, but that's only for website updates - locus Makefile is not picky about contents). Note that debug build is a lot slower than the default - if you're concerned about speed, use debug only when you have/expect problems.