Makeimplib.rules.in 709 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 15 16 17 18 19 20 21 22 23 24 25

@MAKE_RULES@

all: $(MODULE)

# Rules for .a library

$(MODULE): $(OBJS) Makefile.in
	$(RM) $@
	$(AR) $@ $(OBJS)
	$(RANLIB) $@

# Rules for installation

26
install install-dev:: $(MODULE) $(DESTDIR)$(dlldir)
27
	$(INSTALL_DATA) $(MODULE) $(DESTDIR)$(dlldir)/$(MODULE)
28

29 30
install-lib::

31
uninstall::
32
	$(RM) $(DESTDIR)$(dlldir)/$(MODULE)
33 34

# End of global library rules