Make example and test build and link correctly
authorLuca Barbato <lu_zero@gentoo.org>
Sun, 28 Jan 2007 17:52:59 +0000 (17:52 +0000)
committerLuca Barbato <lu_zero@gentoo.org>
Sun, 28 Jan 2007 17:52:59 +0000 (17:52 +0000)
Originally committed as revision 22048 to svn://svn.mplayerhq.hu/mplayer/trunk/libswscale

libswscale/Makefile

index d9b67da..771f9ac 100644 (file)
@@ -18,9 +18,9 @@ HEADERS = swscale.h rgb2rgb.h
 
 include ../common.mak
 
-cs_test: cs_test.c $(LIB)
+cs_test: cs_test.o $(LIB)
 
-swscale-example: swscale-example.o $(LIB)
+swscale-example: swscale-example.o $(LIB) -lm
 
 clean::
        rm -f cs_test swscale-example