mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Move output redirection of deps generation from make rule to DEPEND_CMD
Originally committed as revision 19493 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
99e5a9d1ea
commit
adcb219081
@ -30,13 +30,13 @@ CPPFLAGS := -DHAVE_AV_CONFIG_H -I$(BUILD_ROOT_REL) -I$(SRC_PATH) $(CPPFLAGS)
|
|||||||
$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<
|
$(CC) $(CPPFLAGS) $(CFLAGS) $(LIBOBJFLAGS) -Wno-unused -c -o $@ -x c $<
|
||||||
|
|
||||||
%.d: %.c
|
%.d: %.c
|
||||||
$(DEPEND_CMD) > $@
|
$(DEPEND_CMD)
|
||||||
|
|
||||||
%.d: %.S
|
%.d: %.S
|
||||||
$(DEPEND_CMD) > $@
|
$(DEPEND_CMD)
|
||||||
|
|
||||||
%.d: %.cpp
|
%.d: %.cpp
|
||||||
$(DEPEND_CMD) > $@
|
$(DEPEND_CMD)
|
||||||
|
|
||||||
%.o: %.d
|
%.o: %.d
|
||||||
|
|
||||||
|
2
configure
vendored
2
configure
vendored
@ -1296,7 +1296,7 @@ target_path='.'
|
|||||||
|
|
||||||
# gcc stupidly only outputs the basename of targets with -MM, but we need the
|
# gcc stupidly only outputs the basename of targets with -MM, but we need the
|
||||||
# full relative path for objects in subdirectories for non-recursive Make.
|
# full relative path for objects in subdirectories for non-recursive Make.
|
||||||
DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o,"'
|
DEPEND_CMD='$(DEPCC) $(DEPFLAGS) $< | sed -e "/^\#.*/d" -e "s,^[[:space:]]*$(*F)\\.o,$(@D)/$(*F).o," > $@'
|
||||||
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
|
DEPFLAGS='$(CPPFLAGS) $(CFLAGS) -MM'
|
||||||
|
|
||||||
# find source path
|
# find source path
|
||||||
|
Loading…
Reference in New Issue
Block a user