inetcpl.cpl: Minor fix, remove useless code.
[wine.git] / libs / wine / Makefile.in
blobb8c713a8cdb5cbd33d980a0c87e57d972c5d3277
1 DLLFLAGS = @DLLFLAGS@
2 MODULE = libwine.$(LIBEXT)
3 VERSCRIPT = $(srcdir)/wine.map
4 EXTRALIBS = $(LIBPORT) @LIBDL@ @CRTLIBS@ @COREFOUNDATIONLIB@ @CORESERVICESLIB@
5 DEFS = -D__WINESRC__ -DWINE_UNICODE_API=""
7 VERSION = 1.0
8 SOVERSION = 1
9 SONAME = libwine.so.$(SOVERSION)
10 DYNAME = libwine.$(SOVERSION).dylib
12 INSTALLDIRS = $(DESTDIR)$(libdir)
14 C_SRCS = \
15 c_037.c \
16 c_10000.c \
17 c_10006.c \
18 c_10007.c \
19 c_10029.c \
20 c_1006.c \
21 c_10079.c \
22 c_10081.c \
23 c_1026.c \
24 c_1250.c \
25 c_1251.c \
26 c_1252.c \
27 c_1253.c \
28 c_1254.c \
29 c_1255.c \
30 c_1256.c \
31 c_1257.c \
32 c_1258.c \
33 c_1361.c \
34 c_20127.c \
35 c_20866.c \
36 c_20932.c \
37 c_21866.c \
38 c_28591.c \
39 c_28592.c \
40 c_28593.c \
41 c_28594.c \
42 c_28595.c \
43 c_28596.c \
44 c_28597.c \
45 c_28598.c \
46 c_28599.c \
47 c_28600.c \
48 c_28603.c \
49 c_28604.c \
50 c_28605.c \
51 c_28606.c \
52 c_424.c \
53 c_437.c \
54 c_500.c \
55 c_737.c \
56 c_775.c \
57 c_850.c \
58 c_852.c \
59 c_855.c \
60 c_856.c \
61 c_857.c \
62 c_860.c \
63 c_861.c \
64 c_862.c \
65 c_863.c \
66 c_864.c \
67 c_865.c \
68 c_866.c \
69 c_869.c \
70 c_874.c \
71 c_875.c \
72 c_878.c \
73 c_932.c \
74 c_936.c \
75 c_949.c \
76 c_950.c \
77 casemap.c \
78 collation.c \
79 compose.c \
80 config.c \
81 cptable.c \
82 debug.c \
83 fold.c \
84 ldt.c \
85 loader.c \
86 mbtowc.c \
87 mmap.c \
88 port.c \
89 sortkey.c \
90 string.c \
91 utf8.c \
92 wctomb.c \
93 wctype.c
95 EXTRA_OBJS = version.o
97 all: $(MODULE) $(MODULE:.dll=.a)
99 @MAKE_RULES@
101 # Special defines needed for config.c
103 CONFIGDIRS = \
104 -DBINDIR='"$(bindir)"' \
105 -DDLLDIR='"$(dlldir)"' \
106 -DLIB_TO_BINDIR=\"`$(RELPATH) $(libdir) $(bindir)`\" \
107 -DLIB_TO_DLLDIR=\"`$(RELPATH) $(libdir) $(dlldir)`\" \
108 -DBIN_TO_DLLDIR=\"`$(RELPATH) $(bindir) $(dlldir)`\" \
109 -DBIN_TO_DATADIR=\"`$(RELPATH) $(bindir) $(datadir)/wine`\"
111 config.o: config.c $(RELPATH)
112 $(CC) -c $(ALLCFLAGS) -o $@ $(srcdir)/config.c $(CONFIGDIRS)
114 # Linking rules
116 libwine.so.$(VERSION): $(OBJS) $(VERSCRIPT) Makefile.in
117 $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
119 libwine.so.$(SOVERSION): libwine.so.$(VERSION)
120 $(RM) $@ && $(LN_S) libwine.so.$(VERSION) $@
122 libwine.so: libwine.so.$(SOVERSION)
123 $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@
125 libwine.a: wine.def
126 $(DLLTOOL) -l $@ -d $(srcdir)/wine.def
128 libwine.dll: $(OBJS) wine.def Makefile.in
129 $(DLLWRAP) --def $(srcdir)/wine.def -o $@ $(OBJS) $(EXTRALIBS)
131 DYLIB_LDFLAGS = -compatibility_version $(SOVERSION) -current_version $(VERSION)
133 libwine.$(VERSION).dylib: $(OBJS) $(RELPATH) Makefile.in
134 $(LDSHARED) -install_name @rpath/$(DYNAME) $(DYLIB_LDFLAGS) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
136 libwine.$(SOVERSION).dylib: libwine.$(VERSION).dylib
137 $(RM) $@ && $(LN_S) libwine.$(VERSION).dylib $@
139 libwine.dylib: libwine.$(SOVERSION).dylib
140 $(RM) $@ && $(LN_S) libwine.$(SOVERSION).dylib $@
142 # Install rules
144 .PHONY: install-lib-so install-lib-dll install-lib-dylib install-dev-so install-dev-dll install-dev-dylib
146 install-lib-so: libwine.so.$(VERSION) $(DESTDIR)$(libdir) dummy
147 $(INSTALL_PROGRAM) libwine.so.$(VERSION) $(DESTDIR)$(libdir)/libwine.so.$(VERSION)
148 cd $(DESTDIR)$(libdir) && $(RM) libwine.so.$(SOVERSION) && $(LN_S) libwine.so.$(VERSION) libwine.so.$(SOVERSION)
150 install-lib-dll: libwine.dll $(DESTDIR)$(libdir) dummy
151 $(INSTALL_DATA) libwine.dll $(DESTDIR)$(libdir)/libwine.dll
153 install-lib-dylib: libwine.$(VERSION).dylib $(DESTDIR)$(libdir) dummy
154 $(INSTALL_PROGRAM) libwine.$(VERSION).dylib $(DESTDIR)$(libdir)/libwine.$(VERSION).dylib
155 cd $(DESTDIR)$(libdir) && $(RM) libwine.$(SOVERSION).dylib && $(LN_S) libwine.$(VERSION).dylib libwine.$(SOVERSION).dylib
157 install-dev-so: $(DESTDIR)$(libdir) dummy
158 cd $(DESTDIR)$(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(VERSION) libwine.so
160 install-dev-dll: libwine.a $(DESTDIR)$(libdir) dummy
161 $(INSTALL_DATA) libwine.a $(DESTDIR)$(libdir)/libwine.a
163 install-dev-dylib: $(DESTDIR)$(libdir) dummy
164 cd $(DESTDIR)$(libdir) && $(RM) libwine.dylib && $(LN_S) libwine.$(VERSION).dylib libwine.dylib
166 install install-lib:: $(LIBEXT:%=install-lib-%)
167 install install-dev:: $(LIBEXT:%=install-dev-%)
169 uninstall::
170 -cd $(DESTDIR)$(libdir) && $(RM) libwine.a libwine.dll libwine.so libwine.so.$(VERSION) \
171 libwine.so.$(SOVERSION) libwine.dylib libwine.$(VERSION).dylib libwine.$(SOVERSION).dylib
173 version.c: dummy
174 version=`(GIT_DIR=$(top_srcdir)/.git git describe HEAD 2>/dev/null || echo "wine-@PACKAGE_VERSION@") | sed -n -e '$$s/\(.*\)/const char wine_build[] = "\1";/p'` && (echo $$version | cmp -s - $@) || echo $$version >$@ || ($(RM) $@ && exit 1)
176 clean::
177 $(RM) libwine.so.$(SOVERSION) libwine.so.$(VERSION) version.c
179 $(RELPATH):
180 @cd $(TOOLSDIR)/tools && $(MAKE) relpath$(TOOLSEXT)