projects
/
mtp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
The Makefile now accepts VERBOSE=yes.
[mtp.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index
5f2807e
..
4b71e4b
100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-18,9
+18,9
@@
#########################################################################
ifeq ($(STATIC),yes)
#########################################################################
ifeq ($(STATIC),yes)
- LDFLAGS=-static -lm
-ljpeg -lpng -lz -lcairo
+ LDFLAGS=-static -lm
else
else
- LDFLAGS=-lm
-ljpeg -lpng -lcairo
+ LDFLAGS=-lm
endif
ifeq ($(DEBUG),yes)
endif
ifeq ($(DEBUG),yes)
@@
-29,11
+29,15
@@
else
OPTIMIZE_FLAG = -ggdb3 -O3
endif
OPTIMIZE_FLAG = -ggdb3 -O3
endif
+ifeq ($(VERBOSE),yes)
+ VERBOSE_FLAG = -DVERBOSE
+endif
+
ifeq ($(PROFILE),yes)
PROFILE_FLAG = -pg
endif
ifeq ($(PROFILE),yes)
PROFILE_FLAG = -pg
endif
-CXXFLAGS = -Wall
-I/usr/include/cairo $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(CXXGLPK
)
+CXXFLAGS = -Wall
$(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(VERBOSE_FLAG
)
all: mtp random-graph
all: mtp random-graph
@@
-45,6
+49,8
@@
random-graph: \
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
mtp: \
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
mtp: \
+ path.o mtp_graph.o \
+ tracker.o \
mtp.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
mtp.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)