2005-08-25 12:14:13 +00:00
|
|
|
# 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@
|
2006-04-17 09:17:18 +00:00
|
|
|
DEFS = -D__WINESRC__ $(EXTRADEFS)
|
2006-08-07 15:48:18 +00:00
|
|
|
INSTALLDIRS = $(DESTDIR)$(dlldir)
|
2010-08-03 17:51:38 +00:00
|
|
|
MAKEDEPFLAGS = -xo -xcross.o
|
2005-08-25 12:14:13 +00:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2010-07-26 10:13:47 +00:00
|
|
|
all: $(MODULE:%=lib%.a) @CROSSTEST_DISABLE@ $(MODULE:%=lib%.cross.a)
|
2005-08-25 12:14:13 +00:00
|
|
|
|
|
|
|
# Rules for .a library
|
|
|
|
|
2008-03-10 16:35:33 +00:00
|
|
|
$(MODULE:%=lib%.a): $(OBJS) Makefile.in
|
2005-08-25 12:14:13 +00:00
|
|
|
$(RM) $@
|
2008-03-04 15:53:41 +00:00
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
2005-08-25 12:14:13 +00:00
|
|
|
$(RANLIB) $@
|
|
|
|
|
2010-01-23 19:26:49 +00:00
|
|
|
$(MODULE:%=lib%.cross.a): $(CROSSOBJS) Makefile.in
|
|
|
|
$(RM) $@
|
|
|
|
$(CROSSAR) $(ARFLAGS) $@ $(CROSSOBJS)
|
|
|
|
$(CROSSRANLIB) $@
|
|
|
|
|
2005-08-25 12:14:13 +00:00
|
|
|
# Rules for installation
|
|
|
|
|
2008-03-10 16:35:33 +00:00
|
|
|
install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
|
|
|
|
$(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
|
2005-08-25 12:14:13 +00:00
|
|
|
|
|
|
|
uninstall::
|
2008-03-10 16:35:33 +00:00
|
|
|
$(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
|
2005-08-25 12:14:13 +00:00
|
|
|
|
|
|
|
# End of global library rules
|