aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger2009-06-14 10:03:48 -0500
committerWolfgang Denk2009-06-14 16:36:47 -0500
commit31f30c9eb60d9ab0bd702e31f66345f99b34bdc6 (patch)
treea44d066671152ddce3c65044fda7b2cc89360e84 /config.mk
parent6d1ce387874c1060f27656f70151a52c511cd0e3 (diff)
downloadu-boot-31f30c9eb60d9ab0bd702e31f66345f99b34bdc6.tar.gz
u-boot-31f30c9eb60d9ab0bd702e31f66345f99b34bdc6.tar.xz
u-boot-31f30c9eb60d9ab0bd702e31f66345f99b34bdc6.zip
add %.c->%.i and %.c->%.s rules
The Linux kernel has some helper rules which allow you to quickly produce some of the intermediary files from C source. Specifically, you can create .i files which is the preprocessed output and you can create .s files which is the assembler output. This is useful when you are trying to track down header/macro expansion errors or inline assembly errors. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Acked-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
Diffstat (limited to 'config.mk')
-rw-r--r--config.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.mk b/config.mk
index f5b9c28f1d..7fc045375a 100644
--- a/config.mk
+++ b/config.mk
@@ -214,5 +214,9 @@ $(obj)%.o: %.S
214 $(CC) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $< -c 214 $(CC) $(AFLAGS) $(AFLAGS_$(@F)) $(AFLAGS_$(BCURDIR)) -o $@ $< -c
215$(obj)%.o: %.c 215$(obj)%.o: %.c
216 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c 216 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
217$(obj)%.i: %.c
218 $(CPP) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c
219$(obj)%.s: %.c
220 $(CC) $(CFLAGS) $(CFLAGS_$(@F)) $(CFLAGS_$(BCURDIR)) -o $@ $< -c -S
217 221
218######################################################################### 222#########################################################################