Moved mode setting out of .spec file into Makefile.
[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 MODULE    = none
8 SOVERSION = 1.0
9 SONAME    = libwine_unicode.so
10
11 CODEPAGES = \
12         037 \
13         042 \
14         424 \
15         437 \
16         500 \
17         737 \
18         775 \
19         850 \
20         852 \
21         855 \
22         856 \
23         857 \
24         860 \
25         861 \
26         862 \
27         863 \
28         864 \
29         865 \
30         866 \
31         869 \
32         874 \
33         875 \
34         878 \
35         932 \
36         936 \
37         949 \
38         950 \
39         1006 \
40         1026 \
41         1250 \
42         1251 \
43         1252 \
44         1253 \
45         1254 \
46         1255 \
47         1256 \
48         1257 \
49         1258 \
50         10000 \
51         10006 \
52         10007 \
53         10029 \
54         10079 \
55         10081 \
56         20866 \
57         28591 \
58         28592 \
59         28593 \
60         28594 \
61         28595 \
62         28596 \
63         28597 \
64         28598 \
65         28599 \
66         28600 \
67         28603 \
68         28604 \
69         28605 \
70         28606
71
72 C_SRCS = \
73         casemap.c \
74         compose.c \
75         cptable.c \
76         mbtowc.c \
77         string.c \
78         utf8.c \
79         wctomb.c \
80         wctype.c \
81         $(CODEPAGES:%=c_%.c)
82
83 all: libwine_unicode.$(LIBEXT)
84
85 @MAKE_RULES@
86
87 libwine_unicode.so.$(SOVERSION): $(OBJS)
88         $(LDSHARED) $(OBJS) -o $@
89
90 libwine_unicode.so: libwine_unicode.so.$(SOVERSION)
91         $(RM) $@ && $(LN_S) libwine_unicode.so.$(SOVERSION) $@
92
93 libwine_unicode.a: $(OBJS)
94         $(RM) $@
95         $(AR) $@ $(OBJS)
96         $(RANLIB) $@
97
98 # --export-all doesn't work correctly because of dllwrap's bug
99 libwine_unicode.dll: $(OBJS) wine_unicode.def
100         $(DLLWRAP) $(DLLWRAPFLAGS) --def $(SRCDIR)/wine_unicode.def --implib libwine_unicode.a -o libwine_unicode.dll $(OBJS)
101
102 .PHONY: install_so install_a install_dll
103
104 install_so: libwine_unicode.so.$(SOVERSION) dummy
105         $(MKINSTALLDIRS) $(libdir)
106         $(INSTALL_PROGRAM) libwine_unicode.so.$(SOVERSION) $(libdir)/libwine_unicode.so.$(SOVERSION)
107         cd $(libdir) && $(RM) libwine_unicode.so && $(LN_S) libwine_unicode.so.$(SOVERSION) libwine_unicode.so
108
109 install_a: libwine_unicode.a dummy
110         $(MKINSTALLDIRS) $(libdir)
111         $(INSTALL_DATA) libwine_unicode.a $(libdir)/libwine_unicode.a
112
113 install_dll: libwine_unicode.dll dummy
114         $(MKINSTALLDIRS) $(libdir)
115         $(INSTALL_DATA) libwine_unicode.dll $(libdir)/libwine_unicode.dll
116
117 install:: $(LIBEXT:%=install_%)
118
119 uninstall::
120         $(RM) $(libdir)/libwine_unicode.a $(libdir)/libwine_unicode.dll $(libdir)/libwine_unicode.so $(libdir)/libwine_unicode.so.$(SOVERSION)
121
122 clean::
123         $(RM) libwine_unicode.so.$(SOVERSION)
124
125 ### Dependencies: