Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 1 | # Global rules for building a static import library -*-Makefile-*- |
| 2 | # |
| 3 | # Each individual makefile should define the following variables: |
| 4 | # MODULE : name of the main module being built |
| 5 | # |
| 6 | # plus all variables required by the global Make.rules.in |
| 7 | # |
| 8 | |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 9 | DLLFLAGS = @DLLFLAGS@ |
Mike McCormack | 6d9af55 | 2006-04-17 18:17:18 +0900 | [diff] [blame] | 10 | DEFS = -D__WINESRC__ $(EXTRADEFS) |
Alexandre Julliard | 2886e9b | 2006-08-07 17:48:18 +0200 | [diff] [blame] | 11 | INSTALLDIRS = $(DESTDIR)$(dlldir) |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 12 | |
| 13 | @MAKE_RULES@ |
| 14 | |
Rob Shearman | 4500836 | 2008-03-10 16:35:33 +0000 | [diff] [blame] | 15 | all: $(MODULE:%=lib%.a) |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 16 | |
| 17 | # Rules for .a library |
| 18 | |
Rob Shearman | 4500836 | 2008-03-10 16:35:33 +0000 | [diff] [blame] | 19 | $(MODULE:%=lib%.a): $(OBJS) Makefile.in |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 20 | $(RM) $@ |
Rob Shearman | 0c694d7 | 2008-03-04 15:53:41 +0000 | [diff] [blame] | 21 | $(AR) $(ARFLAGS) $@ $(OBJS) |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 22 | $(RANLIB) $@ |
| 23 | |
Alexandre Julliard | 1f25421 | 2010-01-23 20:26:49 +0100 | [diff] [blame] | 24 | $(MODULE:%=lib%.cross.a): $(CROSSOBJS) Makefile.in |
| 25 | $(RM) $@ |
| 26 | $(CROSSAR) $(ARFLAGS) $@ $(CROSSOBJS) |
| 27 | $(CROSSRANLIB) $@ |
| 28 | |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 29 | # Rules for installation |
| 30 | |
Rob Shearman | 4500836 | 2008-03-10 16:35:33 +0000 | [diff] [blame] | 31 | install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir) |
| 32 | $(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a) |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 33 | |
| 34 | uninstall:: |
Rob Shearman | 4500836 | 2008-03-10 16:35:33 +0000 | [diff] [blame] | 35 | $(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a) |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 36 | |
Alexandre Julliard | 633b12d | 2005-08-25 12:14:13 +0000 | [diff] [blame] | 37 | # End of global library rules |