# HG changeset patch # User diego # Date 1164625874 0 # Node ID bf9e5ad91bbb0b9663b61b241cb65462b5181a40 # Parent 337e3018cd8b1962f65a4aef94edaa269430629e Simplify test program generation. diff -r 337e3018cd8b -r bf9e5ad91bbb mp3lib/Makefile --- a/mp3lib/Makefile Mon Nov 27 10:58:03 2006 +0000 +++ b/mp3lib/Makefile Mon Nov 27 11:11:14 2006 +0000 @@ -39,11 +39,8 @@ decode_i586.o: decode_i586.c $(CC) -c $(CFLAGS) -fomit-frame-pointer -o $@ $< -test1: libMP3.a test.c - $(CC) $(CFLAGS) test.c ../libvo/aclib.c -o test1 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm - -test2: libMP3.a test2.c - $(CC) $(CFLAGS) test2.c ../libvo/aclib.c -o test2 -I.. ./libMP3.a ../mp_msg-mencoder.o ../cpudetect.o -lm +%: %.c $(LIBNAME) ../mp_msg-mencoder.o ../cpudetect.o + $(CC) $(CFLAGS) -o $@ ../libvo/aclib.c $^ -lm distclean:: - rm -f test1 test2 + rm -f test test2