-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (28 loc) · 730 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (28 loc) · 730 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Compiler
CXX = g++
# Compiler flags
CXXFLAGS = -std=c++14
# Shell
SH = /bin/bash
# Source and bin directories
SRC_DIR = src
BIN_DIR = bin
SCRIPT_DIR = scripts
# Targets
.PHONY: all poller pollSwayer create_input tally_votes process_log clean
all: directories poller pollSwayer create_input tally_votes process_log
directories: ${BIN_DIR}
${BIN_DIR}:
mkdir -p ${BIN_DIR}
poller: $(SRC_DIR)/poller.cpp
$(CXX) $(CXXFLAGS) $< -o $(BIN_DIR)/$@
pollSwayer: $(SRC_DIR)/pollSwayer.cpp
$(CXX) $(CXXFLAGS) $< -o $(BIN_DIR)/$@
create_input: $(SCRIPT_DIR)/create_input.sh
chmod +x $<
tally_votes: $(SCRIPT_DIR)/tallyVotes.sh
chmod +x $<
process_log: $(SCRIPT_DIR)/processLogFile.sh
chmod +x $<
clean:
rm -rf $(BIN_DIR)