Index: /trunk/ChangeLog
===================================================================
--- /trunk/ChangeLog	(revision 643)
+++ /trunk/ChangeLog	(revision 644)
@@ -1,3 +1,12 @@
 /* $Id$ */
+
+2006-12-02:
+    - kmk:
+        o Fixed bugs dealing with the order SDK properties was applied to sources.
+
+2006-12-01:
+    - kBuild:
+        o Added support for compiling resource files.
+        o Fixed bug causing object files take from the SOURCES to be cleaned up.
 
 2006-11-25:
Index: /trunk/src/gmake/kbuild.c
===================================================================
--- /trunk/src/gmake/kbuild.c	(revision 643)
+++ /trunk/src/gmake/kbuild.c	(revision 644)
@@ -806,4 +806,6 @@
     Prop.value_length = strlen(pszProp);
 
+    assert(iDirection == 1 || iDirection == -1);
+
     /*
      * Get the variables.
@@ -971,6 +973,6 @@
      */
     cchTotal = 0;
-    iVarEnd = iDirection > -1 ? cVars : 0;
-    for (iVar = iDirection > 0 ? 0 : cVars - 1; iVar != iVarEnd; iVar += iDirection)
+    iVarEnd = iDirection == 1 ? cVars : 0;
+    for (iVar = iDirection == 1 ? 0 : cVars - 1; iVar != iVarEnd; iVar += iDirection)
     {
         paVars[iVar].cchExp = 0;
@@ -995,6 +997,6 @@
      */
     psz = pszResult = xmalloc(cchTotal + 1);
-    iVarEnd = iDirection > -1 ? cVars : 0;
-    for (iVar = iDirection > 0 ? 0 : cVars - 1; iVar != iVarEnd; iVar += iDirection)
+    iVarEnd = iDirection == 1 ? cVars : 0;
+    for (iVar = iDirection == 1 ? 0 : cVars - 1; iVar != iVarEnd; iVar += iDirection)
     {
         if (!paVars[iVar].cchExp)
@@ -1034,5 +1036,5 @@
         iDirection = 1;
     else if (!strcmp(argv[2], "right-to-left"))
-        iDirection = 1;
+        iDirection = -1;
     else
         fatal(NILF, _("incorrect direction argument `%s'!"), argv[2]);
@@ -1196,7 +1198,7 @@
                                         "DEFS", "defs", 1/* left-to-right */);
     pIncs  = kbuild_collect_source_prop(pTarget, pSource, pTool, &Sdks, pType, pBldType, pBldTrg, pBldTrgArch, pBldTrgCpu,
-                                        "INCS", "incs", 1/* right-to-left */);
+                                        "INCS", "incs", -1/* right-to-left */);
     pFlags = kbuild_collect_source_prop(pTarget, pSource, pTool, &Sdks, pType, pBldType, pBldTrg, pBldTrgArch, pBldTrgCpu,
-                                        "FLAGS", "flags", 1/* right-to-left */);
+                                        "FLAGS", "flags", -1/* right-to-left */);
     pDeps  = kbuild_collect_source_prop(pTarget, pSource, pTool, &Sdks, pType, pBldType, pBldTrg, pBldTrgArch, pBldTrgCpu,
                                         "DEPS", "deps", 1/* left-to-right */);
