diff --git a/src/cluster/Makefile b/src/cluster/Makefile
index d4eb5900ecc91a1806f555e065b703ef2956f473..694bbc0d816dea1e2d4c4039a8967f0f973bd339 100644
--- a/src/cluster/Makefile
+++ b/src/cluster/Makefile
@@ -19,7 +19,7 @@ np_cluster: $(BUILDDIR)/np_cluster.o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configura
 	$(CXX) $(CXXFLAGS) $(CXXLFLAGS) -o $(BUILDDIR)/np_cluster $(BUILDDIR)/np_cluster.o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configuration.o $(BUILDDIR)/Parsers.o $(BUILDDIR)/sphere.o $(BUILDDIR)/cluster.o
 
 $(BUILDDIR)/np_cluster.o:
-	$(CXX) $(CXXFLAGS) -c ../np_cluster.cpp -o $(BUILDDIR)/np_cluster.o
+	$(CXX) $(CXXFLAGS) -c np_cluster.cpp -o $(BUILDDIR)/np_cluster.o
 
 $(BUILDDIR)/Commons.o:
 	$(CXX) $(CXXFLAGS) -c ../libnptm/Commons.cpp -o $(BUILDDIR)/Commons.o
diff --git a/src/sphere/Makefile b/src/sphere/Makefile
index c42d9b04f701cfb823a0c443581c96c23207d920..7c616b7ca9368a4e27bfaf3d2b486d08a88dfafb 100644
--- a/src/sphere/Makefile
+++ b/src/sphere/Makefile
@@ -18,7 +18,7 @@ np_sphere: $(BUILDDIR)/np_sphere.o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configurati
 	$(CXX) $(CXXFLAGS) $(CXXLFLAGS) -o $(BUILDDIR)/np_sphere $(BUILDDIR)/np_sphere.o $(BUILDDIR)/Commons.o $(BUILDDIR)/Configuration.o $(BUILDDIR)/Parsers.o $(BUILDDIR)/sphere.o
 
 $(BUILDDIR)/np_sphere.o:
-	$(CXX) $(CXXFLAGS) -c ../np_sphere.cpp -o $(BUILDDIR)/np_sphere.o
+	$(CXX) $(CXXFLAGS) -c np_sphere.cpp -o $(BUILDDIR)/np_sphere.o
 
 $(BUILDDIR)/Commons.o:
 	$(CXX) $(CXXFLAGS) -c ../libnptm/Commons.cpp -o $(BUILDDIR)/Commons.o