confDEPEND_TYPE
How to build Makefile dependencies Build macro
The confDEPEND_TYPE
macro defines the method that should be included in
your Makefile for use in
creating make(1) dependencies.
The methods supported are located in the
devtools/M4/depend directory.
We show them in Table 2-6.
Table 2-6. Build m4 directives
Method |
File |
How invoked |
---|---|---|
AIX |
devtools/M4/depend/AIX.m4 |
|
BSD |
devtools/M4/depend/BSD.m4 |
|
CC-M |
devtools/M4/depend/CC-M.m4 |
|
Generic |
devtools/M4/depend/generic.m4 |
Nothing |
NCR |
devtools/M4/depend/NCR.m4 |
|
Solaris |
devtools/M4/depend/Solaris.m4 |
|
X11 |
devtools/M4/depend/X11.m4 |
|
Note that the correct Solaris method is usually chosen
for you in an appropriate devtools/OS file. But in the rare case
that the method is wrong or broken, you can use this
confDEPEND_TYPE
to select another method. For example, consider this
broken implementation of an mkdep script:
mkdep -a -f Makefile -I. -DNEWDB *.c cc: Warning: Option -f passed to ld cc: Warning: File with unknown suffix (Makefile) passed to ld
In this example, we know we are running X11, and so we chose to replace the defective mkdep with the makedepend(1) program:
define(`confDEPEND_TYPE', `X11')
The new method is specified as the filename (with the .m4 suffix removed) in the devtools/M4/depend directory. Rerunning the Build ...
Get sendmail, 4th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.