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) @CROSSTEST_DISABLE@ $(MODULE:%=lib%.cross.a)
17 # Rules for .a library
19 $(MODULE:%=lib%.a): $(OBJS) Makefile.in
21 $(AR) $(ARFLAGS) $@ $(OBJS)
24 $(MODULE:%=lib%.cross.a): $(CROSSOBJS) Makefile.in
26 $(CROSSAR) $(ARFLAGS) $@ $(CROSSOBJS)
29 # Rules for installation
31 install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
32 $(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
35 $(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
37 # End of global library rules