1
0

Makefile 1.1 KB

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