--- test/logical/Makefile.orig	2015-05-20 19:56:03.000000000 +0800
+++ test/logical/Makefile	2023-01-20 00:25:39.000000000 +0800
@@ -20,7 +20,7 @@
 	@$(foreach test,$(LTESTS),./$(test) &&) echo 'End of logical tests!'
 
 %:: %.f90
-	$(FC) $(FFLAGS) -cpp $< -o $@ -I ../../include $(INSTALLDIR)/eiscor/lib/lib$(LIBNAME).$(SLIB).$(VERSION)  $(LIBS)
+	$(FC) $(FFLAGS) -cpp $< -o $@ -I ../../include @BUILDDIR@/lib$(LIBNAME).$(SLIB) $(LIBS)
 
 clean:
 	@rm -f $(LTESTS)	

--- test/double/Makefile.orig	2015-05-20 19:56:03.000000000 +0800
+++ test/double/Makefile	2023-01-20 00:24:55.000000000 +0800
@@ -20,7 +20,7 @@
 	@$(foreach test,$(DTESTS),./$(test) &&) echo 'End of double tests!'
 
 %:: %.f90
-	$(FC) $(FFLAGS) -cpp $< -o $@ -I ../../include $(INSTALLDIR)/eiscor/lib/lib$(LIBNAME).$(SLIB).$(VERSION)  $(LIBS)
+	$(FC) $(FFLAGS) -cpp $< -o $@ -I ../../include @BUILDDIR@/lib$(LIBNAME).$(SLIB) $(LIBS)
 
 clean:
 	@rm -f $(DTESTS)	

--- test/complex_double/Makefile.orig	2015-05-20 19:56:03.000000000 +0800
+++ test/complex_double/Makefile	2023-01-20 00:24:12.000000000 +0800
@@ -20,7 +20,7 @@
 	@$(foreach test,$(ZTESTS),./$(test) &&) echo 'End of complex_double tests!'
 
 %:: %.f90
-	$(FC) $(FFLAGS) -cpp $< -o $@ -I ../../include $(INSTALLDIR)/eiscor/lib/lib$(LIBNAME).$(SLIB).$(VERSION) $(LIBS)
+	$(FC) $(FFLAGS) -cpp $< -o $@ -I ../../include @BUILDDIR@/lib$(LIBNAME).$(SLIB) $(LIBS)
 
 clean:
 	@rm -f $(ZTESTS)	
