-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
23 lines (18 loc) · 824 Bytes
/
Copy pathMakefile
File metadata and controls
23 lines (18 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# A modified version of Wesley Mackey's Makefile
WARNING = -Wall -Wextra -Wpedantic -Wshadow -Wold-style-cast
COMPILECPP = g++ -std=c++17 -g -O0 ${WARNING}
MAKEDEPCPP = g++ -std=c++17 -MM
VALGRIND = valgrind --leak-check=full --show-reachable=yes
BG_SRCS = src/BidirectedGraph.cpp src/BidirectedGraphBuilder.cpp # Bidirected graph sources
ALGO_SRCS = src/algorithms/find_balanced_bundles.cpp src/algorithms/bundle.cpp # Algorithm sources
HG_SRCS = deps/handlegraph/handle_graph.cpp # Handlegraph sources
JSON_SRCS = deps/json/jsoncpp.cpp # JSON Library Sources
SOURCES = ${MAIN_PRG} ${BG_SRCS} ${ALGO_SRCS} ${HG_SRCS} ${JSON_SRCS}
OBJECTS = ${SOURCES:.cpp=.o}
# Compiles all source files
sources : ${OBJECTS}
%.o : %.cpp
${COMPILECPP} -c $< -o $@
# Removes all compiled code
clean :
- rm ${OBJECTS}