diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-05-14 15:53:43 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-05-14 15:53:43 (GMT) |
commit | 267b1ae8608ed4bf52de743798e8647c903ee1b4 (patch) | |
tree | 106f249cca5d600a7fea55e670f553b3ac96a3ec | |
parent | 6178efcee9fc18d11a773827dca8b95304e75731 (diff) |
Included all generated headers as generated files.
-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 |