create_links.sh 805 B

12345678910111213141516171819202122232425262728
  1. #! /bin/sh
  2. #
  3. # Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org>
  4. #
  5. # Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball.
  6. #
  7. # Creates the necessary links to build w/ the Makefile.in files
  8. DIRS="ldso libc libcrypt libintl libm libnsl libpthread libresolv librt libutil"
  9. DIRS2="ldso/ldso ldso/libdl libpthread/linuxthreads libpthread/linuxthreads_db"
  10. for x in ${DIRS} ; do
  11. find ${x} -type f -name Makefile -exec rm -f {} \;
  12. ln -sf ../extra/scripts/Makefile.libs.lvl1 ${x}/Makefile
  13. done
  14. for x in ${DIRS2} ; do
  15. ln -sf ../../extra/scripts/Makefile.libs.lvl2 ${x}/Makefile
  16. done
  17. ln -sf ../../../extra/scripts/Makefile.objs.lvl3 libc/sysdeps/linux/Makefile
  18. ln -sf ../../extra/scripts/Makefile.objs.lvl2 libc/string/Makefile
  19. rm -f Makefile
  20. ln -sf Makefile.in Makefile
  21. exit 0