*** empty log message ***
[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 INPUT_SRC = MInputMethod.cs
7 DLL = M17N.dll M17NCore.dll M17NExpr.dll M17NIM.dll
8 EXAMPLE = symbol.exe plist.exe chartab.exe text.exe textprop.exe database.exe \
9         expr.exe
10 TEST =  rearsticky.exe frontsticky.exe bothsticky.exe \
11         sensitive.exe frontsensitive.exe rearsensitive.exe
12
13 DEBUG_FLAG = -debug
14
15 all: ${DLL} ${EXAMPLE} ${TEST}
16
17 M17N.dll: ${M17N_SRC}
18         $(CS) $(DEBUG_FLAG) -out:$@ -t:library ${M17N_SRC}
19
20 M17NCore.dll: M17N.dll ${CORE_SRC}
21         $(CS) $(DEBUG_FLAG) -out:$@ -t:library -r:M17N.dll ${CORE_SRC}
22
23 M17NExpr.dll: M17N.dll M17NCore.dll ${EXPR_SRC}
24         $(CS) $(DEBUG_FLAG) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll ${EXPR_SRC}
25
26 M17NIM.dll: ${INPUT_SRC} M17N.dll M17NCore.dll M17NExpr.dll
27         $(CS) $(DEBUG_FLAG) -out:$@ -t:library -r:M17N.dll -r:M17NCore.dll -r:M17NExpr.dll ${INPUT_SRC}
28
29 input.exe: input.cs ${DLL}
30         $(CS) $(DEBUG_FLAG) -codepage:65001 -r:M17N.dll -r:M17NCore -r:M17NExpr  -r:M17NIM.dll $<
31
32 expr.exe: expr.cs
33         $(CS) $(DEBUG_FLAG) -codepage:65001 -r:M17N.dll -r:M17NCore -r:M17NExpr  -r:M17NIM.dll $<
34
35 %.exe: %.cs
36         $(CS) $(DEBUG_FLAG) -codepage:65001 -r:M17N.dll -r:M17NCore $<
37
38 clean:
39         rm -f *.dll *.exe
40
41 temp.exe: temp.cs
42         $(CS) temp.cs