|
Lines 45-50
Link Here
|
| 45 |
CFLAGS</tt> variable. If it does not, please add <tt class= |
45 |
CFLAGS</tt> variable. If it does not, please add <tt class= |
| 46 |
"LITERAL">NO_PACKAGE=ignores cflags</tt> to the <tt class= |
46 |
"LITERAL">NO_PACKAGE=ignores cflags</tt> to the <tt class= |
| 47 |
"FILENAME">Makefile</tt>.</p> |
47 |
"FILENAME">Makefile</tt>.</p> |
|
|
48 |
|
| 49 |
<p>An example of a Makefile respecting the |
| 50 |
<tt class="MAKEVAR">CFLAGS</tt> variable <B>(note the |
| 51 |
<tt class="MAKEVAR">+=</tt></B>):</p> |
| 52 |
|
| 53 |
<pre class="PROGRAMLISTING"> |
| 54 |
CFLAGS += -Wall -Werror |
| 55 |
</pre> |
| 56 |
|
| 57 |
<p>An example of a Makefile which does not respect the |
| 58 |
<tt class="MAKEVAR">CFLAGS</tt> variable:</p> |
| 59 |
|
| 60 |
<pre class="PROGRAMLISTING"> |
| 61 |
CFLAGS = -Wall -Werror |
| 62 |
</pre> |
| 63 |
|
| 64 |
<p>The <tt class="MAKEVAR">CFLAGS</tt> variable is defined on |
| 65 |
FreeBSD systems in /etc/make.conf. The first example appends |
| 66 |
additional flags to the <tt class="MAKEVAR">CFLAGS</tt> |
| 67 |
variable, preserving any system wide definitions. The second |
| 68 |
example clobbers anything previously defined.</p> |
| 69 |
|
| 48 |
</div> |
70 |
</div> |
| 49 |
|
71 |
|
| 50 |
<div class="NAVFOOTER"> |
72 |
<div class="NAVFOOTER"> |