[FFmpeg-cvslog] build: use COMPILE template for HOSTOBJS
Mans Rullgard
git at videolan.org
Sat Jul 28 00:10:46 CEST 2012
ffmpeg | branch: master | Mans Rullgard <mans at mansr.com> | Fri Jul 20 11:01:19 2012 +0100| [b9d3c3784865090e202483c73cc158f7d3918771] | committer: Mans Rullgard
build: use COMPILE template for HOSTOBJS
Signed-off-by: Mans Rullgard <mans at mansr.com>
> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b9d3c3784865090e202483c73cc158f7d3918771
---
Makefile | 2 +-
common.mak | 4 ++--
doc/Makefile | 2 --
tests/Makefile | 3 ---
4 files changed, 3 insertions(+), 8 deletions(-)
diff --git a/Makefile b/Makefile
index 90b90fc..3716e9e 100644
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,7 @@ CFLAGS += $(ECFLAGS)
CCFLAGS = $(CPPFLAGS) $(CFLAGS)
ASFLAGS := $(CPPFLAGS) $(ASFLAGS)
YASMFLAGS += $(IFLAGS) -I$(SRC_PATH)/libavutil/x86/ -Pconfig.asm
-HOSTCFLAGS += $(IFLAGS)
+HOSTCCFLAGS = $(IFLAGS) $(HOSTCFLAGS)
LDFLAGS := $(ALLFFLIBS:%=-Llib%) $(LDFLAGS)
define COMPILE
diff --git a/common.mak b/common.mak
index 98c274e..aed11f7 100644
--- a/common.mak
+++ b/common.mak
@@ -33,7 +33,7 @@ checkheaders: $(filter-out $(SKIPHEADERS:.h=.ho),$(ALLHEADERS:.h=.ho))
alltools: $(TOOLS)
$(HOSTOBJS): %.o: %.c
- $(HOSTCC) $(HOSTCFLAGS) -c -o $@ $<
+ $(call COMPILE,HOSTCC)
$(HOSTPROGS): %$(HOSTEXESUF): %.o
$(HOSTCC) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS)
@@ -49,4 +49,4 @@ CLEANSUFFIXES = *.d *.o *~ *.ho *.map *.ver
DISTCLEANSUFFIXES = *.pc
LIBSUFFIXES = *.a *.lib *.so *.so.* *.dylib *.dll *.def *.dll.a
--include $(wildcard $(OBJS:.o=.d) $(TESTOBJS:.o=.d))
+-include $(wildcard $(OBJS:.o=.d) $(HOSTOBJS:.o=.d) $(TESTOBJS:.o=.d))
diff --git a/doc/Makefile b/doc/Makefile
index 15e7323..8f90674 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -17,8 +17,6 @@ documentation: $(DOCS)
TEXIDEP = awk '/^@include/ { printf "$@: $(@D)/%s\n", $$2 }' <$< >$(@:%=%.d)
-doc/print_options.o: libavformat/options_table.h libavcodec/options_table.h
-
GENTEXI = format codec
GENTEXI := $(GENTEXI:%=doc/avoptions_%.texi)
diff --git a/tests/Makefile b/tests/Makefile
index 63cf1f2..0b11102 100644
--- a/tests/Makefile
+++ b/tests/Makefile
@@ -3,9 +3,6 @@ AREF = tests/data/asynth1.sw
OBJDIRS += tests/data tests/vsynth1
-# Required due to missing automatic dependency tracking for HOSTOBJS.
-tests/rotozoom.o tests/videogen.o: tests/utils.c
-
tests/vsynth1/00.pgm: tests/videogen$(HOSTEXESUF) | tests/vsynth1
$(M)./$< 'tests/vsynth1/'
More information about the ffmpeg-cvslog
mailing list