blob: 2bc600580e2bd2efb9a5d04d8cbaacf8581c719e [file] [log] [blame]
Dimitrie O. Paun8b366812003-01-04 00:52:18 +00001DEFS = @DLLFLAGS@ -D__WINESRC__ -DDLLDIR="\"$(dlldir)\""
Alexandre Julliardbf9130a1996-10-13 17:45:47 +00002TOPSRCDIR = @top_srcdir@
3TOPOBJDIR = ..
4SRCDIR = @srcdir@
5VPATH = @srcdir@
Alexandre Julliard2fa4f762000-10-31 00:20:51 +00006LIBEXT = @LIBEXT@
Alexandre Julliard7e6ae4b1996-12-08 19:25:27 +00007MODULE = none
Alexandre Julliard2fa4f762000-10-31 00:20:51 +00008SOVERSION = 1.0
9SONAME = libwine.so
Alexandre Julliard7bf07d12002-08-03 00:25:59 +000010EXTRALIBS = @DLLIBS@ @CRTLIBS@
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000011
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000012C_SRCS = \
Alexandre Julliard4144b5b2002-06-20 23:21:27 +000013 config.c \
Alexandre Julliard94613ab2000-11-05 04:51:34 +000014 debug.c \
Alexandre Julliard598412e2001-01-17 20:22:22 +000015 errno.c \
Alexandre Julliard914406f2000-11-14 01:54:49 +000016 ldt.c \
Alexandre Julliarde0875082000-11-08 04:33:20 +000017 loader.c \
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000018 port.c
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000019
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000020all: libwine.$(LIBEXT)
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000021
22@MAKE_RULES@
23
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000024libwine.so.$(SOVERSION): $(OBJS)
Alexandre Julliard562089b2001-12-31 22:28:35 +000025 $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LIBS) -o $@
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000026
27libwine.so: libwine.so.$(SOVERSION)
28 $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@
29
30libwine.a: $(OBJS)
31 $(RM) $@
32 $(AR) $@ $(OBJS)
33 $(RANLIB) $@
34
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000035libwine.dll: $(OBJS)
Alexandre Julliardc5b99e72002-12-19 23:43:02 +000036 $(DLLWRAP) --export-all --implib libwine.a -o libwine.dll $(OBJS) $(EXTRALIBS)
Hidenori Takeshimad48ca942000-12-22 22:28:00 +000037
Alexandre Julliardf673b712002-06-14 23:48:27 +000038.PHONY: install_so install_a install_dll
39
40install_so: libwine.so.$(SOVERSION) dummy
Alexandre Julliardce830a92002-05-09 04:31:39 +000041 $(MKINSTALLDIRS) $(libdir)
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000042 $(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(libdir)/libwine.so.$(SOVERSION)
43 cd $(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so
44
Alexandre Julliardf673b712002-06-14 23:48:27 +000045install_a: libwine.a dummy
Alexandre Julliardce830a92002-05-09 04:31:39 +000046 $(MKINSTALLDIRS) $(libdir)
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000047 $(INSTALL_DATA) libwine.a $(libdir)/libwine.a
48
Alexandre Julliardf673b712002-06-14 23:48:27 +000049install_dll: libwine.dll dummy
Alexandre Julliardfc01b722002-05-12 03:16:39 +000050 $(MKINSTALLDIRS) $(libdir)
51 $(INSTALL_DATA) libwine.dll $(libdir)/libwine.dll
52
53install:: $(LIBEXT:%=install_%)
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000054
55uninstall::
Alexandre Julliardfc01b722002-05-12 03:16:39 +000056 $(RM) $(libdir)/libwine.a $(libdir)/libwine.dll $(libdir)/libwine.so $(libdir)/libwine.so.$(SOVERSION)
Alexandre Julliard2fa4f762000-10-31 00:20:51 +000057
58clean::
59 $(RM) libwine.so.$(SOVERSION)
60
Alexandre Julliardd7d4fdf1995-12-26 15:05:24 +000061### Dependencies: