ASMLP = $(ASMLDEVDIR)\bin\Debug\asmlp.exe
ASMLC = $(ASMLDEVDIR)\AsmL\asmlc.bootx.exe
ASML2DOC = $(ASMLDEVDIR)\bin\WordGenerator.exe
DOC2ASML = $(ASMLDEVDIR)\runtime\wordextractor.exe

ASharp = no
Config = Debug
TargetDir = $(ASMLDEVDIR)\bin\$(Config)
TargetName = $(TargetDir)\AsmL.Runtime.Backtracking.dll
References = /lib:$(TargetDir) /reference:System.dll /reference:cscompmgd.dll 
Options = /threading /nohint:"AsmL not longer" /nohint:"inserted a possibly failing" /nohint:"adapting to access" /v:4 /csdebug
!if "$(ASharp)"!="yes"
Sources = BacktrackingAPI.asml Backtracking.asml
!else
Sources = BacktrackingAPI.as Backtracking.as
!endif

.asml.as:
      $(ASMLP) /ppomitasml /pp:asharp $(PPVALUETYPES) /ppout:$*.as $**

.SUFFIXES: .asml .as

Docs=Backtracking.doc

all: $(TargetName)

$(TargetName): $(Sources)
	$(ASMLC) $(Options) $(References) /target:library /ocs:$(TargetDir)\backtracking.cs /out:$(TargetName) $(Sources)

clean:
	-del $(TargetName) 
	-del $(TargetDir)\backtracking.cs 
	-del $(Docs)

rebuild: clean $(TargetName)

install:

.SUFFIXES: .doc .asml
.asml.doc:
	$(ASML2DOC) $< $@

doc: $(Docs)

