X-Git-Url: http://git.chise.org/gitweb/?a=blobdiff_plain;f=Makefile;h=aa7e4ebad9711bae9adcbe68bb16c5187119f18f;hb=15afd301194e834e8313cdd5fab4e86593e3b75b;hp=994a248d889e67e3c75b43e05f871c9250ac06da;hpb=c25c3228ff23992a3c4f58f83f10af1252de732d;p=m17n%2Fm17n-lib-cs.git diff --git a/Makefile b/Makefile index 994a248..aa7e4eb 100644 --- a/Makefile +++ b/Makefile @@ -1,42 +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 INPUT_SRC = MInputMethod.cs -DLL = M17N.dll M17NCore.dll M17NExpr.dll M17NIM.dll +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 \ - expr.exe + xex.exe TEST = rearsticky.exe frontsticky.exe bothsticky.exe \ sensitive.exe frontsensitive.exe rearsensitive.exe -DEBUG_FLAG = -debug - all: ${DLL} ${EXAMPLE} ${TEST} M17N.dll: ${M17N_SRC} - $(CS) $(DEBUG_FLAG) -out:$@ -t:library ${M17N_SRC} + $(RUNCS) -out:$@ -t:library ${M17N_SRC} M17NCore.dll: M17N.dll ${CORE_SRC} - $(CS) $(DEBUG_FLAG) -out:$@ -t:library -r:M17N.dll ${CORE_SRC} + $(RUNCS) -out:$@ -t:library -r:M17N.dll ${CORE_SRC} -M17NExpr.dll: M17N.dll M17NCore.dll ${EXPR_SRC} - $(CS) $(DEBUG_FLAG) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll ${EXPR_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} -M17NIM.dll: ${INPUT_SRC} M17N.dll M17NCore.dll M17NExpr.dll - $(CS) $(DEBUG_FLAG) -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} - $(CS) $(DEBUG_FLAG) -codepage:65001 -r:M17N.dll -r:M17NCore -r:M17NExpr -r:M17NIM.dll $< +input.exe: input.cs M17NIM.dll XmlExpr.dll + $(RUNCS) -r:M17N.dll -r:M17NCore -r:XmlExpr -r:M17NIM.dll $< expr.exe: expr.cs - $(CS) $(DEBUG_FLAG) -codepage:65001 -r:M17N.dll -r:M17NCore -r:M17NExpr -r:M17NIM.dll $< + $(RUNCS) -r:M17N.dll -r:M17NCore -r:M17NExpr $< + +xex.exe: xex.cs XmlExpr.dll + $(RUNCS) -r:XmlExpr.dll $< -%.exe: %.cs - $(CS) $(DEBUG_FLAG) -codepage:65001 -r:M17N.dll -r:M17NCore $< +%.exe: %.cs ${DLL} + $(RUNCS) -r:M17N.dll -r:M17NCore $< clean: - rm -f *.dll *.exe + rm -f $(DLL) *.exe temp.exe: temp.cs $(CS) temp.cs