<div>Hello~!</div>
<div>&nbsp;</div>
<div>I made two different files, Jamroot and rules.jam in the same directory. &quot;rules.jam&quot; has lots of information about building&nbsp;a project. So, &quot;Jamroot&quot; file has to access many variables exist in &quot;
rules.jam&quot;. Anyway, I used some code&nbsp;below. I palced this code to &quot;rules.jam&quot;. </div>
<div>&nbsp;</div>
<div># in &quot;rules.jam&quot;</div>
<div>local CFLAGS = -Wall -O2 ... ;</div>
<div>&nbsp;</div>
<div>rule peek ( module-name ? : variables + )</div>
<div>{</div>
<div>&nbsp;&nbsp; module-name $(module-name)</div>
<div>&nbsp; {</div>
<div>&nbsp;&nbsp;&nbsp;&nbsp; return $($(&gt;)) ;</div>
<div>&nbsp; }</div>
<div>}</div>
<div>&nbsp;</div>
<div>And I used it by this code in &quot;Jamroot&quot;.</div>
<div>&nbsp;</div>
<div># in &quot;Jamfile&quot;</div>
<div>import rules ;</div>
<div>local cflags = [ rules.peek : CFLAGS ] ;</div>
<div>echo&nbsp;$(cflags) ;</div>
<div>&nbsp;</div>
<div>But,&nbsp;it didn&#39;t make any outputs. Why..?</div>
<div>&nbsp;</div>
<div>Does anybody know how to solve it?</div>
<div>&nbsp;</div>
<div>Thanks in advance.</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>Young Hyun.</div>