Changeset 1611 in kBuild
- Timestamp:
- May 9, 2008 1:23:23 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kbuild.c
r1503 r1611 279 279 else 280 280 strcpy(pszTmp2, "."); 281 281 282 282 if (!my_abspath(pszTmp2, szTmpPath)) 283 283 fatal(NILF, _("failed to determin KBUILD_BIN_PATH (pszTmp2=%s szTmpPath=%s)"), pszTmp2, szTmpPath); … … 1686 1686 struct variable *pOutBase = kbuild_get_object_base(pTarget, pSource, "outbase"); 1687 1687 struct variable *pObjSuff = kbuild_get_object_suffix(pTarget, pSource, pTool, pType, pBldTrg, pBldTrgArch, "objsuff"); 1688 struct variable *pDefs, *pIncs, *pFlags, *pDeps, *pOrderDeps, *pDirDep, *pDep, *pVar, *pOutput ;1688 struct variable *pDefs, *pIncs, *pFlags, *pDeps, *pOrderDeps, *pDirDep, *pDep, *pVar, *pOutput, *pOutputMaybe; 1689 1689 struct variable *pObj = kbuild_set_object_name_and_dep_and_dirdep_and_PATH_target_source(pTarget, pSource, pOutBase, pObjSuff, "obj", &pDep, &pDirDep); 1690 1690 char *pszDstVar, *pszDst, *pszSrcVar, *pszSrc, *pszVal, *psz; … … 1771 1771 memcpy(pszDst, "_OUTPUT_MAYBE_", sizeof("_OUTPUT_MAYBE_")); 1772 1772 pVar = kbuild_query_recursive_variable(pszSrcVar); 1773 pOutput = do_variable_definition(NILF, pszDstVar, pVar ? pVar->value : "", o_file, f_simple, 0 /* !target_var */);1773 pOutputMaybe = do_variable_definition(NILF, pszDstVar, pVar ? pVar->value : "", o_file, f_simple, 0 /* !target_var */); 1774 1774 1775 1775 memcpy(pszSrc, "_DEPEND", sizeof("_DEPEND")); … … 1798 1798 1799 1799 /* 1800 _OUT_FILES += $($(target)_$(source)_OUTPUT_) 1800 _OUT_FILES += $($(target)_$(source)_OUTPUT_) $($(target)_$(source)_OUTPUT_MAYBE_) 1801 1801 */ 1802 1802 pVar = kbuild_get_variable("_OUT_FILES"); 1803 psz = pszVal = xmalloc(pVar->value_length + 1 + pOutput->value_length + 1 );1803 psz = pszVal = xmalloc(pVar->value_length + 1 + pOutput->value_length + 1 + pOutputMaybe->value_length + 1); 1804 1804 memcpy(psz, pVar->value, pVar->value_length); psz += pVar->value_length; 1805 1805 *psz++ = ' '; 1806 memcpy(psz, pOutput->value, pOutput->value_length + 1); 1806 memcpy(psz, pOutput->value, pOutput->value_length); psz += pOutput->value_length; 1807 *psz++ = ' '; 1808 memcpy(psz, pOutputMaybe->value, pOutputMaybe->value_length + 1); 1807 1809 do_variable_definition(NILF, "_OUT_FILES", pszVal, o_file, f_simple, 0 /* !target_var */); 1808 1810 free(pszVal);
Note:
See TracChangeset
for help on using the changeset viewer.