Makefile 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. ifeq ($(ADK_NATIVE),y)
  11. PKG_VERSION:= 1.0
  12. PKG_RELEASE:= 1
  13. endif
  14. PKG_NAME:= librt
  15. PKG_DESCR:= Realtime library
  16. PKG_SECTION:= libs
  17. PKG_OPTS:= noremove
  18. NO_DISTFILES:= 1
  19. ifeq ($(ADK_STATIC),y)
  20. PKG_OPTS+= libonly
  21. endif
  22. include ${TOPDIR}/mk/package.mk
  23. $(eval $(call PKG_template,LIBRT,librt,${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION},${PKG_OPTS}))
  24. CONFIG_STYLE:= manual
  25. BUILD_STYLE:= manual
  26. INSTALL_STYLE:= manual
  27. librt-install:
  28. ifeq ($(ADK_NATIVE),)
  29. ${INSTALL_DIR} ${IDIR_LIBRT}/$(ADK_TARGET_LIBC_PATH)
  30. ifeq ($(ADK_TARGET_LIB_MUSL),)
  31. ${CP} ${STAGING_TARGET_DIR}/lib/librt*.so* ${IDIR_LIBRT}/$(ADK_TARGET_LIBC_PATH)
  32. endif
  33. endif
  34. include ${TOPDIR}/mk/pkg-bottom.mk