changeset 10478:decdb00e19a8 libavcodec

Add generic rules for building helpers with HOSTCC
author mru
date Thu, 29 Oct 2009 00:55:35 +0000
parents 8cccee204e2e
children bc20a950f9a7
files Makefile
diffstat 1 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Wed Oct 28 22:41:45 2009 +0000
+++ b/Makefile	Thu Oct 29 00:55:35 2009 +0000
@@ -685,17 +685,16 @@
 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)
 	./$< > $@