un-remove TABs in doc/using-make.sgml
This commit is contained in:
@@ -76,18 +76,18 @@ ifneq ($(MAKECMDGOALS),clean)
|
|||||||
endif
|
endif
|
||||||
|
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -c $(CFLAGS) -o $@ $<
|
$(CC) -c $(CFLAGS) -o $@ $<
|
||||||
|
|
||||||
$(PROGRAM): $(SOURCES:.c=.o)
|
$(PROGRAM): $(SOURCES:.c=.o)
|
||||||
$(CC) $(LDFLAGS) -o $@ $^
|
$(CC) $(LDFLAGS) -o $@ $^
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
$(RM) $(SOURCES:.c=.o) $(SOURCES:.c=.d) $(PROGRAM) $(PROGRAM).map
|
$(RM) $(SOURCES:.c=.o) $(SOURCES:.c=.d) $(PROGRAM) $(PROGRAM).map
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
<bf/Important:/ When using the sample Makefile above via copy & paste it is
|
<bf/Important:/ When using the sample Makefile above via copy & paste it is
|
||||||
necessary to replace the eight spaces at the beginning of command lines (lines
|
important to make sure that command lines (lines 26, 29 and 32) start
|
||||||
26, 29 and 32) with a tab character (ASCII code 9).
|
with a tab character (ASCII code 9).
|
||||||
|
|
||||||
|
|
||||||
<sect1>Invoking the sample Makefile<p>
|
<sect1>Invoking the sample Makefile<p>
|
||||||
@@ -119,7 +119,7 @@ The recommended way to use GNU Make on Windows is to install it as part of a
|
|||||||
Cygwin environment. For more information see the Cygwin home page:
|
Cygwin environment. For more information see the Cygwin home page:
|
||||||
|
|
||||||
<url url="http://www.cygwin.com/">
|
<url url="http://www.cygwin.com/">
|
||||||
|
|
||||||
If however installing Cygwin shouldn't be an option for one or the other reason
|
If however installing Cygwin shouldn't be an option for one or the other reason
|
||||||
then the sample Makefile may be invoked from the Windows Command Prompt (cmd.exe)
|
then the sample Makefile may be invoked from the Windows Command Prompt (cmd.exe)
|
||||||
by downloading the following programs:
|
by downloading the following programs:
|
||||||
@@ -132,17 +132,17 @@ by downloading the following programs:
|
|||||||
|
|
||||||
|
|
||||||
<sect>Target-specific Variable Values<p>
|
<sect>Target-specific Variable Values<p>
|
||||||
|
|
||||||
The very limited resources of the cc65 target machines now and then require
|
The very limited resources of the cc65 target machines now and then require
|
||||||
manual optimization of the build process by compiling individual source files
|
manual optimization of the build process by compiling individual source files
|
||||||
with different compiler options. GNU Make offers
|
with different compiler options. GNU Make offers
|
||||||
<url url="http://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html" name="Target-specific Variable Values">
|
<url url="http://www.gnu.org/software/make/manual/html_node/Target_002dspecific.html" name="Target-specific Variable Values">
|
||||||
perfectly suited for doing so. For example placing the code of the two modules
|
perfectly suited for doing so. For example placing the code of the two modules
|
||||||
<tt/foo/ and <tt/bar/ in the segment <tt/FOOBAR/ can be achieved with this
|
<tt/foo/ and <tt/bar/ in the segment <tt/FOOBAR/ can be achieved with this
|
||||||
target-specific variable definition:
|
target-specific variable definition:
|
||||||
|
|
||||||
<tscreen><verb>
|
<tscreen><verb>
|
||||||
foo.o bar.o: CFLAGS += --code-name FOOBAR
|
foo.o bar.o: CFLAGS += --code-name FOOBAR
|
||||||
</verb></tscreen>
|
</verb></tscreen>
|
||||||
|
|
||||||
</article>
|
</article>
|
||||||
|
|||||||
Reference in New Issue
Block a user