Discussion:
[ast-developers] src/lib/libast/Makefile probes?
ольга крыжановская
2013-11-14 22:47:43 UTC
Permalink
I am puzzled how src/lib/libast/Makefile finds and executes the
src/lib/libast/features/float probe.

Can anyone explain, which dependency, in src/lib/libast/Makefile,
triggers the src/lib/libast/features/float iffe probe?

How can I add a new probe ("nanfloat") which should be executed the
same way, and with the same dependencies, as
src/lib/libast/features/float?

Olga
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`
Glenn Fowler
2013-11-15 06:49:17 UTC
Permalink
the nmake scan rules grok #include
in general
#include "FEATURE/foo"
triggers one of the FEATURE/% : features/%... pattern metarules in
Makerules.mk

for libast only the Makefile differentiates between private "FEATURE/foo"
and public <ast_foo.h> headers by this assertion
$(HEADERGEN) :COPY: FEATURE/$$(<:B:/$(ID)_//)
private means only libast src uses the header, public means the header is
installed in $(INSTALLROOT)/include/ast_*.h for all of ast

if "nanfloat" is private then one or more #include "FEATURE/nanfloat" lines
will suffice
if its public then add $(ID)_nanfloat.h to the HEADERGEN var value in
Makefile and use #include <ast_nanfloat.h>

handling implicit/generated includes as first order objects is one of the
big wins in ast nmake


On Thu, Nov 14, 2013 at 5:47 PM, ????? ???????????? <
Post by ольга крыжановская
I am puzzled how src/lib/libast/Makefile finds and executes the
src/lib/libast/features/float probe.
Can anyone explain, which dependency, in src/lib/libast/Makefile,
triggers the src/lib/libast/features/float iffe probe?
How can I add a new probe ("nanfloat") which should be executed the
same way, and with the same dependencies, as
src/lib/libast/features/float?
Olga
--
, _ _ ,
{ \/`o;====- Olga Kryzhanovska -====;o`\/ }
.----'-/`-/ olga.kryzhanovska at gmail.com \-`\-'----.
`'-..-| / http://twitter.com/fleyta \ |-..-'`
/\/\ Solaris/BSD//C/C++ programmer /\/\
`--` `--`
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.research.att.com/pipermail/ast-developers/attachments/20131115/b218ce07/attachment.html>
Loading...