diff --git a/libswscale/Makefile b/libswscale/Makefile
index 8db2e650317fc0597b20b923aee8033992889768..14a65b92c0aed51c645e6f75c7ff82e41a7c94c5 100644
--- a/libswscale/Makefile
+++ b/libswscale/Makefile
@@ -21,9 +21,9 @@ HEADERS = swscale.h rgb2rgb.h
 
 include ../common.mak
 
-cs_test: cs_test.o $(LIB)
+cs_test: cs_test.o $(LIBNAME)
 
-swscale-example: swscale-example.o $(LIB)
+swscale-example: swscale-example.o $(LIBNAME)
 swscale-example: EXTRALIBS += -lm
 
 clean::