Export the debug API as functions instead of pointers.
[wine] / library / Makefile.in
1 DEFS      = @DLLFLAGS@ -D__WINE__ -DDLLDIR="\"$(dlldir)\""
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 EXTRALIBS = @DLLIBS@
11
12 C_SRCS = \
13         debug.c \
14         errno.c \
15         ldt.c \
16         loader.c \
17         port.c
18
19 all: libwine.$(LIBEXT)
20
21 @MAKE_RULES@
22
23 libwine.so.$(SOVERSION): $(OBJS)
24         $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LIBS) -o $@
25
26 libwine.so: libwine.so.$(SOVERSION)
27         $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@
28
29 libwine.a: $(OBJS)
30         $(RM) $@
31         $(AR) $@ $(OBJS)
32         $(RANLIB) $@
33
34 libwine.dll: $(OBJS)
35         $(DLLWRAP) $(DLLWRAPFLAGS) --export-all --implib libwine.a -o libwine.dll $(OBJS) -lmsvcrt
36
37 install_so: libwine.so.$(SOVERSION)
38         $(MKINSTALLDIRS) $(libdir)
39         $(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(libdir)/libwine.so.$(SOVERSION)
40         cd $(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so
41
42 install_a: libwine.a
43         $(MKINSTALLDIRS) $(libdir)
44         $(INSTALL_DATA) libwine.a $(libdir)/libwine.a
45
46 install_dll: libwine.dll
47         $(MKINSTALLDIRS) $(libdir)
48         $(INSTALL_DATA) libwine.dll $(libdir)/libwine.dll
49
50 install:: $(LIBEXT:%=install_%)
51
52 uninstall::
53         $(RM) $(libdir)/libwine.a $(libdir)/libwine.dll $(libdir)/libwine.so $(libdir)/libwine.so.$(SOVERSION)
54
55 clean::
56         $(RM) libwine.so.$(SOVERSION)
57
58 ### Dependencies: