diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 1b41ae91a3af02021eb03b19ae8db715c77e7c31..083222160fb9038f719469a124b14fa23d45aa4b 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -374,14 +374,14 @@ ifeq ($(BUILD_SHARED),yes)
 LIBVERSION=$(LAVCVERSION)
 LIBMAJOR=$(LAVCMAJOR)
 endif
-TESTS= imgresample-test dct-test motion-test fft-test
+TESTS= cpuid_test imgresample-test dct-test motion-test fft-test
 
 include $(SRC_PATH)/common.mak
 
 amrlibs:
 	$(MAKE) -C amr spclib fipoplib
 
-tests: apiexample cpuid_test $(TESTS)
+tests: apiexample $(TESTS)
 
 clean::
 	rm -f \