[Build-common-hackers] CFLAGS and implicit rules

Colin Walters walters@verbum.org
Fri, 09 Apr 2004 23:46:04 -0400

Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

On Fri, 2004-04-09 at 19:08, W. Borgert wrote:
> On Fri, Apr 09, 2004 at 03:54:45PM -0400, Colin Walters wrote:
> > On Fri, 2004-04-09 at 15:23, W. Borgert wrote:
> > > with UNIX make, but does not have +=3D nor $<.  Is CDBS pmake
> > > conformant?
> >
> > Not even close :)  I think that if you want to target POSIX make, the
> > only sensible approach is one similar to Automake, which uses a compile=
> > to generate POSIX make code from a make-like source language.
> Too bad.  Unfortunately, this approach fits even worse with
> the make system I have to use ("Continuus").

Sounds scary :)  By the way, the GNU make manual has a section
"Features" that talks about the extensions supported in GNU Make.  So
take away all of those and what's left is a make subset that's likely to
work everywhere.  Just to highlight some things CDBS uses heavily that
would have to be removed in a version that targets pmake:

* Including other makefiles  (we use this a little ;))
* Pattern rules with %  (i.e. basically all of buildcore.mk)
* Conditional execution
* Computed variable references

Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

Version: GnuPG v1.2.3 (GNU/Linux)