так, нужно теперь прикрутить поиск в других include файлов.c, если не найдены рядом с хедером

This commit is contained in:
Kolan Sh 2011-07-07 19:07:57 +04:00
parent 5b05e17a78
commit 46b86cc291
1 changed files with 10 additions and 1 deletions

View File

@ -12,7 +12,7 @@ BUILD_FILE=$SMAKE_DIR/build.smk
RULES_FILE=$SMAKE_DIR/rules.smk
# Debug
DEBUG=0
DEBUG=1
# Parameters processing
TEMP=`getopt -o c:x:i:l:t: --long cc:,cxx:,include:,libraries:,target: -- "$@"`
@ -100,6 +100,14 @@ if [ $DEBUG == 1 ]; then
echo -e "target_dep_lst:\n`echo $target_dep_lst | sed -e 's~ ~\n~g' | sed 's~\(^..\)~ \1~g'`"
fi
# --- Target's objects ---
target_obj_lst=`echo "$target_dep_lst" | grep -P '.c$' | sed -e 's~.c$~.o~'`
if [ $DEBUG == 1 ]; then
echo -e "target_obj_lst:\n`echo $target_obj_lst | sed -e 's~ ~\n~g' | sed 's~\(^..\)~ \1~g'`"
fi
# --- Target's target ;) ---
# --- Object files deplist ---
@ -111,3 +119,4 @@ if [ "$files_not_found" != "" ]; then
echo WARNING: Include files not found: $files_not_found
fi