stash
[wine/wine64.git] / dlls / Makeimplib.rules.in
blob380101fa63d1e2e31b2cbb434642eea98a197fe4
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
9 DLLFLAGS = @DLLFLAGS@
10 DEFS     = -D__WINESRC__ $(EXTRADEFS)
11 INSTALLDIRS = $(DESTDIR)$(dlldir)
13 @MAKE_RULES@
15 all: $(MODULE:%=lib%.a)
17 # Rules for .a library
19 $(MODULE:%=lib%.a): $(OBJS) Makefile.in
20         $(RM) $@
21         $(AR) $(ARFLAGS) $@ $(OBJS)
22         $(RANLIB) $@
24 # Rules for installation
26 install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
27         $(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
29 uninstall::
30         $(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
32 # End of global library rules