diff options
author | Peter S. Mazinger <ps.m@gmx.net> | 2005-10-29 10:11:58 +0000 |
---|---|---|
committer | Peter S. Mazinger <ps.m@gmx.net> | 2005-10-29 10:11:58 +0000 |
commit | a4753b1da2c2a1f7de691619a52e2934d2c248ac (patch) | |
tree | 6a3ac93b6180f9b4a62760f2dd027f89a38ce41c /extra/scripts/create_makefiles.sh | |
parent | 26661de6060091797e899a65e3a462edfbf74f3b (diff) |
Renamed script to create_makefiles.sh, copy instead of link (to allow cygwin users to build), creates all Makefiles now, should be only used if the master copies are updated
Diffstat (limited to 'extra/scripts/create_makefiles.sh')
-rwxr-xr-x | extra/scripts/create_makefiles.sh | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/extra/scripts/create_makefiles.sh b/extra/scripts/create_makefiles.sh new file mode 100755 index 000000000..ee03ec587 --- /dev/null +++ b/extra/scripts/create_makefiles.sh @@ -0,0 +1,66 @@ +#!/bin/sh +# +# Copyright (C) 2000-2005 Erik Andersen <andersen@uclibc.org> +# +# Licensed under the LGPL v2.1, see the file COPYING.LIB in this tarball. +# + +# Creates the necessary Makefiles to build w/ the Makefile.{arch,in} files + +DIRS="ldso libc libcrypt libintl libm libnsl libpthread libresolv librt libutil" + +if [ ! -f Makerules ] ; then + echo "Run this command in top_srcdir" + exit 1 +fi + +if [ -z "${USE_CMD}" ] ; then +USE_CMD="cp" +fi + +RM="rm -f" +${RM} Makefile +${USE_CMD} Makefile.in Makefile + +#for x in ${DIRS} ; do +# find ./${x} -name Makefile -exec rm -f {} \; +#done + +for x in */Makefile.in ; do + ${RM} $(dirname ${x})/Makefile + ${USE_CMD} extra/scripts/Makefile.libs.lvl1 $(dirname ${x})/Makefile +done + +for x in */*/Makefile.in ; do + ${RM} $(dirname ${x})/Makefile + ${USE_CMD} extra/scripts/Makefile.objs.lvl2 $(dirname ${x})/Makefile +done + +# overwrites the earlier ones, we do not add arch specific to libm/arch +for x in ldso/*/Makefile.in libpthread/*/Makefile.in ; do + ${RM} $(dirname ${x})/Makefile + ${USE_CMD} extra/scripts/Makefile.libs.lvl2 $(dirname ${x})/Makefile +done + +for x in */*/*/Makefile.in ; do + ${RM} $(dirname ${x})/Makefile + ${USE_CMD} extra/scripts/Makefile.objs.lvl3 $(dirname ${x})/Makefile +done + +for x in libc/*/*/Makefile.arch ; do + ${RM} $(dirname ${x})/Makefile + ${USE_CMD} extra/scripts/Makefile.arch.lvl3 $(dirname ${x})/Makefile +done + +for x in */*/*/*/Makefile.in ; do + ${RM} $(dirname ${x})/Makefile + ${USE_CMD} extra/scripts/Makefile.objs.lvl4 $(dirname ${x})/Makefile +done + +# we do not add these to libpthread/PTNAME/sysdeps/arch +for x in libc/*/*/*/Makefile.arch ; do + ${RM} $(dirname ${x})/Makefile + ${USE_CMD} extra/scripts/Makefile.arch.lvl4 $(dirname ${x})/Makefile +done + +exit 0 |