irix-common.mk 870 B

12345678910111213141516171819202122232425262728293031
  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 an Irix system.
  4. SONAME = $(@:%.$(MAJ):%)
  5. SHLIB_CMD = $(CCLD) $(LADD) $(LDFLAGS_SHLIB) -o $@ $^
  6. SHLIB_LE_TARGETS = $(call shliblefn, $(SHARED_LIBS_TO_BUILD))
  7. $(SHLIB_LE_TARGETS):%:%.$(MAJ)
  8. rm -f $@
  9. $(LN_S) $< $@
  10. .PHONY: $(SHLIB_INSTALL_TARGETS)
  11. .PHONY: install-shared-libraries
  12. SHLIB_INSTALL_TARGETS = $(SHARED_LIBS_TO_INSTALL:%=%/install)
  13. #SHLIB_INSTALL_TARGETS is like "libfoo/install libbar/install"
  14. install-shared-libraries: $(SHLIB_INSTALL_TARGETS)
  15. $(SHLIB_INSTALL_TARGETS):%/install:%.$(SHLIB_SUFFIX).$(MAJ)
  16. # $< is a library file name, e.g. libfoo.so.3.1 .
  17. $(INSTALL_SHLIB) $< $(DESTDIR)$(LIBINST_DIR)/$<
  18. cd $(DESTDIR)$(LIBINST_DIR); \
  19. rm -f $< $(<:%.$(MAJ)=%); \
  20. $(LN_S) $< $(<:%.$(MAJ)=%)