8185c202a9d6a1bfbde5630b8b87365ba93ac1db
[m17n/m17n-lib-cs.git] / Makefile
1 CS=gmcs
2
3 M17N_SRC = M17N.cs
4 CORE_SRC = MSymbol.cs MPlist.cs MCharTable.cs MText.cs MDatabase.cs
5 EXPR_SRC = MExpression.cs
6 DLL = M17N.dll M17NCore.dll M17NExpr.dll
7 EXAMPLE = symbol.exe plist.exe chartab.exe text.exe textprop.exe database.exe \
8         expr.exe
9 TEST =  rearsticky.exe frontsticky.exe bothsticky.exe \
10         sensitive.exe frontsensitive.exe rearsensitive.exe
11
12 all: ${DLL} ${EXAMPLE} ${TEST}
13
14 M17N.dll: ${M17N_SRC}
15         $(CS) -out:$@ -t:library ${M17N_SRC}
16
17 M17NCore.dll: M17N.dll ${CORE_SRC}
18         $(CS) -out:$@ -t:library -r:M17N.dll ${CORE_SRC}
19
20 M17NExpr.dll: M17N.dll M17NCore.dll ${EXPR_SRC}
21         $(CS) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll ${EXPR_SRC}
22
23 %.exe: %.cs
24         $(CS) -codepage:65001 -r:M17N.dll -r:M17NCore -r:M17NExpr $<
25
26 clean:
27         rm -f *.dll *.exe
28
29 temp.exe: temp.cs
30         $(CS) temp.cs