# NOTE: If you change this file, you'll need to
#       clean all ("stbuild all all -clean") before compiling again.

target _
	parseAnything, calculatorDynamic, calculatorStatic, _
	dumpcgt, staticlang, parse, gendocs, grmc
	   
[dumpcgt, staticlang, parse, gendocs, grmc:all]
flags src/tools/$(TARGET)/main.d

[parseAnything, calculatorDynamic, calculatorStatic:all]
flags src/samples/$(TARGET)/main.d

[all:all]
flags -Isrc -I../SemiTwistDTools/src _
      -oqobj/$(TARGET)/$(MODE)  # Keep object files separate so things don't get screwed up

[all:debug]
flags -ofbin/goldie-$(TARGET)-$(MODE) _
      -debug -C-unittest _
	  -g _
      -C-wi

[all:release]
flags -ofbin/goldie-$(TARGET) _
      -release -C-O _
      -C-wi
