changeset 21296:bf9e5ad91bbb

Simplify test program generation.
author diego
date Mon, 27 Nov 2006 11:11:14 +0000
parents 337e3018cd8b
children 5d45c1b7d732
files mp3lib/Makefile
diffstat 1 files changed, 3 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- 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