From 267b1ae8608ed4bf52de743798e8647c903ee1b4 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Mon, 14 May 2018 17:53:43 +0200 Subject: Included all generated headers as generated files. --- tools/d2c/d2c_genmakefile.sh | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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 -- cgit v0.11.2-87-g4458