X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile;h=3baa87f2e6304c5a95f45feed588b931c6a46cb8;hb=refs%2Fheads%2Fmaster;hp=d4d68399e4b244b566c938bbacad617dfb90c109;hpb=eb26069dc0a0d449e6a47a0ded8c17acd49abdac;p=m17n%2Fm17n-lib-cs.git diff --git a/Makefile b/Makefile index d4d6839..3baa87f 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,55 @@ -CS=gmcs +CS=gmcs2 +DEBUG_FLAG = -debug +CODEPAGE = 65001 + +RUNCS = ${CS} ${DEBUG_FLAG} -codepage:${CODEPAGE} M17N_SRC = M17N.cs -CORE_SRC = MSymbol.cs MPlist.cs MText.cs MDatabase.cs -EXAMPLE = symbol.exe plist.exe mtext.exe textprop.exe database.exe -TEST = rearsticky.exe frontsticky.exe \ +CORE_SRC = MSymbol.cs MPlist.cs MCharTable.cs MText.cs MDatabase.cs +INPUT_SRC = MInputMethod.cs +XEX_SRC = XmlExpr.cs +DLL = M17N.dll M17NCore.dll M17NIM.dll XmlExpr.dll +EXAMPLE = symbol.exe plist.exe chartab.exe text.exe textprop.exe database.exe \ + xex.exe +TEST = rearsticky.exe frontsticky.exe bothsticky.exe \ sensitive.exe frontsensitive.exe rearsensitive.exe -all: ${EXAMPLE} ${TEST} +all: ${DLL} ${EXAMPLE} ${TEST} M17N.dll: ${M17N_SRC} - $(CS) /out:$@ /t:library ${M17N_SRC} + $(RUNCS) -out:$@ -t:library ${M17N_SRC} M17NCore.dll: M17N.dll ${CORE_SRC} - $(CS) /out:$@ /t:library /r:M17N.dll /doc:M17NCore.xml ${CORE_SRC} + $(RUNCS) -out:$@ -t:library -r:M17N.dll ${CORE_SRC} + +M17NIM.dll: ${INPUT_SRC} M17N.dll M17NCore.dll XmlExpr.dll + $(RUNCS) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll -r:XmlExpr.dll ${INPUT_SRC} + +XmlExpr.dll: ${XEX_SRC} + $(RUNCS) -doc:XmlExpr.xml -out:$@ -t:library ${XEX_SRC} + +input.exe: input.cs M17NIM.dll XmlExpr.dll + $(RUNCS) -r:M17N.dll -r:M17NCore.dll -r:XmlExpr.dll -r:M17NIM.dll $< -%.exe: %.cs M17NCore.dll - $(CS) -codepage:65001 /r:M17N.dll /r:M17NCore $< +expr.exe: expr.cs + $(RUNCS) -r:M17N.dll -r:M17NCore.dll -r:M17NExpr.dll $< + +xex.exe: xex.cs XmlExpr.dll + $(RUNCS) -r:XmlExpr.dll $< + +%.exe: %.cs ${DLL} + $(RUNCS) -r:M17N.dll -r:M17NCore.dll $< clean: - rm -f *.dll *.exe + rm -f $(DLL) *.exe temp.exe: temp.cs $(CS) temp.cs + +test.exe: test.cs + $(CS) test.cs + +doc: XmlExpr.xml + mdoc-update -delete -i XmlExpr.xml -o docs/en XmlExpr.dll + mdoc assemble -o XmlExpr docs/en + sudo cp XmlExpr.tree XmlExpr.zip XmlExpr.source `pkg-config monodoc --variable sourcesdir`