X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile;h=353493b71e7c1664c36bf2ce0405ddf7c1274861;hb=2d42f6c7d4ea06fec44c84d25097be67a0664318;hp=4a039fee261d3a251b3e43756a0856cd8d456c57;hpb=dc48777187afd0ad61bced5012958e7be9f10128;p=m17n%2Fm17n-lib-cs.git diff --git a/Makefile b/Makefile index 4a039fe..353493b 100644 --- a/Makefile +++ b/Makefile @@ -1,28 +1,47 @@ CS=gmcs +DEBUG_FLAG = -debug +CODEPAGE = 65001 + +RUNCS = ${CS} ${DEBUG_FLAG} -codepage:${CODEPAGE} M17N_SRC = M17N.cs CORE_SRC = MSymbol.cs MPlist.cs MCharTable.cs MText.cs MDatabase.cs -EXPR_SRC = MExpression.cs -EXAMPLE = symbol.exe plist.exe chartab.exe text.exe textprop.exe database.exe +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 ${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) -out:$@ -t:library ${XEX_SRC} + +input.exe: input.cs M17NIM.dll XmlExpr.dll + $(RUNCS) -r:M17N.dll -r:M17NCore -r:XmlExpr -r:M17NIM.dll $< + +expr.exe: expr.cs + $(RUNCS) -r:M17N.dll -r:M17NCore -r:M17NExpr $< -M17NExpr.dll: M17N.dll M17NCore.dll ${EXPR_SRC} - $(CS) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll ${EXPR_SRC} +xex.exe: xex.cs XmlExpr.dll + $(RUNCS) -r:XmlExpr.dll $< %.exe: %.cs - $(CS) -codepage:65001 -r:M17N.dll -r:M17NCore -r:M17NExpr $< + $(RUNCS) -r:M17N.dll -r:M17NCore $< clean: - rm -f *.dll *.exe + rm -f $(DLL) *.exe temp.exe: temp.cs $(CS) temp.cs