summaryrefslogtreecommitdiffstats
path: root/library.mak
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-02-08 12:18:27 +0100
committerMichael Niedermayer <michaelni@gmx.at>2015-02-17 13:08:04 +0100
commitbc8e044d8c3277958c920091412b77d4e7411d96 (patch)
tree61173f1e201e5e458cd1d1a8c4353cdf1b0f8eea /library.mak
parentd9293c776ed9129acaf3d41fb727380c293dc943 (diff)
downloadffmpeg-streaming-bc8e044d8c3277958c920091412b77d4e7411d96.zip
ffmpeg-streaming-bc8e044d8c3277958c920091412b77d4e7411d96.tar.gz
x86/doc/Makefile: DBG=1 to preprocess external asm
The macro hell sometimes make it difficult to trace the source of an error, so it is easier to analyze the preprocessed output. This patch makes this automatical by specifying DBG=1 on the command line: a file ffmpeg/dir/file.asm gets preprocessed to builddir/dir/file.dbg.asm, which is then compiled. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'library.mak')
-rw-r--r--library.mak6
1 files changed, 5 insertions, 1 deletions
diff --git a/library.mak b/library.mak
index 72e5574..e23abd2 100644
--- a/library.mak
+++ b/library.mak
@@ -22,7 +22,11 @@ $(SUBDIR)%-test.i: $(SUBDIR)%-test.c
$(SUBDIR)%-test.i: $(SUBDIR)%.c
$(CC) $(CCFLAGS) $(CC_E) $<
-$(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm
+$(SUBDIR)x86/%$(DEFAULT_YASMD).asm: $(SUBDIR)x86/%.asm
+ $(DEPYASM) $(YASMFLAGS) -I $(<D)/ -M -o $@ $< > $(@:.asm=.d)
+ $(YASM) $(YASMFLAGS) -I $(<D)/ -e $< | sed '/^%/d;/^$$/d;' > $@
+
+$(SUBDIR)x86/%.o: $(SUBDIR)x86/%$(YASMD).asm
$(DEPYASM) $(YASMFLAGS) -I $(<D)/ -M -o $@ $< > $(@:.o=.d)
$(YASM) $(YASMFLAGS) -I $(<D)/ -o $@ $<
-$(if $(ASMSTRIPFLAGS), $(STRIP) $(ASMSTRIPFLAGS) $@)
OpenPOWER on IntegriCloud