[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] build/rules: Add support for M4 rules



This patch series adds support for M4 macro processor. By having this,
any source file can be pre-processed before it gets compiled. For this
purpose, the syntax is extended with an optional '>' operator followed
with the target file extension after pre-processing.
As example:

LIB_SRCS-y += preprocess.m4>.c

...means that the source file `preprocess.m4` will be pre-processed
thorugh M4 to `preprocess.c` (placed to the build directory) before
getting compiled. The according compiler rule is selected depending
on the given target extension. In this case the C compiler is invoked
to produce `preprocess.o`.

Simon Kuenzer (3):
  build/rules: Provide `src2dst` function
  build/rules: Add support for pre-processing rules
  build/rules: M4 macro processor support

 Makefile                     |  1 +
 Makefile.uk                  |  2 +
 support/build/Makefile.rules | 91 +++++++++++++++++++++++++++++++++---
 3 files changed, 87 insertions(+), 7 deletions(-)

-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.