Makefile 907 B

12345678910111213141516171819202122232425262728293031323334
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include ${TOPDIR}/rules.mk
  4. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  5. include ${TOPDIR}/toolchain/glibc/Makefile.inc
  6. endif
  7. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  8. include ${TOPDIR}/toolchain/uclibc/Makefile.inc
  9. endif
  10. PKG_NAME:= librt
  11. PKG_DESCR:= realtime library
  12. PKG_SECTION:= libs/misc
  13. PKG_OPTS:= noremove
  14. NO_DISTFILES:= 1
  15. include ${TOPDIR}/mk/package.mk
  16. $(eval $(call PKG_template,LIBRT,librt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  17. CONFIG_STYLE:= manual
  18. BUILD_STYLE:= manual
  19. INSTALL_STYLE:= manual
  20. librt-install:
  21. ${INSTALL_DIR} ${IDIR_LIBRT}/$(ADK_TARGET_LIBC_PATH)
  22. ifeq ($(ADK_TARGET_LIB_MUSL),)
  23. ${CP} ${STAGING_TARGET_DIR}/lib/librt*.so* ${IDIR_LIBRT}/$(ADK_TARGET_LIBC_PATH)
  24. endif
  25. include ${TOPDIR}/mk/pkg-bottom.mk