1 # Global rules for building a static import library -*-Makefile-*-
3 # Each individual makefile should define the following variables:
4 # MODULE : name of the main module being built
6 # plus all variables required by the global Make.rules.in
10 DEFS = -D__WINESRC__ $(EXTRADEFS)
11 INSTALLDIRS = $(DESTDIR)$(dlldir)
15 all: $(MODULE:%=lib%.a)
17 # Rules for .a library
19 $(MODULE:%=lib%.a): $(OBJS) Makefile.in
21 $(AR) $(ARFLAGS) $@ $(OBJS)
24 # Rules for installation
26 install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
27 $(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
32 $(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
34 # End of global library rules