Added UTF-8 conversion support.
[wine] / unicode / Makefile.in
1 DEFS      = @DLLFLAGS@ -D__WINE__
2 TOPSRCDIR = @top_srcdir@
3 TOPOBJDIR = ..
4 SRCDIR    = @srcdir@
5 VPATH     = @srcdir@
6 LIBEXT    = @LIBEXT@
7 LDSHARED  = @LDSHARED@
8 MODULE    = none
9 SOVERSION = 1.0
10 SONAME    = libwine_unicode.so
11
12 CODEPAGES = \
13         037 \
14         042 \
15         424 \
16         437 \
17         500 \
18         737 \
19         775 \
20         850 \
21         852 \
22         855 \
23         856 \
24         857 \
25         860 \
26         861 \
27         862 \
28         863 \
29         864 \
30         865 \
31         866 \
32         869 \
33         874 \
34         875 \
35         878 \
36         932 \
37         936 \
38         949 \
39         950 \
40         1006 \
41         1026 \
42         1250 \
43         1251 \
44         1252 \
45         1253 \
46         1254 \
47         1255 \
48         1256 \
49         1257 \
50         1258 \
51         10000 \
52         10006 \
53         10007 \
54         10029 \
55         10079 \
56         10081 \
57         20866 \
58         28591 \
59         28592 \
60         28593 \
61         28594 \
62         28595 \
63         28596 \
64         28597 \
65         28598 \
66         28599
67
68 C_SRCS = \
69         casemap.c \
70         cptable.c \
71         mbtowc.c \
72         string.c \
73         utf8.c \
74         wctomb.c \
75         $(CODEPAGES:%=c_%.c)
76
77 all: libwine_unicode.$(LIBEXT)
78
79 @MAKE_RULES@
80
81 libwine_unicode.so.$(SOVERSION): $(OBJS)
82         $(LDSHARED) $(OBJS) -o $@
83
84 libwine_unicode.so: libwine_unicode.so.$(SOVERSION)
85         $(RM) $@ && $(LN_S) libwine_unicode.so.$(SOVERSION) $@
86
87 libwine_unicode.a: $(OBJS)
88         $(RM) $@
89         $(AR) $@ $(OBJS)
90         $(RANLIB) $@
91
92 install_so: libwine_unicode.so.$(SOVERSION)
93         [ -d $(libdir) ] || $(MKDIR) $(libdir)
94         $(INSTALL_PROGRAM) libwine_unicode.so.$(SOVERSION) $(libdir)/libwine_unicode.so.$(SOVERSION)
95         cd $(libdir) && $(RM) libwine_unicode.so && $(LN_S) libwine_unicode.so.$(SOVERSION) libwine_unicode.so
96
97 install_a: libwine_unicode.a
98         [ -d $(libdir) ] || $(MKDIR) $(libdir)
99         $(INSTALL_DATA) libwine_unicode.a $(libdir)/libwine_unicode.a
100
101 install:: all $(LIBEXT:%=install_%)
102
103 uninstall::
104         cd $(libdir) && $(RM) libwine_unicode.a libwine_unicode.so libwine_unicode.so.$(SOVERSION)
105
106 clean::
107         $(RM) libwine_unicode.so.$(SOVERSION)
108
109 ### Dependencies: