*** empty log message ***
[m17n/m17n-lib-cs.git] / Makefile
1 CS=gmcs
2 DEBUG_FLAG = -debug
3 CODEPAGE = 65001
4
5 RUNCS = ${CS} ${DEBUG_FLAG} -codepage:${CODEPAGE}
6
7 M17N_SRC = M17N.cs
8 CORE_SRC = MSymbol.cs MPlist.cs MCharTable.cs MText.cs MDatabase.cs
9 EXPR_SRC = MExpression.cs
10 INPUT_SRC = MInputMethod.cs
11 DLL = M17N.dll M17NCore.dll M17NExpr.dll M17NIM.dll
12 EXAMPLE = symbol.exe plist.exe chartab.exe text.exe textprop.exe database.exe \
13         expr.exe
14 TEST =  rearsticky.exe frontsticky.exe bothsticky.exe \
15         sensitive.exe frontsensitive.exe rearsensitive.exe
16
17 all: ${DLL} ${EXAMPLE} ${TEST}
18
19 M17N.dll: ${M17N_SRC}
20         $(RUNCS) -out:$@ -t:library ${M17N_SRC}
21
22 M17NCore.dll: M17N.dll ${CORE_SRC}
23         $(RUNCS) -out:$@ -t:library -r:M17N.dll -r:Mvp.Xml-bin-2.0/Mvp.Xml.dll ${CORE_SRC}
24
25 M17NExpr.dll: M17N.dll M17NCore.dll ${EXPR_SRC}
26         $(RUNCS) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll ${EXPR_SRC}
27
28 M17NIM.dll: ${INPUT_SRC} M17N.dll M17NCore.dll M17NExpr.dll
29         $(RUNCS) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll -r:M17NExpr.dll ${INPUT_SRC}
30
31 input.exe: input.cs ${DLL}
32         $(RUNCS) -r:M17N.dll -r:M17NCore -r:M17NExpr -r:M17NIM.dll $<
33
34 expr.exe: expr.cs
35         $(RUNCS) -r:M17N.dll -r:M17NCore -r:M17NExpr $<
36
37 %.exe: %.cs
38         $(RUNCS) -r:M17N.dll -r:M17NCore $<
39
40 clean:
41         rm -f $(DLL) *.exe
42
43 temp.exe: temp.cs
44         $(CS) temp.cs