wpp: Add explicit casts when mixing unsigned and signed integers.
[wine] / dlls / Makeimplib.rules.in
1 # Global rules for building a static import library     -*-Makefile-*-
2 #
3 # Each individual makefile should define the following variables:
4 # MODULE       : name of the main module being built
5 #
6 # plus all variables required by the global Make.rules.in
7 #
8
9 DLLFLAGS = @DLLFLAGS@
10 DEFS     = -D__WINESRC__ $(EXTRADEFS)
11 INSTALLDIRS = $(DESTDIR)$(dlldir)
12 MAKEDEPFLAGS = -xo -xcross.o
13
14 @MAKE_RULES@
15
16 all: $(MODULE:%=lib%.a) @CROSSTEST_DISABLE@ $(MODULE:%=lib%.cross.a)
17
18 # Rules for .a library
19
20 $(MODULE:%=lib%.a): $(OBJS) Makefile.in
21         $(RM) $@
22         $(AR) $(ARFLAGS) $@ $(OBJS)
23         $(RANLIB) $@
24
25 $(MODULE:%=lib%.cross.a): $(CROSSOBJS) Makefile.in
26         $(RM) $@
27         $(CROSSAR) $(ARFLAGS) $@ $(CROSSOBJS)
28         $(CROSSRANLIB) $@
29
30 # Rules for installation
31
32 install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
33         $(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
34
35 uninstall::
36         $(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
37
38 # End of global library rules