Mercurial > libavcodec.hg
comparison Makefile @ 10474:fc71d28c94bf libavcodec
Generate mpegaudio tables only when CONFIG_HARDCODED_TABLES is set
Having mpegaudiodec.o unconditionally depend on mpegaudio_tables.h
forces the latter to be generated even when it will not be used.
author | mru |
---|---|
date | Wed, 28 Oct 2009 19:49:16 +0000 |
parents | 5e984fa3613f |
children | 26d367865bda |
comparison
equal
deleted
inserted
replaced
10473:36a16fb5c497 | 10474:fc71d28c94bf |
---|---|
708 $(SUBDIR)mpegaudio_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DFRAC_BITS=15 | 708 $(SUBDIR)mpegaudio_tablegen$(HOSTEXESUF): HOSTCFLAGS += -DFRAC_BITS=15 |
709 endif | 709 endif |
710 $(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)tableprint.c | 710 $(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)tableprint.c |
711 $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS) | 711 $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS) |
712 | 712 |
713 $(SUBDIR)mpegaudiodec.o: $(SUBDIR)mpegaudio_tables.h | |
714 $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF) | 713 $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF) |
715 ./$< > $@ | 714 ./$< > $@ |
715 | |
716 ifdef CONFIG_HARDCODED_TABLES | |
717 $(SUBDIR)mpegaudiodec.o: $(SUBDIR)mpegaudio_tables.h | |
718 endif |