Changeset 1809 for trunk/src/kmk/kbuild.c
- Timestamp:
- Oct 10, 2008, 4:27:38 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/kbuild.c
r1799 r1809 1771 1771 if (!s_fNoCompileCmdsDepsDefined) 1772 1772 { 1773 do_variable_definition(NILF, "_DEPFILES_INCLUDED", pDep->value, o_file, f_append, 0 /* !target_var */); 1773 do_variable_definition_2(NILF, "_DEPFILES_INCLUDED", pDep->value, pDep->value_length, 1774 pDep->flavor == f_simple, 0, o_file, f_append, 0 /* !target_var */); 1774 1775 eval_include_dep(pDep->value, NILF, iVer >= 2 ? incdep_queue : incdep_read_it); 1775 1776 } … … 1801 1802 memcpy(pszDst, "_CMDS_", sizeof("_CMDS_")); 1802 1803 pVar = kbuild_get_recursive_variable(pszSrcVar); 1803 do_variable_definition(NILF, pszDstVar, pVar->value, o_file, f_simple, 0 /* !target_var */); 1804 do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length, 1805 pVar->flavor == f_simple, 0, o_file, f_simple, 0 /* !target_var */); 1804 1806 1805 1807 memcpy(pszSrc, "_OUTPUT", sizeof("_OUTPUT")); 1806 1808 memcpy(pszDst, "_OUTPUT_", sizeof("_OUTPUT_")); 1807 1809 pVar = kbuild_get_recursive_variable(pszSrcVar); 1808 pOutput = do_variable_definition(NILF, pszDstVar, pVar->value, o_file, f_simple, 0 /* !target_var */); 1810 pOutput = do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length, 1811 pVar->flavor == f_simple, 0, o_file, f_simple, 0 /* !target_var */); 1809 1812 1810 1813 memcpy(pszSrc, "_OUTPUT_MAYBE", sizeof("_OUTPUT_MAYBE")); 1811 1814 memcpy(pszDst, "_OUTPUT_MAYBE_", sizeof("_OUTPUT_MAYBE_")); 1812 1815 pVar = kbuild_query_recursive_variable(pszSrcVar); 1813 pOutputMaybe = do_variable_definition(NILF, pszDstVar, pVar ? pVar->value : "", o_file, f_simple, 0 /* !target_var */); 1816 if (pVar) 1817 pOutputMaybe = do_variable_definition_2(NILF, pszDstVar, pVar->value, pVar->value_length, 1818 pVar->flavor == f_simple, 0, o_file, f_simple, 0 /* !target_var */); 1819 else 1820 pOutputMaybe = do_variable_definition_2(NILF, pszDstVar, "", 0, 1, 0, o_file, f_simple, 0 /* !target_var */); 1814 1821 1815 1822 memcpy(pszSrc, "_DEPEND", sizeof("_DEPEND")); … … 1822 1829 *psz++ = ' '; 1823 1830 memcpy(psz, pSource->value, pSource->value_length + 1); 1824 do_variable_definition(NILF, pszDstVar, pszVal, o_file, f_simple, 0 /* !target_var */); 1825 free(pszVal); 1831 do_variable_definition_2(NILF, pszDstVar, pszVal, pVar->value_length + 1 + pDeps->value_length + 1 + pSource->value_length, 1832 pVar->flavor == f_simple && pDeps->flavor == f_simple && pSource->flavor == f_simple, 1833 pszVal, o_file, f_simple, 0 /* !target_var */); 1826 1834 1827 1835 memcpy(pszSrc, "_DEPORD", sizeof("_DEPORD")); … … 1834 1842 *psz++ = ' '; 1835 1843 memcpy(psz, pOrderDeps->value, pOrderDeps->value_length + 1); 1836 do_variable_definition(NILF, pszDstVar, pszVal, o_file, f_simple, 0 /* !target_var */); 1837 free(pszVal); 1844 do_variable_definition_2(NILF, pszDstVar, pszVal, 1845 pVar->value_length + 1 + pDirDep->value_length + 1 + pOrderDeps->value_length, 1846 pVar->flavor == f_simple && pDirDep->flavor == f_simple && pOrderDeps->flavor == f_simple, 1847 pszVal, o_file, f_simple, 0 /* !target_var */); 1838 1848 1839 1849 /* 1840 1850 _OUT_FILES += $($(target)_$(source)_OUTPUT_) $($(target)_$(source)_OUTPUT_MAYBE_) 1841 1851 */ 1852 /** @todo use append? */ 1842 1853 pVar = kbuild_get_variable("_OUT_FILES"); 1843 1854 psz = pszVal = xmalloc(pVar->value_length + 1 + pOutput->value_length + 1 + pOutputMaybe->value_length + 1); … … 1847 1858 *psz++ = ' '; 1848 1859 memcpy(psz, pOutputMaybe->value, pOutputMaybe->value_length + 1); 1849 do_variable_definition(NILF, "_OUT_FILES", pszVal, o_file, f_simple, 0 /* !target_var */); 1850 free(pszVal); 1860 do_variable_definition_2(NILF, "_OUT_FILES", pszVal, 1861 pVar->value_length + 1 + pOutput->value_length + 1 + pOutputMaybe->value_length, 1862 pVar->flavor == f_simple && pOutput->flavor == f_simple && pOutputMaybe->flavor == f_simple, 1863 pszVal, o_file, f_simple, 0 /* !target_var */); 1851 1864 1852 1865 /* … … 1854 1867 */ 1855 1868 memcpy(pszDstVar + pTarget->value_length, "_OBJS_", sizeof("_OBJS_")); 1856 do_variable_definition(NILF, pszDstVar, pObj->value, o_file, f_append, 0 /* !target_var */); 1869 do_variable_definition_2(NILF, pszDstVar, pObj->value, pObj->value_length, 1870 pObj->flavor == f_simple, 0, o_file, f_append, 0 /* !target_var */); 1857 1871 1858 1872 /*
Note:
See TracChangeset
for help on using the changeset viewer.