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
38d5110
..
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,18
+29,28
@@
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
+all: mtp
random-graph
TAGS: *.cc *.h
etags --members -l c++ *.cc *.h
TAGS: *.cc *.h
etags --members -l c++ *.cc *.h
+random-graph: \
+ random-graph.o
+ $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
+
mtp: \
mtp: \
+ path.o mtp_graph.o \
+ tracker.o \
mtp.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
mtp.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)