Don't keep main exe and dlls handles open when the file is on
[wine] / library / Makefile.in
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.so
10
11 C_SRCS = \
12         debug.c \
13         errno.c \
14         ldt.c \
15         loader.c \
16         port.c
17
18 all: libwine.$(LIBEXT)
19
20 @MAKE_RULES@
21
22 libwine.so.$(SOVERSION): $(OBJS)
23         $(LDSHARED) $(OBJS) $(LIBS) -o $@
24
25 libwine.so: libwine.so.$(SOVERSION)
26         $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@
27
28 libwine.a: $(OBJS)
29         $(RM) $@
30         $(AR) $@ $(OBJS)
31         $(RANLIB) $@
32
33 libwine.dll: $(OBJS)
34         $(DLLWRAP) $(DLLWRAPFLAGS) --export-all --implib libwine.a -o libwine.dll $(OBJS)
35
36 install_so: libwine.so.$(SOVERSION)
37         [ -d $(libdir) ] || $(MKDIR) $(libdir)
38         $(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(libdir)/libwine.so.$(SOVERSION)
39         cd $(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so
40
41 install_a: libwine.a
42         [ -d $(libdir) ] || $(MKDIR) $(libdir)
43         $(INSTALL_DATA) libwine.a $(libdir)/libwine.a
44
45 install:: all $(LIBEXT:%=install_%)
46
47 uninstall::
48         cd $(libdir) && $(RM) libwine.a libwine.so libwine.so.$(SOVERSION)
49
50 clean::
51         $(RM) libwine.so.$(SOVERSION)
52
53 ### Dependencies: