[MPlayer-cvslog] r36007 - in trunk: Makefile configure

diego subversion at mplayerhq.hu
Tue Mar 19 11:42:23 CET 2013


Author: diego
Date: Tue Mar 19 11:42:23 2013
New Revision: 36007

Log:
build: Compile all codec-cfg* host tools with one generic rule.

Modified:
   trunk/Makefile
   trunk/configure

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	Tue Mar 19 11:42:19 2013	(r36006)
+++ trunk/Makefile	Tue Mar 19 11:42:23 2013	(r36007)
@@ -766,8 +766,10 @@ mplayer$(EXESUF): EXTRALIBS += $(EXTRALI
 mencoder$(EXESUF) mplayer$(EXESUF):
 	$(CC) -o $@ $^ $(EXTRALIBS)
 
-codec-cfg$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
-	$(HOST_CC) -O -DCODECS2HTML -I. -Iffmpeg -o $@ $<
+codec-cfg-test$(EXESUF): HOSTCFLAGS := $(HOSTCFLAGS) -DTESTING
+codec-cfg$(EXESUF) codecs2html$(EXESUF):  HOSTCFLAGS := $(HOSTCFLAGS) -DCODECS2HTML
+codec-cfg$(EXESUF) codec-cfg-test$(EXESUF) codecs2html$(EXESUF): codec-cfg.c codec-cfg.h help_mp.h
+	$(HOST_CC) $(HOSTCFLAGS) -o $@ $<
 
 codecs.conf.h: codec-cfg$(EXESUF) etc/codecs.conf
 	./$^ > $@
@@ -839,7 +841,7 @@ $(foreach lang, $(DOC_LANG_ALL),$(eval $
 ###### dependency declarations / specific CFLAGS ######
 
 # Make sure all generated header files are created.
-codec-cfg.o: codecs.conf.h
+codec-cfg.o codec-cfg-test$(EXESUF): codecs.conf.h
 $(DEP_FILES) $(MENCODER_DEPS) $(MPLAYER_DEPS): help_mp.h
 mpcommon.o osdep/mplayer-rc.o gui/dialog/about.o gui/win32/gui.o: version.h
 
@@ -1009,12 +1011,6 @@ endif
 
 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
-	$(CC) -I. -Iffmpeg -DTESTING -o $@ $^
-
-codecs2html$(EXESUF): codec-cfg.c help_mp.h
-	$(CC) -I. -Iffmpeg -DCODECS2HTML -o $@ $^
-
 libvo/aspecttest$(EXESUF): libvo/aspect.o libvo/geometry.o $(TEST_OBJS)
 
 LOADER_TEST_OBJS = $(SRCS_WIN32_EMULATION:.c=.o) $(SRCS_QTX_EMULATION:.S=.o) ffmpeg/libavutil/libavutil.a osdep/mmap_anon.o cpudetect.o path.o $(TEST_OBJS)

Modified: trunk/configure
==============================================================================
--- trunk/configure	Tue Mar 19 11:42:19 2013	(r36006)
+++ trunk/configure	Tue Mar 19 11:42:23 2013	(r36007)
@@ -8494,7 +8494,7 @@ CONFIG_SWRESAMPLE = $ffmpeg_a
 ASFLAGS    = \$(CFLAGS)
 AS_DEPFLAGS= $DEPFLAGS
 HOSTCC     = \$(HOST_CC)
-HOSTCFLAGS = -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I. -O3
+HOSTCFLAGS = -D_ISOC99_SOURCE -D_POSIX_C_SOURCE=200112 -D_XOPEN_SOURCE=600 -I. -Iffmpeg -O3
 HOSTLIBS   = -lm
 AS_O       = -o \$@
 CC_O       = -o \$@


More information about the MPlayer-cvslog mailing list