create_links.sh 686 B

12345678910111213141516171819202122232425
  1. #! /bin/sh
  2. #
  3. # Creates the minimally necessary links to build w/ the Makefile.in files
  4. DIRS="ldso libc libcrypt libintl libm libnsl libpthread libresolv librt libutil"
  5. DIRS2="ldso/ldso ldso/libdl libpthread/linuxthreads libpthread/linuxthreads_db"
  6. OBJ4="common arm i386 mips powerpc x86_64"
  7. for x in ${DIRS} ; do
  8. find ${x} -type f -name Makefile -exec rm -f {} \;
  9. ln -sf ../extra/scripts/Makefile.libs.lvl1 ${x}/Makefile
  10. done
  11. for x in ${DIRS2} ; do
  12. ln -sf ../../extra/scripts/Makefile.libs.lvl2 ${x}/Makefile
  13. done
  14. for x in ${OBJ4} ; do
  15. ln -sf ../../../../extra/scripts/Makefile.objs.lvl4 libc/sysdeps/linux/${x}/Makefile
  16. done
  17. rm -f Makefile
  18. ln -sf Makefile.in Makefile
  19. exit 0