Index: configure =================================================================== --- configure (版本 26219) +++ configure (工作副本) @@ -7584,7 +7587,7 @@ CFLAGS="$CFLAGS -DHAVE_CONFIG_H" fi -CFLAGS="-I. -I.. -I../libavutil $CFLAGS" +CFLAGS="-I. -I.. -I../libavutil $CFLAGS -D_ISOC9X_SOURCE -include all.h" CXXFLAGS=" $CFLAGS -D__STDC_LIMIT_MACROS" cat > $TMPC << EOF @@ -7594,6 +7597,7 @@ cc_check -Wdeclaration-after-statement && CFLAGS="-Wdeclaration-after-statement $CFLAGS" cc_check -Wno-pointer-sign && CFLAGS="-Wno-pointer-sign $CFLAGS" cc_check -Wdisabled-optimization && CFLAGS="-Wdisabled-optimization $CFLAGS" + cc_check -Winvalid-pch && CFLAGS="-Winvalid-pch $CFLAGS" fi cc_check -mno-omit-leaf-frame-pointer && CFLAG_NO_OMIT_LEAF_FRAME_POINTER="-mno-omit-leaf-frame-pointer" Index: all.h =================================================================== --- all.h (版本 0) +++ all.h (版本 0) @@ -0,0 +1,14 @@ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + Index: libdvdcss/Makefile =================================================================== --- libdvdcss/Makefile (版本 26219) +++ libdvdcss/Makefile (工作副本) @@ -9,6 +9,6 @@ libdvdcss.c \ #bsdi_ioctl \ -CFLAGS = -D__USE_UNIX98 -D_GNU_SOURCE -DVERSION=\"1.2.9\" +CFLAGS = -DVERSION=\"1.2.9\" include ../mpcommon.mak Index: libfaad2/Makefile =================================================================== --- libfaad2/Makefile (版本 26219) +++ libfaad2/Makefile (工作副本) @@ -41,8 +41,6 @@ syntax.c \ tns.c \ -CFLAGS = -D_GNU_SOURCE - # The FIXED_POINT implementation of FAAD2 improves performance # on some platforms, especially for SBR files. CFLAGS-$(FAAD_FIXED) += -DFIXED_POINT Index: dvdread/Makefile =================================================================== --- dvdread/Makefile (版本 26219) +++ dvdread/Makefile (工作副本) @@ -12,8 +12,6 @@ nav_print.c \ nav_read.c \ -CFLAGS = -D__USE_UNIX98 -D_GNU_SOURCE - CFLAGS-$(DVDCSS_INTERNAL) += -I../libdvdcss -DHAVE_DVDCSS_DVDCSS_H include ../mpcommon.mak Index: Makefile =================================================================== --- Makefile (版本 26219) +++ Makefile (工作副本) @@ -132,7 +134,7 @@ all: $(ALL_PRG) -dep depend:: help_mp.h version.h codecs.conf.h +dep depend:: help_mp.h version.h codecs.conf.h all.h.gch @for a in $(PARTS); do $(MAKE) -C $$a dep; done include mpcommon.mak @@ -328,9 +329,13 @@ @echo "############################################################" # rebuild at every config.h/config.mak/Makefile change: -version.h: config.h config.mak Makefile +version.h: .svn/entries ./version.sh `$(CC) -dumpversion` +all.h.gch: all.h + -rm -rf all.h.gch + $(CC) $(CFLAGS) all.h + doxygen: doxygen DOCS/tech/Doxyfile @@ -353,7 +358,7 @@ endif # explicit dependencies to force version.h to be built even if .depend is missing -mplayer.o mencoder.o vobsub.o: version.h +mplayer.o mencoder.o vobsub.o: version.h all.h.gch # temporary measure to make sure help_mp.h is built. we desperately need correct deps! $(MPLAYER_DEPS) $(MENCODER_DEPS): help_mp.h