wine/dlls/Makeimplib.rules.in
Rob Shearman 4500836635 makefiles: Simplify the use of the MODULE variable in static import libraries.
Don't include platform-specific information when declaring the name of
the static import libary to build. Instead, add this information in
Makeimplib.rules.in.
2008-03-10 19:12:54 +01:00

35 lines
774 B
Makefile

# Global rules for building a static import library -*-Makefile-*-
#
# Each individual makefile should define the following variables:
# MODULE : name of the main module being built
#
# plus all variables required by the global Make.rules.in
#
DLLFLAGS = @DLLFLAGS@
DEFS = -D__WINESRC__ $(EXTRADEFS)
INSTALLDIRS = $(DESTDIR)$(dlldir)
@MAKE_RULES@
all: $(MODULE:%=lib%.a)
# Rules for .a library
$(MODULE:%=lib%.a): $(OBJS) Makefile.in
$(RM) $@
$(AR) $(ARFLAGS) $@ $(OBJS)
$(RANLIB) $@
# Rules for installation
install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
$(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
install-lib::
uninstall::
$(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
# End of global library rules