-CS=gmcs2
+CS=gmcs
M17N_SRC = M17N.cs
-CORE_SRC = MSymbol.cs MPlist.cs MText.cs MDatabase.cs
-TEST_PROG = symbol.exe plist.exe mtext.exe textprop.exe \
- rearsticky.exe frontsticky.exe sensitive.exe
+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
+TEST = rearsticky.exe frontsticky.exe \
+ sensitive.exe frontsensitive.exe rearsensitive.exe
-all: ${TEST_PROG}
+all: ${EXAMPLE} ${TEST}
M17N.dll: ${M17N_SRC}
- $(CS) /out:$@ /t:library ${M17N_SRC}
+ $(CS) -out:$@ -t:library ${M17N_SRC}
M17NCore.dll: M17N.dll ${CORE_SRC}
- $(CS) /out:$@ /t:library /r:M17N.dll /doc:M17NCore.xml ${CORE_SRC}
+ $(CS) -out:$@ -t:library -r:M17N.dll ${CORE_SRC}
-%.exe: %.cs M17NCore.dll
- $(CS) -codepage:65001 /r:M17N.dll /r:M17NCore $<
+M17NExpr.dll: M17N.dll M17NCore.dll ${EXPR_SRC}
+ $(CS) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll ${EXPR_SRC}
+
+%.exe: %.cs
+ $(CS) -codepage:65001 -r:M17N.dll -r:M17NCore -r:M17NExpr $<
clean:
rm -f *.dll *.exe