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)
12 MAKEDEPFLAGS = -xo -xcross.o
16 all: $(MODULE:%=lib%.a) @CROSSTEST_DISABLE@ $(MODULE:%=lib%.cross.a)
18 # Rules for .a library
20 $(MODULE:%=lib%.a): $(OBJS) Makefile.in
22 $(AR) $(ARFLAGS) $@ $(OBJS)
25 $(MODULE:%=lib%.cross.a): $(CROSSOBJS) Makefile.in
27 $(CROSSAR) $(ARFLAGS) $@ $(CROSSOBJS)
30 # Rules for installation
32 install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
33 $(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
36 $(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
38 # End of global library rules