# HG changeset patch # User mru # Date 1256759356 0 # Node ID fc71d28c94bfcc99c8bc1716bb7f5ca69783c92b # Parent 36a16fb5c4978ccb9b14bf03c168101a010cfc72 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. diff -r 36a16fb5c497 -r fc71d28c94bf Makefile --- a/Makefile Wed Oct 28 19:38:31 2009 +0000 +++ b/Makefile Wed Oct 28 19:49:16 2009 +0000 @@ -710,6 +710,9 @@ $(SUBDIR)%_tablegen$(HOSTEXESUF): $(SUBDIR)%_tablegen.c $(SUBDIR)tableprint.c $(HOSTCC) $(HOSTCFLAGS) $(HOSTLDFLAGS) -o $@ $^ $(HOSTLIBS) -$(SUBDIR)mpegaudiodec.o: $(SUBDIR)mpegaudio_tables.h $(SUBDIR)%_tables.h: $(SUBDIR)%_tablegen$(HOSTEXESUF) ./$< > $@ + +ifdef CONFIG_HARDCODED_TABLES +$(SUBDIR)mpegaudiodec.o: $(SUBDIR)mpegaudio_tables.h +endif