-CORE_SRC = MSymbol.cs MText.cs
+CS=gmcs
-all: M17N.exe
+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 \
+ sensitive.exe frontsensitive.exe rearsensitive.exe
-M17N.exe: M17N.cs M17NCore.dll
- mcs /r:M17NCore M17N.cs
+all: ${EXAMPLE} ${TEST}
-M17NCore.dll: ${CORE_SRC}
- mcs /out:$@ /t:library ${CORE_SRC}
+M17N.dll: ${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}
+
+%.exe: %.cs M17NCore.dll
+ $(CS) -codepage:65001 /r:M17N.dll /r:M17NCore $<
clean:
rm -f *.dll *.exe
+
+temp.exe: temp.cs
+ $(CS) temp.cs