aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/Makefile
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2009-10-29 00:55:35 +0000
committerMåns Rullgård <mans@mansr.com>2009-10-29 00:55:35 +0000
commitde4070b5204a97c555bcc32746fb7c60da971a6c (patch)
treee7693419df86057aa6b905668b19d63c0d869328 /libavcodec/Makefile
parent7a41027cc4c2249fcabd657f848dc8862033a2dd (diff)
downloadffmpeg-de4070b5204a97c555bcc32746fb7c60da971a6c.tar.gz
Add generic rules for building helpers with HOSTCC
Originally committed as revision 20412 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/Makefile')
-rw-r--r--libavcodec/Makefile7
1 files changed, 3 insertions, 4 deletions
diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 0938dd089d..21cba37b58 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -685,17 +685,16 @@ TESTPROGS = cabac dct eval fft h264 iirfilter rangecoder snow
TESTPROGS-$(ARCH_X86) += x86/cpuid
TESTPROGS-$(HAVE_MMX) += motion
+HOSTPROGS = costablegen
+
DIRS = alpha arm bfin mlib ppc ps2 sh4 sparc x86
-CLEANFILES = sin_tables.c cos_tables.c costablegen$(HOSTEXESUF) *_tables.h *_tablegen$(HOSTEXESUF)
+CLEANFILES = sin_tables.c cos_tables.c *_tables.h *_tablegen$(HOSTEXESUF)
include $(SUBDIR)../subdir.mak
$(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o
-$(SUBDIR)costablegen$(HOSTEXESUF): $(SUBDIR)costablegen.c
- $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS)
-
$(SUBDIR)cos_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF)
./$< > $@