diff --git a/src/test/Makefile b/src/test/Makefile
index 7a2aa49..40f97a8 100644
--- a/src/test/Makefile
+++ b/src/test/Makefile
@@ -1,4 +1,6 @@
 SRCDIR = $(realpath .)
+TOPDIR = $(realpath $(SRCDIR)/../..)
+
 
 include $(TOPDIR)/src/include/defaults.mk
 include $(TOPDIR)/src/include/version.mk
