*** empty log message ***
[m17n/m17n-lib-cs.git] / Makefile
index 5a66d8a..d4d6839 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,16 +1,24 @@
-CORE_SRC = MSymbol.cs MPlist.cs MText.cs
 CS=gmcs
 
-all: M17N.exe temp.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
 
-M17NCore.dll: ${CORE_SRC}
-       $(CS) /out:$@ /t:library ${CORE_SRC}
+all: ${EXAMPLE} ${TEST}
 
-M17N.exe: M17N.cs M17NCore.dll
-       $(CS) /r:M17NCore M17N.cs
+M17N.dll: ${M17N_SRC}
+       $(CS) /out:$@ /t:library ${M17N_SRC}
 
-temp.exe: temp.cs M17NCore.dll
-       $(CS) /r:M17NCore temp.cs
+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