Dimitrie O. Paun | 8b36681 | 2003-01-04 00:52:18 +0000 | [diff] [blame] | 1 | DEFS = @DLLFLAGS@ -D__WINESRC__ -DDLLDIR="\"$(dlldir)\"" |
Alexandre Julliard | bf9130a | 1996-10-13 17:45:47 +0000 | [diff] [blame] | 2 | TOPSRCDIR = @top_srcdir@ |
| 3 | TOPOBJDIR = .. |
| 4 | SRCDIR = @srcdir@ |
| 5 | VPATH = @srcdir@ |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 6 | LIBEXT = @LIBEXT@ |
Alexandre Julliard | 7e6ae4b | 1996-12-08 19:25:27 +0000 | [diff] [blame] | 7 | MODULE = none |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 8 | SOVERSION = 1.0 |
| 9 | SONAME = libwine.so |
Alexandre Julliard | 7bf07d1 | 2002-08-03 00:25:59 +0000 | [diff] [blame] | 10 | EXTRALIBS = @DLLIBS@ @CRTLIBS@ |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 11 | |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 12 | C_SRCS = \ |
Alexandre Julliard | 4144b5b | 2002-06-20 23:21:27 +0000 | [diff] [blame] | 13 | config.c \ |
Alexandre Julliard | 94613ab | 2000-11-05 04:51:34 +0000 | [diff] [blame] | 14 | debug.c \ |
Alexandre Julliard | 598412e | 2001-01-17 20:22:22 +0000 | [diff] [blame] | 15 | errno.c \ |
Alexandre Julliard | 914406f | 2000-11-14 01:54:49 +0000 | [diff] [blame] | 16 | ldt.c \ |
Alexandre Julliard | e087508 | 2000-11-08 04:33:20 +0000 | [diff] [blame] | 17 | loader.c \ |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 18 | port.c |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 19 | |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 20 | all: libwine.$(LIBEXT) |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 21 | |
| 22 | @MAKE_RULES@ |
| 23 | |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 24 | libwine.so.$(SOVERSION): $(OBJS) |
Alexandre Julliard | 562089b | 2001-12-31 22:28:35 +0000 | [diff] [blame] | 25 | $(LDSHARED) $(OBJS) $(EXTRALIBS) $(LIBS) -o $@ |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 26 | |
| 27 | libwine.so: libwine.so.$(SOVERSION) |
| 28 | $(RM) $@ && $(LN_S) libwine.so.$(SOVERSION) $@ |
| 29 | |
| 30 | libwine.a: $(OBJS) |
| 31 | $(RM) $@ |
| 32 | $(AR) $@ $(OBJS) |
| 33 | $(RANLIB) $@ |
| 34 | |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 35 | libwine.dll: $(OBJS) |
Alexandre Julliard | c5b99e7 | 2002-12-19 23:43:02 +0000 | [diff] [blame] | 36 | $(DLLWRAP) --export-all --implib libwine.a -o libwine.dll $(OBJS) $(EXTRALIBS) |
Hidenori Takeshima | d48ca94 | 2000-12-22 22:28:00 +0000 | [diff] [blame] | 37 | |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 38 | .PHONY: install_so install_a install_dll |
| 39 | |
| 40 | install_so: libwine.so.$(SOVERSION) dummy |
Alexandre Julliard | ce830a9 | 2002-05-09 04:31:39 +0000 | [diff] [blame] | 41 | $(MKINSTALLDIRS) $(libdir) |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 42 | $(INSTALL_PROGRAM) libwine.so.$(SOVERSION) $(libdir)/libwine.so.$(SOVERSION) |
| 43 | cd $(libdir) && $(RM) libwine.so && $(LN_S) libwine.so.$(SOVERSION) libwine.so |
| 44 | |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 45 | install_a: libwine.a dummy |
Alexandre Julliard | ce830a9 | 2002-05-09 04:31:39 +0000 | [diff] [blame] | 46 | $(MKINSTALLDIRS) $(libdir) |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 47 | $(INSTALL_DATA) libwine.a $(libdir)/libwine.a |
| 48 | |
Alexandre Julliard | f673b71 | 2002-06-14 23:48:27 +0000 | [diff] [blame] | 49 | install_dll: libwine.dll dummy |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 50 | $(MKINSTALLDIRS) $(libdir) |
| 51 | $(INSTALL_DATA) libwine.dll $(libdir)/libwine.dll |
| 52 | |
| 53 | install:: $(LIBEXT:%=install_%) |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 54 | |
| 55 | uninstall:: |
Alexandre Julliard | fc01b72 | 2002-05-12 03:16:39 +0000 | [diff] [blame] | 56 | $(RM) $(libdir)/libwine.a $(libdir)/libwine.dll $(libdir)/libwine.so $(libdir)/libwine.so.$(SOVERSION) |
Alexandre Julliard | 2fa4f76 | 2000-10-31 00:20:51 +0000 | [diff] [blame] | 57 | |
| 58 | clean:: |
| 59 | $(RM) libwine.so.$(SOVERSION) |
| 60 | |
Alexandre Julliard | d7d4fdf | 1995-12-26 15:05:24 +0000 | [diff] [blame] | 61 | ### Dependencies: |