ASMLC = $(ASMLDEVDIR)\AsmL\asmlc.bootx.exe
ASML2DOC = $(ASMLDEVDIR)\bin\WordGenerator.exe
DOC2ASML = $(ASMLDEVDIR)\runtime\wordextractor.exe
GACUTIL = gacutil

Config = Debug
TargetDir = $(ASMLDEVDIR)\bin\$(Config)
TargetName = $(TargetDir)\AsmL.Tools.Word.Connector.dll
TLBName = $(TargetDir)\AsmL.Tools.Word.Connector.tlb
References = /lib:$(TargetDir) /reference:System.dll /reference:cscompmgd.dll 
Options = /target:library /nohint:"AsmL not longer" /nohint:"inserted a possibly failing" /nohint:"adapting to access" /v:4 /allprimitive
Sources = wordaddinconnector.asml 

Docs=wordaddinconnector.doc

all: $(TargetName)

$(TargetName): $(Sources)
	$(ASMLC) $(Options) $(References) /ocs:$(TargetDir)\wordaddinconnector.cs /out:$(TargetName) $(Sources)
  
clean:
	-del $(TargetName) 
	-del $(TargetDir)\wordaddinconnector.cs 
	-del $(Docs)

rebuild: clean $(TargetName)

install:
	regasm $(TargetName) /tlb:$(TLBName) /codebase

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

doc: $(Docs)

