# HG changeset patch # User mru # Date 1256777735 0 # Node ID decdb00e19a888e09a26d5b8397f4e689aac31af # Parent 8cccee204e2e9889192ad66cd3ce5d0f5ba48a8d Add generic rules for building helpers with HOSTCC diff -r 8cccee204e2e -r decdb00e19a8 Makefile --- 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) ./$< > $@