version 1.72, 2017/07/11 22:17:28 |
version 1.73, 2017/07/11 23:38:53 |
|
|
${YACC.Y} -o grammar.c grammar.y |
${YACC.Y} -o grammar.c grammar.y |
|
|
|
|
<bsd.prog.mk> may be used to build several programs in a single directory. |
<bsd.prog.mk> provides a limited capability to build several |
Just define the list of programs as PROGS instead of using PROG. |
programs in a single directory by defining the list of programs |
For instance PROGS = foo bar |
as PROGS instead of using PROG, for instance: PROGS = foo bar |
|
|
|
This only works if all programs in the directory use the same |
|
compiler and linker flags. Also, the programs cannot use source |
|
files with the same file name but different content. |
|
|
Each program of the list, for instance foo, will use SRCS_foo instead |
Each program of the list, for instance foo, will use SRCS_foo instead |
of SRCS to find its sources. SRCS_foo still defaults to foo.c, and |
of SRCS to find its sources. SRCS_foo still defaults to foo.c, and |