diff --git a/gcr/Makefile.am b/gcr/Makefile.am
index ebb4cc8..325fafc 100644
--- a/gcr/Makefile.am
+++ b/gcr/Makefile.am
@@ -208,8 +208,8 @@ libgcr_testable_la_LIBADD = \
 	$(libgcr_@GCR_MAJOR@_la_OBJECTS) \
 	$(libgcr_@GCR_MAJOR@_la_LIBADD)
 libgcr_testable_la_DEPENDENCIES = \
-	$(libgcr_base_@GCR_MAJOR@_la_OBJECTS) \
-	$(libgcr_@GCR_MAJOR@_la_OBJECTS)
+	libgcr-base-$(GCR_MAJOR).la \
+	libgcr-$(GCR_MAJOR).la
 
 gcr-marshal.h: gcr-marshal.list $(GLIB_GENMARSHAL)
 	$(AM_V_GEN) $(GLIB_GENMARSHAL) $< --header --prefix=_gcr_marshal > $@
