summaryrefslogtreecommitdiff
path: root/libavcodec/Makefile
diff options
context:
space:
mode:
authorNicolas George <nicolas.george@normalesup.org>2011-10-22 10:55:44 +0200
committerMichael Niedermayer <michaelni@gmx.at>2011-10-22 16:49:49 +0200
commit0e138745f79f9da6a28b39dbd321354fd1159068 (patch)
tree3d9c94d3adc62525389b5c719a0cc5df6cb48857 /libavcodec/Makefile
parent9ab5e64897b341044d3b39c6f941630e214a9766 (diff)
codec_names: invoke preprocessor on avcodec.h.
This fixes failures when codec IDs are defined conditionally, for example when scheduling for a major bump. Signed-off-by: Nicolas George <nicolas.george@normalesup.org> Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavcodec/Makefile')
-rw-r--r--libavcodec/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 147b37fa5f..4941b6f0b2 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -756,5 +756,6 @@ endif
CODEC_NAMES_SH := $(SRC_PATH)/$(SUBDIR)codec_names.sh
AVCODEC_H := $(SRC_PATH)/$(SUBDIR)avcodec.h
$(SUBDIR)codec_names.h: $(CODEC_NAMES_SH) config.h $(AVCODEC_H)
- $(M)$(CODEC_NAMES_SH) config.h $(AVCODEC_H) $@
+ $(CC) $(CPPFLAGS) $(CFLAGS) -E $(AVCODEC_H) | \
+ $(CODEC_NAMES_SH) config.h $@
$(SUBDIR)utils.o: $(SUBDIR)codec_names.h