[MPlayer-cvslog] r31614 - in trunk: Makefile configure
diego
subversion at mplayerhq.hu
Fri Jul 2 01:18:17 CEST 2010
Author: diego
Date: Fri Jul 2 01:18:16 2010
New Revision: 31614
Log:
Separate automatic dependency generation flags from general CFLAGS.
Before, there was an unfortunate interaction with 'make checkheaders':
Compiling a .h file would generate a .d dependency information file for
that .h file as a sideeffect of compilation. Unfortunately this would
clobber the .d files of the .c files with the same basename, resulting
in broken dependency information when running plain make.
Modified:
trunk/Makefile
trunk/configure
Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile Fri Jul 2 01:03:40 2010 (r31613)
+++ trunk/Makefile Fri Jul 2 01:18:16 2010 (r31614)
@@ -824,13 +824,13 @@ all: $(ALL_PRG-yes)
$(CC) $(ASFLAGS) -c -o $@ $<
%.o: %.c
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
%.o: %.cpp
- $(CC) $(CXXFLAGS) -c -o $@ $<
+ $(CC) $(DEPFLAGS) $(CXXFLAGS) -c -o $@ $<
%.o: %.m
- $(CC) $(CFLAGS) -c -o $@ $<
+ $(CC) $(DEPFLAGS) $(CFLAGS) -c -o $@ $<
%-rc.o: %.rc
$(WINDRES) -I. $< $@
Modified: trunk/configure
==============================================================================
--- trunk/configure Fri Jul 2 01:03:40 2010 (r31613)
+++ trunk/configure Fri Jul 2 01:18:16 2010 (r31614)
@@ -2557,7 +2557,7 @@ else
fi
cflag_check -mno-omit-leaf-frame-pointer && cflags_no_omit_leaf_frame_pointer="-mno-omit-leaf-frame-pointer"
-cflag_check -MD -MP && CFLAGS="-MD -MP $CFLAGS"
+cflag_check -MD -MP && DEPFLAGS="-MD -MP $CFLAGS"
if test -n "$LDFLAGS" ; then
@@ -8463,6 +8463,7 @@ WINDRES = $_windres
CFLAGS = $CFLAGS $extra_cflags
ASFLAGS = \$(CFLAGS)
CXXFLAGS = $CXXFLAGS $extra_cflags $extra_cxxflags
+DEPFLAGS = $DEPFLAGS
CFLAGS_DHAHELPER = $cflags_dhahelper
CFLAGS_FAAD_FIXED = $cflags_faad_fixed
More information about the MPlayer-cvslog
mailing list