[M3devel] Multiple executables from the same source

Hendrik Boom hendrik at topoi.pooq.com
Sun Jul 7 18:39:17 CEST 2013


On Sun, Jul 07, 2013 at 11:58:18AM -0400, Hendrik Boom wrote:
> On Sun, Jul 07, 2013 at 05:46:03AM +0000, Jay K wrote:
> > m3quake/cm3 is its own language, the declarations are actually 
> > function calls, and the escape is the fairly general scripting 
> > language. Most people just use the declarative stuff and don't break 
> > out into the programming language.
> 
> So you mean I should use something like
> 
> 
> if (test)

correction:  if defined("test")

>   implementation("Test")
>   program("Test")
> else
>   implementation("Main")
>   program("Main")
> end
> 
> in the m3makefile
> 
> and run it with something like
> 
> cm3 -Dtest
> 
> Seems to work.  Thanks.  Now that I know what to look for, finding
> http://modula3.elegosoft.com/cm3/doc/help/cm3/quake.html made it 
> relatively straightforward.
> 
> -- hendrik



More information about the M3devel mailing list