From 46b86cc2910f442fba6707107e63473a2e94afa0 Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 7 Jul 2011 19:07:57 +0400 Subject: [PATCH] =?UTF-8?q?=D1=82=D0=B0=D0=BA,=20=D0=BD=D1=83=D0=B6=D0=BD?= =?UTF-8?q?=D0=BE=20=D1=82=D0=B5=D0=BF=D0=B5=D1=80=D1=8C=20=D0=BF=D1=80?= =?UTF-8?q?=D0=B8=D0=BA=D1=80=D1=83=D1=82=D0=B8=D1=82=D1=8C=20=D0=BF=D0=BE?= =?UTF-8?q?=D0=B8=D1=81=D0=BA=20=D0=B2=20=D0=B4=D1=80=D1=83=D0=B3=D0=B8?= =?UTF-8?q?=D1=85=20include=20=D1=84=D0=B0=D0=B9=D0=BB=D0=BE=D0=B2.c,=20?= =?UTF-8?q?=D0=B5=D1=81=D0=BB=D0=B8=20=D0=BD=D0=B5=20=D0=BD=D0=B0=D0=B9?= =?UTF-8?q?=D0=B4=D0=B5=D0=BD=D1=8B=20=D1=80=D1=8F=D0=B4=D0=BE=D0=BC=20?= =?UTF-8?q?=D1=81=20=D1=85=D0=B5=D0=B4=D0=B5=D1=80=D0=BE=D0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash/smake/smake.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/bash/smake/smake.sh b/bash/smake/smake.sh index 0315f8f..f9eec28 100755 --- a/bash/smake/smake.sh +++ b/bash/smake/smake.sh @@ -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 +