forked from iszczesniak/abcd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (32 loc) · 863 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
34
35
36
37
38
39
40
41
42
43
44
45
46
TARGETS = abcd info
TARGET_OBJS = $(addsuffix .o, $(TARGETS))
OBJS = cli_args.o client.o cdijkstra.o connection.o edksp.o routing.o \
stats.o utils.o utils_netgen.o mypoint.o teventqueue.o traffic.o \
yenksp.o
CXXFLAGS := $(CXXFLAGS) -g
CXXFLAGS := $(CXXFLAGS) -std=c++11
CXXFLAGS := $(CXXFLAGS) -I include
# Use the C++ linker
LINK.o = $(LINK.cc)
ifdef BOOST_ROOT
CXXFLAGS := $(CXXFLAGS) -I $(BOOST_ROOT)/include
LDFLAGS := $(LDFLAGS) -L $(BOOST_ROOT)/lib
endif
LDFLAGS := $(LDFLAGS) -l boost_program_options
LDFLAGS := $(LDFLAGS) -l boost_timer
LDFLAGS := $(LDFLAGS) -l boost_system
all: $(TARGETS)
abcd: $(OBJS)
info: $(OBJS)
try: graph.o try.o
.PHONY: clean count depend test
clean:
rm -f *~
rm -f $(OBJS)
rm -f $(TARGET_OBJS)
rm -f $(TARGETS)
count:
wc -l *.hpp *.cc
depend:
g++ $(CXXFLAGS) -MM *.cc > dependencies
include dependencies