Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 ${ADK_TOPDIR}/rules.mk
  4. ifeq ($(ADK_TARGET_LIB_GLIBC),y)
  5. include ${ADK_TOPDIR}/toolchain/glibc/Makefile.inc
  6. endif
  7. ifeq ($(ADK_TARGET_LIB_UCLIBC_NG),y)
  8. include ${ADK_TOPDIR}/toolchain/uclibc-ng/Makefile.inc
  9. endif
  10. ifeq ($(ADK_TARGET_LIB_UCLIBC),y)
  11. include ${ADK_TOPDIR}/toolchain/uclibc/Makefile.inc
  12. endif
  13. PKG_NAME:= librt
  14. PKG_DESCR:= realtime library
  15. PKG_SECTION:= base/libs
  16. PKG_OPTS:= noremove
  17. NO_DISTFILES:= 1
  18. include ${ADK_TOPDIR}/mk/package.mk
  19. $(eval $(call PKG_template,LIBRT,librt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  20. CONFIG_STYLE:= manual
  21. BUILD_STYLE:= manual
  22. INSTALL_STYLE:= manual
  23. librt-install:
  24. ${INSTALL_DIR} ${IDIR_LIBRT}/$(ADK_TARGET_LIBC_PATH)
  25. ifeq ($(ADK_TARGET_LIB_MUSL),)
  26. ifeq ($(ADK_TARGET_USE_STATIC_LIBS),)
  27. ifeq ($(ADK_TARGET_BINFMT_FLAT),)
  28. ${CP} ${STAGING_TARGET_DIR}/lib/librt*.so* ${IDIR_LIBRT}/$(ADK_TARGET_LIBC_PATH)
  29. endif
  30. endif
  31. endif
  32. include ${ADK_TOPDIR}/mk/pkg-bottom.mk