Use dllwrap for building shared libraries in cygwin.
[wine/multimedia.git] / unicode / Makefile.in
blob832d107aea04a21b29dc07ab7aba70a6d0a34e45
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
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
71 C_SRCS = \
72 casemap.c \
73 cptable.c \
74 mbtowc.c \
75 string.c \
76 utf8.c \
77 wctomb.c \
78 wctype.c \
79 $(CODEPAGES:%=c_%.c)
81 all: libwine_unicode.$(LIBEXT)
83 @MAKE_RULES@
85 libwine_unicode.so.$(SOVERSION): $(OBJS)
86 $(LDSHARED) $(OBJS) -o $@
88 libwine_unicode.so: libwine_unicode.so.$(SOVERSION)
89 $(RM) $@ && $(LN_S) libwine_unicode.so.$(SOVERSION) $@
91 libwine_unicode.a: $(OBJS)
92 $(RM) $@
93 $(AR) $@ $(OBJS)
94 $(RANLIB) $@
96 # --export-all don't work correctly because of dllwrap's bug
97 libwine_unicode.dll: $(OBJS) wine_unicode.def
98 $(DLLWRAP) $(DLLWRAPFLAGS) --def wine_unicode.def --implib libwine_unicode.a -o libwine_unicode.dll $(OBJS)
100 install_so: libwine_unicode.so.$(SOVERSION)
101 [ -d $(libdir) ] || $(MKDIR) $(libdir)
102 $(INSTALL_PROGRAM) libwine_unicode.so.$(SOVERSION) $(libdir)/libwine_unicode.so.$(SOVERSION)
103 cd $(libdir) && $(RM) libwine_unicode.so && $(LN_S) libwine_unicode.so.$(SOVERSION) libwine_unicode.so
105 install_a: libwine_unicode.a
106 [ -d $(libdir) ] || $(MKDIR) $(libdir)
107 $(INSTALL_DATA) libwine_unicode.a $(libdir)/libwine_unicode.a
109 install:: all $(LIBEXT:%=install_%)
111 uninstall::
112 cd $(libdir) && $(RM) libwine_unicode.a libwine_unicode.so libwine_unicode.so.$(SOVERSION)
114 clean::
115 $(RM) libwine_unicode.so.$(SOVERSION)
117 ### Dependencies: