From c262649291e711c084c5d8fc3fd0eee175f155ff Mon Sep 17 00:00:00 2001 From: Mans Rullgard Date: Wed, 3 Oct 2012 13:48:27 +0100 Subject: build: add rules to generate preprocessed source files This is useful for debugging. Dependencies for these files are not generated due to limitations in many compilers. Signed-off-by: Mans Rullgard --- library.mak | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'library.mak') diff --git a/library.mak b/library.mak index 33ec37f1cd..9309c42e5d 100644 --- a/library.mak +++ b/library.mak @@ -17,12 +17,19 @@ $(SUBDIR)%-test.o: $(SUBDIR)%-test.c $(SUBDIR)%-test.o: $(SUBDIR)%.c $(COMPILE_C) +$(SUBDIR)%-test.i: $(SUBDIR)%-test.c + $(CC) $(CCFLAGS) $(CC_E) $< + +$(SUBDIR)%-test.i: $(SUBDIR)%.c + $(CC) $(CCFLAGS) $(CC_E) $< + $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm $(DEPYASM) $(YASMFLAGS) -I $( $(@:.o=.d) $(YASM) $(YASMFLAGS) -I $(