1
0

Makefile 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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. CONFIG_STYLE:= manual
  13. BUILD_STYLE:= manual
  14. INSTALL_STYLE:= manual
  15. # do nothing, use native c library
  16. do-install:
  17. ${INSTALL_DIR} $(IDIR_LIBC)/lib
  18. $(CP) /lib/libgcc_s.so* $(IDIR_LIBC)/lib/
  19. $(CP) /lib/ld*-*.so* $(IDIR_LIBC)/lib/
  20. if test -f /lib/libuClibc-*.so; then $(CP) /lib/libuClibc-*.so \
  21. $(IDIR_LIBC)/lib/;fi
  22. -for file in libc libpthread libcrypt libdl libm libnsl libresolv librt libutil libnss_compat libnss_dns libnss_files; do \
  23. $(CP) /lib/$$file.so.* $(IDIR_LIBC)/lib/; \
  24. $(CP) /lib/$$file-*.so $(IDIR_LIBC)/lib/; \
  25. done
  26. # create ld.so link for ldd
  27. cd $(IDIR_LIBC)/lib && ln -sf ld-linux.so.2 ld.so
  28. include ${TOPDIR}/mk/pkg-bottom.mk