Remove spaces between variable names and assignment operators in pieces
of Makefiles shown in programlistings. Spotted by: simon
This commit is contained in:
parent
1ba2385f57
commit
c3744455d2
Notes:
svn2git
2020-12-08 03:00:23 +00:00
svn path=/head/; revision=23197
1 changed files with 8 additions and 8 deletions
|
@ -7889,15 +7889,15 @@ bopm:*:717:</programlisting>
|
|||
both <makevar>CC</makevar> and <makevar>CXX</makevar>
|
||||
variables follows. Note the <makevar>?=</makevar>:</para>
|
||||
|
||||
<programlisting>CC ?= gcc</programlisting>
|
||||
<programlisting>CXX ?= g++</programlisting>
|
||||
<programlisting>CC?= gcc</programlisting>
|
||||
<programlisting>CXX?= g++</programlisting>
|
||||
|
||||
<para>Here is an example which respects neither
|
||||
<makevar>CC</makevar> nor <makevar>CXX</makevar>
|
||||
variables:</para>
|
||||
|
||||
<programlisting>CC = gcc</programlisting>
|
||||
<programlisting>CXX = g++</programlisting>
|
||||
<programlisting>CC= gcc</programlisting>
|
||||
<programlisting>CXX= g++</programlisting>
|
||||
|
||||
<para>Both <makevar>CC</makevar> and <makevar>CFLAGS</makevar>
|
||||
variables can be defined on FreeBSD systems in
|
||||
|
@ -7925,12 +7925,12 @@ bopm:*:717:</programlisting>
|
|||
the <makevar>CFLAGS</makevar> variable follows. Note the
|
||||
<makevar>+=</makevar>:</para>
|
||||
|
||||
<programlisting>CFLAGS += -Wall -Werror</programlisting>
|
||||
<programlisting>CFLAGS+= -Wall -Werror</programlisting>
|
||||
|
||||
<para>Here is an example which does not respect the
|
||||
<makevar>CFLAGS</makevar> variable:</para>
|
||||
|
||||
<programlisting>CFLAGS = -Wall -Werror</programlisting>
|
||||
<programlisting>CFLAGS= -Wall -Werror</programlisting>
|
||||
|
||||
<para>The <makevar>CFLAGS</makevar> variable is defined on
|
||||
FreeBSD systems in <filename>/etc/make.conf</filename>. The
|
||||
|
@ -7944,13 +7944,13 @@ bopm:*:717:</programlisting>
|
|||
contains system-wide optimization flags. An example from
|
||||
an unmodified <filename>Makefile</filename>:</para>
|
||||
|
||||
<programlisting>CFLAGS = -O3 -funroll-loops -DHAVE_SOUND</programlisting>
|
||||
<programlisting>CFLAGS= -O3 -funroll-loops -DHAVE_SOUND</programlisting>
|
||||
|
||||
<para>Using system optimization flags, the
|
||||
<filename>Makefile</filename> would look similar to the
|
||||
following example:</para>
|
||||
|
||||
<programlisting>CFLAGS += -DHAVE_SOUND</programlisting>
|
||||
<programlisting>CFLAGS+= -DHAVE_SOUND</programlisting>
|
||||
|
||||
</sect1>
|
||||
|
||||
|
|
Loading…
Reference in a new issue