rsaenh/tests: Fix const-ness of parameters to printBytes().
[wine.git] / libs / wine / Makefile.in
blob11278b743a419df65b1131038b99cdf37e2ce743
1 TOPSRCDIR = @top_srcdir@
2 TOPOBJDIR = ../..
3 SRCDIR = @srcdir@
4 VPATH = @srcdir@
5 DLLFLAGS = @DLLFLAGS@
6 LIBEXT = @LIBEXT@
7 MODULE = libwine.$(LIBEXT)
8 VERSCRIPT = $(SRCDIR)/wine.map
9 EXTRALIBS = $(LIBPORT) @LIBDL@ @CRTLIBS@
10 DEFS = -D__WINESRC__ -DWINE_UNICODE_API=""
12 VERSION = 1.0
13 SOVERSION = 1
14 SONAME = libwine.so.$(SOVERSION)
15 DYNAME = libwine.$(SOVERSION).dylib
17 INSTALLDIRS = $(DESTDIR)$(libdir)
19 C_SRCS = \
20 casemap.c \
21 collation.c \
22 compose.c \
23 config.c \
24 cptable.c \
25 debug.c \
26 fold.c \
27 ldt.c \
28 loader.c \
29 mbtowc.c \
30 mmap.c \
31 port.c \
32 sortkey.c \
33 string.c \
34 utf8.c \
35 wctomb.c \
36 wctype.c \
37 c_037.c \
38 c_424.c \
39 c_437.c \
40 c_500.c \
41 c_737.c \
42 c_775.c \
43 c_850.c \
44 c_852.c \
45 c_855.c \
46 c_856.c \
47 c_857.c \
48 c_860.c \
49 c_861.c \
50 c_862.c \
51 c_863.c \
52 c_864.c \
53 c_865.c \
54 c_866.c \
55 c_869.c \
56 c_874.c \
57 c_875.c \
58 c_878.c \
59 c_932.c \
60 c_936.c \
61 c_949.c \
62 c_950.c \
63 c_1006.c \
64 c_1026.c \
65 c_1250.c \
66 c_1251.c \
67 c_1252.c \
68 c_1253.c \
69 c_1254.c \
70 c_1255.c \
71 c_1256.c \
72 c_1257.c \
73 c_1258.c \
74 c_10000.c \
75 c_10006.c \
76 c_10007.c \
77 c_10029.c \
78 c_10079.c \
79 c_10081.c \
80 c_20127.c \
81 c_20866.c \
82 c_20932.c \
83 c_21866.c \
84 c_28591.c \
85 c_28592.c \
86 c_28593.c \
87 c_28594.c \
88 c_28595.c \
89 c_28596.c \
90 c_28597.c \
91 c_28598.c \
92 c_28599.c \
93 c_28600.c \
94 c_28603.c \
95 c_28604.c \
96 c_28605.c \
97 c_28606.c
99 all: $(MODULE) $(MODULE:.dll=.a)
101 @MAKE_RULES@
103 # Special defines needed for config.c
105 CONFIGDIRS = \
106 -DBINDIR='"$(bindir)"' \
107 -DDLLDIR='"$(dlldir)"' \
108 -DLIB_TO_BINDIR=\"`$(RELPATH) $(libdir) $(bindir)`\" \
109 -DLIB_TO_DLLDIR=\"`$(RELPATH) $(libdir) $(dlldir)`\" \
110 -DBIN_TO_DLLDIR=\"`$(RELPATH) $(bindir) $(dlldir)`\" \
111 -DLIB_TO_DATADIR=\"`$(RELPATH) $(libdir) $(datadir)/wine`\" \
112 -DBIN_TO_DATADIR=\"`$(RELPATH) $(bindir) $(datadir)/wine`\"
114 config.o: config.c $(RELPATH)
115 $(CC) -c $(ALLCFLAGS) -o $@ $(SRCDIR)/config.c $(CONFIGDIRS)
117 # Linking rules
119 libwine.so.$(VERSION): $(OBJS) $(VERSCRIPT) Makefile.in
120 $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
122 libwine.so.$(SOVERSION): libwine.so.$(VERSION)
123 $(RM) $@ && $(LN_S) libwine.so.$(VERSION) $@
125 libwine.so: libwine.so.$(SOVERSION)
126 $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@
128 libwine.a: wine.def
129 $(DLLTOOL) -l $@ -d $(SRCDIR)/wine.def
131 libwine.dll: $(OBJS) wine.def Makefile.in
132 $(DLLWRAP) --def $(SRCDIR)/wine.def -o $@ $(OBJS) $(EXTRALIBS)
134 DYLIB_LDFLAGS = -compatibility_version $(SOVERSION) -current_version $(VERSION)
136 libwine.$(VERSION).dylib: $(OBJS) $(RELPATH) Makefile.in
137 $(LDSHARED) -install_name $(libdir)/$(DYNAME) $(DYLIB_LDFLAGS) $(OBJS) $(EXTRALIBS) $(LDFLAGS) $(LIBS) -o $@
139 libwine.$(SOVERSION).dylib: libwine.$(VERSION).dylib
140 cp -p libwine.$(VERSION).dylib $@ && install_name_tool -id @executable_path/`$(RELPATH) $(bindir) $(libdir)`/$(DYNAME) $@ || $(RM) $@
142 libwine.dylib: libwine.$(SOVERSION).dylib
143 $(RM) $@ && $(LN_S) libwine.$(SOVERSION).dylib $@
145 # Install rules
147 .PHONY: install-lib-so install-lib-dll install-lib-dylib install-dev-so install-dev-dll install-dev-dylib
149 install-lib-so: libwine.so.$(VERSION) $(DESTDIR)$(libdir) dummy
150 $(INSTALL_PROGRAM) libwine.so.$(VERSION) $(DESTDIR)$(libdir)/libwine.so.$(VERSION)
151 cd $(DESTDIR)$(libdir) && $(RM) libwine.so.$(SOVERSION) && $(LN_S) libwine.so.$(VERSION) libwine.so.$(SOVERSION)
153 install-lib-dll: libwine.dll $(DESTDIR)$(libdir) dummy
154 $(INSTALL_DATA) libwine.dll $(DESTDIR)$(libdir)/libwine.dll
156 install-lib-dylib: libwine.$(VERSION).dylib $(DESTDIR)$(libdir) dummy
157 $(INSTALL_PROGRAM) libwine.$(VERSION).dylib $(DESTDIR)$(libdir)/libwine.$(VERSION).dylib
158 cd $(DESTDIR)$(libdir) && $(RM) libwine.$(SOVERSION).dylib && $(LN_S) libwine.$(VERSION).dylib libwine.$(SOVERSION).dylib
160 install-dev-so: $(DESTDIR)$(libdir) dummy
161 cd $(DESTDIR)$(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(VERSION) libwine.so
163 install-dev-dll: libwine.a $(DESTDIR)$(libdir) dummy
164 $(INSTALL_DATA) libwine.a $(DESTDIR)$(libdir)/libwine.a
166 install-dev-dylib: $(DESTDIR)$(libdir) dummy
167 cd $(DESTDIR)$(libdir) && $(RM) libwine.dylib && $(LN_S) libwine.$(VERSION).dylib libwine.dylib
169 install install-lib:: $(LIBEXT:%=install-lib-%)
170 install install-dev:: $(LIBEXT:%=install-dev-%)
172 uninstall::
173 -cd $(DESTDIR)$(libdir) && $(RM) libwine.a libwine.dll libwine.so libwine.so.$(VERSION) \
174 libwine.so.$(SOVERSION) libwine.dylib libwine.$(VERSION).dylib libwine.$(SOVERSION).dylib
176 clean::
177 $(RM) libwine.so.$(SOVERSION) libwine.so.$(VERSION)
179 $(RELPATH):
180 @cd $(TOOLSDIR)/tools && $(MAKE) relpath
182 @DEPENDENCIES@ # everything below this line is overwritten by make depend