From 0b5aa1012368d13d948e22ca27f90479366299fc Mon Sep 17 00:00:00 2001 From: afederici <ajf5@illinois.edu> Date: Sun, 29 Nov 2020 08:40:19 -0600 Subject: [PATCH] fix makefile --- Makefile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/Makefile b/Makefile index 71822ff..c901e41 100644 --- a/Makefile +++ b/Makefile @@ -1,24 +1,15 @@ APP := Node -APP2 := Wc -APP3 := Wr INC_DIR := ./inc CFLAGS := -g -Wall -std=c++11 -I$(INC_DIR) LIBS := -lpthread -SRC_FILES := src/Node.cpp src/Messages.cpp src/Member.cpp src/UdpSocket.cpp src/Threads.cpp src/Utils.cpp src/Logger.cpp src/TcpSocket.cpp src/TestBench.cpp src/main.cpp src/HashRing.cpp src/FileObject.cpp -SRC_FILES2 := mappers/wc.cpp src/Utils.cpp -SRC_FILES3 := mappers/wr.cpp src/Utils.cpp +SRC_FILES := src/Node.cpp src/Messages.cpp src/Member.cpp src/UdpSocket.cpp src/Threads.cpp src/RandomGenerator.cpp src/Logger.cpp src/TcpSocket.cpp src/main.cpp src/HashRing.cpp src/FileObject.cpp + .PHONY: clean -all: clean app map reduce +all: clean app -reduce: - $(CXX) -o $(APP3) $(SRC_FILES3) $(CFLAGS) $(LIBS) -map: - $(CXX) -o $(APP2) $(SRC_FILES2) $(CFLAGS) $(LIBS) app: $(CXX) -o $(APP) $(SRC_FILES) $(CFLAGS) $(LIBS) clean: $(RM) -f $(APP) *.o - $(RM) -f $(APP2) *.o - $(RM) -f $(APP3) *.o -- GitLab