2
0

dll-common.mk 657 B

12345678910111213141516171819202122
  1. # -*-makefile-*- <-- an Emacs control
  2. # See unix-common.mk for an explanation of this file. This file is
  3. # analogous to unix-common.mk, but is for a Windows system
  4. SONAME = $@
  5. IMPLIB = $(@:%:%.dll.a)
  6. SHLIB_CMD = $(CCLD) $(LDFLAGS_SHLIB) -o $@ $^ $(LADD)
  7. .PHONY: $(SHLIB_INSTALL_TARGETS)
  8. .PHONY: install-shared-libraries
  9. SHLIB_INSTALL_TARGETS = $(SHARED_LIBS_TO_INSTALL:%=%/install)
  10. #SHLIB_INSTALL_TARGETS is like "libfoo/install libbar/install"
  11. install-shared-libraries: $(SHLIB_INSTALL_TARGETS)
  12. $(SHLIB_INSTALL_TARGETS):%/install:%.$(SHLIB_SUFFIX)
  13. # $< is a library file name, e.g. libfoo.dll .
  14. $(INSTALL_SHLIB) $< $(DESTDIR)$(LIBINST_DIR)/$<