Makeimplib.rules.in 673 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
# 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@
10
DEFS     = -D__WINESRC__ $(EXTRADEFS)
11
MAKEDEPFLAGS = -xo -xcross.o
12 13 14

@MAKE_RULES@

15
all: $(MODULE) @CROSSTEST_DISABLE@ $(MODULE:.a=.cross.a)
16 17 18

# Rules for .a library

19
$(MODULE): $(OBJS) Makefile.in
20
	$(RM) $@
21
	$(AR) $(ARFLAGS) $@ $(OBJS)
22 23
	$(RANLIB) $@

24
$(MODULE:.a=.cross.a): $(CROSSOBJS) Makefile.in
25 26 27 28
	$(RM) $@
	$(CROSSAR) $(ARFLAGS) $@ $(CROSSOBJS)
	$(CROSSRANLIB) $@

29
# End of global library rules