Mercurial > libavcodec.hg
comparison Makefile @ 10478:decdb00e19a8 libavcodec
Add generic rules for building helpers with HOSTCC
author | mru |
---|---|
date | Thu, 29 Oct 2009 00:55:35 +0000 |
parents | 26d367865bda |
children | 9b56cd1e37b7 |
comparison
equal
deleted
inserted
replaced
10477:8cccee204e2e | 10478:decdb00e19a8 |
---|---|
683 | 683 |
684 TESTPROGS = cabac dct eval fft h264 iirfilter rangecoder snow | 684 TESTPROGS = cabac dct eval fft h264 iirfilter rangecoder snow |
685 TESTPROGS-$(ARCH_X86) += x86/cpuid | 685 TESTPROGS-$(ARCH_X86) += x86/cpuid |
686 TESTPROGS-$(HAVE_MMX) += motion | 686 TESTPROGS-$(HAVE_MMX) += motion |
687 | 687 |
688 HOSTPROGS = costablegen | |
689 | |
688 DIRS = alpha arm bfin mlib ppc ps2 sh4 sparc x86 | 690 DIRS = alpha arm bfin mlib ppc ps2 sh4 sparc x86 |
689 | 691 |
690 CLEANFILES = sin_tables.c cos_tables.c costablegen$(HOSTEXESUF) *_tables.h *_tablegen$(HOSTEXESUF) | 692 CLEANFILES = sin_tables.c cos_tables.c *_tables.h *_tablegen$(HOSTEXESUF) |
691 | 693 |
692 include $(SUBDIR)../subdir.mak | 694 include $(SUBDIR)../subdir.mak |
693 | 695 |
694 $(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o | 696 $(SUBDIR)dct-test$(EXESUF): $(SUBDIR)dctref.o |
695 | |
696 $(SUBDIR)costablegen$(HOSTEXESUF): $(SUBDIR)costablegen.c | |
697 $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $< $(HOSTLIBS) | |
698 | 697 |
699 $(SUBDIR)cos_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF) | 698 $(SUBDIR)cos_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF) |
700 ./$< > $@ | 699 ./$< > $@ |
701 | 700 |
702 $(SUBDIR)sin_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF) | 701 $(SUBDIR)sin_tables.c: $(SUBDIR)costablegen$(HOSTEXESUF) |