-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (21 loc) · 688 Bytes
/
Makefile
File metadata and controls
24 lines (21 loc) · 688 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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
.PHONY: clean
all: clean app map reduce
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