1 TOPSRCDIR
= @top_srcdir@
7 MODULE
= libwine.
$(LIBEXT
)
8 VERSCRIPT
= $(SRCDIR
)/wine.map
9 EXTRALIBS
= $(LIBPORT
) @LIBDL@ @CRTLIBS@
10 DEFS
= -D__WINESRC__
-DWINE_UNICODE_API
=""
14 SONAME
= libwine.so.
$(SOVERSION
)
15 DYNAME
= libwine.
$(SOVERSION
).dylib
17 INSTALLDIRS
= $(DESTDIR
)$(libdir)
99 all: $(MODULE
) $(MODULE
:.dll
=.a
)
103 # Special defines needed for config.c
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
)
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
) $@
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
$@
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-
%)
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
177 $(RM
) libwine.so.
$(SOVERSION
) libwine.so.
$(VERSION
)
180 @cd
$(TOOLSDIR
)/tools
&& $(MAKE
) relpath
182 @DEPENDENCIES@
# everything below this line is overwritten by make depend