X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile;h=71478bd8e6ac96624a171811caf7a9b6318d2929;hb=50fea9020210a022d34d79f380ce1bd5e7d12050;hp=3151245d6f05d4fc9b7068e23aac1182ff33712c;hpb=6dfbc78bca5277a676b8d228e03586cfcbb56353;p=m17n%2Fm17n-lib-cs.git diff --git a/Makefile b/Makefile index 3151245..71478bd 100644 --- a/Makefile +++ b/Makefile @@ -1,22 +1,51 @@ -CORE_SRC = MSymbol.cs MPlist.cs MText.cs CS=gmcs +DEBUG_FLAG = -debug +CODEPAGE = 65001 -all: M17N.exe test-sym.exe test-plist.exe test-mtext.exe +RUNCS = ${CS} ${DEBUG_FLAG} -codepage:${CODEPAGE} -M17NCore.dll: ${CORE_SRC} - $(CS) /out:$@ /t:library ${CORE_SRC} +M17N_SRC = M17N.cs +CORE_SRC = MSymbol.cs MPlist.cs MCharTable.cs MText.cs MDatabase.cs +EXPR_SRC = MExpression.cs +INPUT_SRC = MInputMethod.cs +XEX_SRC = XmlExpr.cs +DLL = M17N.dll M17NCore.dll M17NExpr.dll M17NIM.dll XmlExpr.dll +EXAMPLE = symbol.exe plist.exe chartab.exe text.exe textprop.exe database.exe \ + expr.exe +TEST = rearsticky.exe frontsticky.exe bothsticky.exe \ + sensitive.exe frontsensitive.exe rearsensitive.exe -M17N.exe: M17N.cs M17NCore.dll - $(CS) /r:M17NCore M17N.cs +all: ${DLL} ${EXAMPLE} ${TEST} -test-mtext.exe: test-mtext.cs M17NCore.dll - $(CS) -codepage:65001 /r:M17NCore test-mtext.cs +M17N.dll: ${M17N_SRC} + $(RUNCS) -out:$@ -t:library ${M17N_SRC} -test-sym.exe: test-sym.cs M17NCore.dll - $(CS) -codepage:65001 /r:M17NCore test-sym.cs +M17NCore.dll: M17N.dll ${CORE_SRC} + $(RUNCS) -out:$@ -t:library -r:M17N.dll -r:Mvp.Xml-bin-2.0/Mvp.Xml.dll ${CORE_SRC} -test-plist.exe: test-plist.cs M17NCore.dll - $(CS) -codepage:65001 /r:M17NCore test-plist.cs +M17NExpr.dll: M17N.dll M17NCore.dll ${EXPR_SRC} + $(RUNCS) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll ${EXPR_SRC} + +M17NIM.dll: ${INPUT_SRC} M17N.dll M17NCore.dll M17NExpr.dll + $(RUNCS) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll -r:M17NExpr.dll ${INPUT_SRC} + +XmlExpr.dll: ${XEX_SRC} + $(RUNCS) -out:$@ -t:library ${XEX_SRC} + +input.exe: input.cs ${DLL} + $(RUNCS) -r:M17N.dll -r:M17NCore -r:M17NExpr -r:M17NIM.dll $< + +expr.exe: expr.cs + $(RUNCS) -r:M17N.dll -r:M17NCore -r:M17NExpr $< + +xex.exe: xex.cs XmlExpr.dll + $(RUNCS) -r:XmlExpr.dll $< + +%.exe: %.cs + $(RUNCS) -r:M17N.dll -r:M17NCore $< clean: - rm -f *.dll *.exe + rm -f $(DLL) *.exe + +temp.exe: temp.cs + $(CS) temp.cs