diff --git a/P2/Makefile b/P2/Makefile
index 9cd92f65bb187388a19a83033ad143a9a24e6be4..a69e083f85e5b1661f77d4428a3c5a321f5ca9a6 100644
--- a/P2/Makefile
+++ b/P2/Makefile
@@ -1,7 +1,7 @@
 CXX = mpic++
 CXXFLAGS = -std=c++17 -Wall -Wextra -O0
-TARGET = profile.cpp
-OBJ = matrix.o distributedmatrix.o profile.o globals.o
+TARGET = distributedtests
+OBJ = matrix.o distributedmatrix.o distributedtests.o mlp_sgd_distributed.o globals.o
 HEADERS = abstractmatrix.hpp matrix.hpp distributedmatrix.hpp globals.hpp
 
 all:
@@ -16,9 +16,6 @@ matrix.o: matrix.cpp matrix.hpp abstractmatrix.hpp
 distributedmatrix.o: distributedmatrix.cpp distributedmatrix.hpp matrix.hpp abstractmatrix.hpp
 	$(CXX) $(CXXFLAGS) -c distributedmatrix.cpp
 
-profile.o: profile.cpp distributedmatrix.hpp matrix.hpp abstractmatrix.hpp
-	$(CXX) $(CXXFLAGS) -c profile.cpp
-
 distributedtests.o: distributedtests.cpp distributedmatrix.hpp matrix.hpp abstractmatrix.hpp
 	$(CXX) $(CXXFLAGS) -c distributedtests.cpp