Add makefile target for preprocessor
authorFrancis Giraldeau <francis.giraldeau@gmail.com>
Thu, 10 May 2012 15:53:20 +0000 (11:53 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 10 May 2012 15:53:20 +0000 (11:53 -0400)
By specifying .i target, it runs gcc preprocessor for that file.
Example:

  make myfile.i

will read myfile.c and output preprocessor to myfile.i

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Makefile

index dfa0792bf2484afc3f6f0d34cce9b336b9b3286b..d06e6764119d4acd0d49745be0ac8a2c4445b5b2 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -55,4 +55,6 @@ modules_install:
 clean:
        $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
 
+%.i: %.c
+       $(MAKE) -C $(KERNELDIR) M=$(PWD) $@
 endif
This page took 0.025196 seconds and 4 git commands to generate.