-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
29 lines (21 loc) · 710 Bytes
/
Copy pathMakefile
File metadata and controls
29 lines (21 loc) · 710 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
# Compile object files for code
WARNING = -Wall -Wextra -Wpedantic -Wshadow -Wold-style-cast
COMPILECPP = g++ -std=c++17 -g -O0 ${WARNING}
MAKEDEPCPP = g++ -std=c++17 -MM
BG_SRCS = src/BidirectedGraph.cpp
HG_SRCS = deps/libhandlegraph/src/handle.cpp
JSON_SRCS = deps/jsoncpp/dist/jsoncpp.cpp
SOURCES = ${BG_SRCS} ${HG_SRCS} ${JSON_SRCS}
OBJECTS = ${SOURCES:.cpp=.o}
# Compiles all source files
sources: ${OBJECTS}
build_deps: build_json build_hg
build_json:
cd deps/jsoncpp && python3 amalgamate.py
build_hg:
cd deps/libhandlegraph && mkdir build && cd build && cmake .. && make && make install
%.o: %.cpp
${COMPILECPP} -c $< -o $@
# Removes all compiled code
clean:
- rm ${OBJECTS}