From 65c30943489d0713785a23d60daf374da2051924 Mon Sep 17 00:00:00 2001 From: diego Date: Mon, 27 Nov 2006 11:11:14 +0000 Subject: Simplify test program generation. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21312 b3059339-0415-0410-9bf9-f77b7e298cf2 --- mp3lib/Makefile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/mp3lib/Makefile b/mp3lib/Makefile index 056e4bbdcc..78d69c8246 100644 --- a/mp3lib/Makefile +++ b/mp3lib/Makefile @@ -39,11 +39,8 @@ include ../mpcommon.mak 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 -- cgit v1.2.3