Makeimplib.rules.in 774 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
INSTALLDIRS = $(DESTDIR)$(dlldir)
12 13 14

@MAKE_RULES@

15
all: $(MODULE:%=lib%.a)
16 17 18

# Rules for .a library

19
$(MODULE:%=lib%.a): $(OBJS) Makefile.in
20
	$(RM) $@
21
	$(AR) $(ARFLAGS) $@ $(OBJS)
22 23 24 25
	$(RANLIB) $@

# Rules for installation

26 27
install install-dev:: $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)
	$(INSTALL_DATA) $(MODULE:%=lib%.a) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
28

29 30
install-lib::

31
uninstall::
32
	$(RM) $(DESTDIR)$(dlldir)/$(MODULE:%=lib%.a)
33 34

# End of global library rules