2005-08-25 14:14:13 +02: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 11:17:18 +02:00
|
|
|
DEFS = -D__WINESRC__ $(EXTRADEFS)
|
2010-08-03 19:51:38 +02:00
|
|
|
MAKEDEPFLAGS = -xo -xcross.o
|
2005-08-25 14:14:13 +02:00
|
|
|
|
|
|
|
@MAKE_RULES@
|
|
|
|
|
2011-07-09 21:13:28 +02:00
|
|
|
all: $(MODULE) @CROSSTEST_DISABLE@ $(MODULE:.a=.cross.a)
|
2005-08-25 14:14:13 +02:00
|
|
|
|
|
|
|
# Rules for .a library
|
|
|
|
|
2011-07-09 21:13:28 +02:00
|
|
|
$(MODULE): $(OBJS) Makefile.in
|
2005-08-25 14:14:13 +02:00
|
|
|
$(RM) $@
|
2008-03-04 16:53:41 +01:00
|
|
|
$(AR) $(ARFLAGS) $@ $(OBJS)
|
2005-08-25 14:14:13 +02:00
|
|
|
$(RANLIB) $@
|
|
|
|
|
2011-07-09 21:13:28 +02:00
|
|
|
$(MODULE:.a=.cross.a): $(CROSSOBJS) Makefile.in
|
2010-01-23 20:26:49 +01:00
|
|
|
$(RM) $@
|
|
|
|
$(CROSSAR) $(ARFLAGS) $@ $(CROSSOBJS)
|
|
|
|
$(CROSSRANLIB) $@
|
|
|
|
|
2005-08-25 14:14:13 +02:00
|
|
|
# End of global library rules
|