diff options
Diffstat (limited to 'tools/d2c')
-rwxr-xr-x | tools/d2c/d2c_genmakefile.sh | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/d2c/d2c_genmakefile.sh b/tools/d2c/d2c_genmakefile.sh index d01fa6c..6dedcbe 100755 --- a/tools/d2c/d2c_genmakefile.sh +++ b/tools/d2c/d2c_genmakefile.sh @@ -29,6 +29,19 @@ $echo >> ${MAKEFILE_TMP} $echo -n "GENERATED_FILES = " >> ${MAKEFILE_TMP} + +# Avec ou sans multiples architectures, ces fichiers sont la base ! + +SOURCES=`find . -type f -and \( -name "descriptions.h" -or -name "hooks.h" -or -name "identifiers.h" -or -name "keywords.h" -or -name "subidentifiers.h" \) -exec basename {} \; | sort` + +for src in $SOURCES; +do + $echo -ne " \\" >> ${MAKEFILE_TMP} + $echo -ne "\n\t${src}" >> ${MAKEFILE_TMP} + +done + + for arch in $*; do if [ ${arch} = "-" ]; then @@ -37,7 +50,7 @@ do arch_name="${arch}_" fi - SOURCES=`find . -type f -name "${arch_name}*.h" -exec basename {} \; | sort` + SOURCES=`find . -type f -name "${arch_name}opcodes.h" -exec basename {} \; | sort` for src in $SOURCES; do |