Makefile 1023 B

12345678910111213141516171819202122232425262728293031
  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. PKG_NAME:= libc
  5. PKG_VERSION:= 1.0
  6. PKG_RELEASE:= 2
  7. PKG_SECTION:= base
  8. PKG_DESCR:= native C library
  9. NO_DISTFILES:= 1
  10. include $(TOPDIR)/mk/package.mk
  11. $(eval $(call PKG_template,LIBC,libc,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
  12. # do nothing, use native c library
  13. do-install:
  14. ${INSTALL_DIR} $(IDIR_LIBC)/lib
  15. $(CP) /lib/libgcc_s.so* $(IDIR_LIBC)/lib/
  16. $(CP) /lib/ld*-*.so* $(IDIR_LIBC)/lib/
  17. if test -f /lib/libuClibc-*.so; then $(CP) /lib/libuClibc-*.so \
  18. $(IDIR_LIBC)/lib/;fi
  19. -for file in libc libpthread libcrypt libdl libm libnsl libresolv librt libutil libnss_compat libnss_dns libnss_files; do \
  20. $(CP) /lib/$$file.so.* $(IDIR_LIBC)/lib/; \
  21. $(CP) /lib/$$file-*.so $(IDIR_LIBC)/lib/; \
  22. done
  23. # create ld.so link for ldd
  24. cd $(IDIR_LIBC)/lib && ln -sf ld-linux.so.2 ld.so
  25. include ${TOPDIR}/mk/pkg-bottom.mk