- \ =
the continuation character
in a Make file
- Meaning:
- If \ is the
last character on a
line in a Make file,
then the current line
will continue onto the
next line
|
- Usage:
- To specify a long list of
dependent files
Example:
main: file1.o file2.o file3.o file4.o file5.o \
<TAB> file6.o file7.o
....
|
- To specify a lengthy
maintenance command
Example:
main: file1.o
<TAB> gcc -o main -D=Define -D=These -D=Options \
<TAB> -I/home/cheung/myInclude/Dir -L/home/cheung/MyLib -lm \
<TAB> file.o
|
|
|