1 DEFS = @DLLFLAGS@ -D__WINE__ -DDLLDIR="\"$(dlldir)\""
2 TOPSRCDIR = @top_srcdir@
10 EXTRALIBS = @DLLIBS@ @CRTLIBS@
20 all: libwine.$(LIBEXT)
24 libwine.so.$(SOVERSION): $(OBJS)
25 $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LIBS) -o $@
27 libwine.so: libwine.so.$(SOVERSION)
28 $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@
36 $(DLLWRAP) $(DLLWRAPFLAGS) --export-all --implib libwine.a -o libwine.dll $(OBJS) $(EXTRALIBS)
38 .PHONY: install_so install_a install_dll
40 install_so: libwine.so.$(SOVERSION) dummy
41 $(MKINSTALLDIRS) $(libdir)
42 $(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(libdir)/libwine.so.$(SOVERSION)
43 cd $(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so
45 install_a: libwine.a dummy
46 $(MKINSTALLDIRS) $(libdir)
47 $(INSTALL_DATA) libwine.a $(libdir)/libwine.a
49 install_dll: libwine.dll dummy
50 $(MKINSTALLDIRS) $(libdir)
51 $(INSTALL_DATA) libwine.dll $(libdir)/libwine.dll
53 install:: $(LIBEXT:%=install_%)
56 $(RM) $(libdir)/libwine.a $(libdir)/libwine.dll $(libdir)/libwine.so $(libdir)/libwine.so.$(SOVERSION)
59 $(RM) libwine.so.$(SOVERSION)