create_links.sh 674 B

1234567891011121314151617181920212223
  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. for x in ${DIRS} ; do
  7. find ${x} -type f -name Makefile -exec rm -f {} \;
  8. ln -sf ../extra/scripts/Makefile.libs.lvl1 ${x}/Makefile
  9. done
  10. for x in ${DIRS2} ; do
  11. ln -sf ../../extra/scripts/Makefile.libs.lvl2 ${x}/Makefile
  12. done
  13. ln -sf ../../../extra/scripts/Makefile.objs.lvl3 libc/sysdeps/linux/Makefile
  14. ln -sf ../../extra/scripts/Makefile.objs.lvl2 libc/string/Makefile
  15. rm -f Makefile
  16. ln -sf Makefile.in Makefile
  17. exit 0