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 +