changeset 35897:23ae72ee9c04

build: Drop mp_msg dependencies for codec-cfg-test.
author diego
date Sun, 17 Mar 2013 22:20:46 +0000
parents 0553bd41eb78
children 952818cdfe94
files Makefile codec-cfg.c
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Sun Mar 17 22:20:42 2013 +0000
+++ b/Makefile	Sun Mar 17 22:20:46 2013 +0000
@@ -1009,7 +1009,7 @@
 
 TEST_OBJS = mp_msg.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm
 
-codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h help_mp.h $(TEST_OBJS)
+codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h help_mp.h
 	$(CC) -I. -Iffmpeg -DTESTING -o $@ $^
 
 codecs2html$(EXESUF): codec-cfg.c help_mp.h
--- a/codec-cfg.c	Sun Mar 17 22:20:42 2013 +0000
+++ b/codec-cfg.c	Sun Mar 17 22:20:46 2013 +0000
@@ -43,7 +43,7 @@
 
 #include "config.h"
 #include "mp_msg.h"
-#ifdef CODECS2HTML
+#if defined(CODECS2HTML) || defined(TESTING)
 #ifdef __GNUC__
 #define mp_msg(t, l, m, args...) fprintf(stderr, m, ##args)
 #else