diff --git a/libavcodec/Makefile b/libavcodec/Makefile
index 6274f587eaa4ec0ec9a7683f4d4d9afd819342fd..e6a4e21f4aff526cf4069b96ac2afa49e1226d10 100644
--- a/libavcodec/Makefile
+++ b/libavcodec/Makefile
@@ -245,8 +245,8 @@ endif
 
 ifeq ($(AMR_NB_FIXED),yes)
 AMROBJS= amr.o
-AMREXTRALIBS+= amr/*.o
-AMRLIBS=amrlibs
+EXTRAOBJS += amr/*.o
+EXTRADEPS=amrlibs
 CLEANAMR=cleanamr
 endif
 
@@ -423,12 +423,8 @@ LIBMAJOR=$(LAVCMAJOR)
 endif
 TESTS= imgresample-test dct-test motion-test fft-test
 
-EXTRAOBJS = $(AMREXTRALIBS)
-
 include $(SRC_PATH)/common.mak
 
-$(LIB): $(AMRLIBS)
-
 amrlibs:
 	$(MAKE) -C amr spclib fipoplib