On Tue, 14 Apr 2015 17:43:17 +0000, Oliver Schneider <
afl-...@assarbad.net> wrote:
> What about $(findstring ...)?
> I realize several things that used to be introduced by GNU make made it
> into other make flavors, but I think the "problem" (if we want to call
> it that) runs deeper here.
POSIX's make is notoriously impoverished, making it unnecessarily hard to
create portable makefiles. It doesn't specify portable ways to implement a
variety of important capabilities. I've submitted some bug reports to try to improve things.
If anyone is interesting in improving POSIX' make, I encourage you to get
involved in the POSIX Austin group:
https://www.opengroup.org/austin/
Specifically to your question... I submitted comment #512, "Add macro functions to make",
to add support for the $(function_name ...comma-separated-parameters...) syntax and
some specific functions. The proposal specifically includes findstring. Details here:
http://austingroupbugs.net/view.php?id=512
This proposal is pending; has NOT been accepted NOR rejected.
Others pending comments involving "make" include:
* Add pattern rules:
http://austingroupbugs.net/view.php?id=513
* Add make conditionals:
http://austingroupbugs.net/view.php?id=805
* Add support for "!=":
http://austingroupbugs.net/view.php?id=337
- I'd REALLY like to see this one. GNU make and *BSD makes support it, it's easy to add, it's useful.
I have had some successes. Improvements to make that have been accepted include:
* Add support for assignments "::=", "+=", and "?=":
http://austingroupbugs.net/view.php?id=330
* Add support for special target .PHONY in make:
http://austingroupbugs.net/view.php?id=523
* Add support for silent include, "-include":
http://austingroupbugs.net/view.php?id=333
Since POSIX doesn't even include make conditionals, I don't think it's reasonable for AFL's Makefile
to try to strictly limit itself to POSIX. But if AFL only uses a limited number of extensions, POSIX
may slowly add the functions necessary so AFL's Makefile becomes standards-compliant.
I hope that's useful information.
--- David A. Wheeler