-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (22 loc) · 910 Bytes
/
Makefile
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
ogdf_path = ~/.libs/ogdf
CXX=g++
CXXFLAGS=-std=c++11 -pedantic -Wall -Wextra -O3 $(EXTRA_CXXFLAGS)
LINKS=-I $(ogdf_path)/include -L $(ogdf_path) -lOGDF -lpthread
FAKEVAR:=$(shell mkdir -p bin)
.PHONY: all
all: mincuts cutdiff cutcheck tester
mincuts-rtm: CXXFLAGS += -DMEASURE_RUNTIME
mincuts-rtm: LINKS += -lboost_chrono -lboost_system
mincuts-rtm: mincuts
mincuts-pathslengths: CXXFLAGS += -DMEASURE_PATHS_LENGTHS
mincuts-pathslengths: mincuts
mincuts: src/helpers.cpp src/circuitcocircuit.cpp src/mincuts.cpp
$(CXX) -o bin/$@ $(CXXFLAGS) $^ $(LINKS)
cutdiff: src/cutdiff.cpp
$(CXX) -o bin/$@ $(CXXFLAGS) $^
cutcheck: src/helpers.cpp src/cutcheck.cpp
$(CXX) -o bin/$@ $(CXXFLAGS) $^ $(LINKS)
tester: src/circuitcocircuit.cpp src/helpers.cpp src/tester.cpp
$(CXX) -o bin/$@ $(CXXFLAGS) $^ $(LINKS)
cutuniq: src/cutuniq.cpp
$(CXX) -o bin/$@ $(CXXFLAGS) $^ -lboost_filesystem -lboost_system