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
be7e0a9
..
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,25
+29,35
@@
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: m
iniksp
+all: m
tp random-graph
TAGS: *.cc *.h
etags --members -l c++ *.cc *.h
TAGS: *.cc *.h
etags --members -l c++ *.cc *.h
-miniksp: \
- miniksp.o
+random-graph: \
+ random-graph.o
+ $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
+
+mtp: \
+ path.o mtp_graph.o \
+ tracker.o \
+ mtp.o
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
Makefile.depend: *.h *.cc Makefile
$(CC) $(CXXFLAGS) -M *.cc > Makefile.depend
clean:
$(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
Makefile.depend: *.h *.cc Makefile
$(CC) $(CXXFLAGS) -M *.cc > Makefile.depend
clean:
- \rm -f m
iniks
p *.o Makefile.depend TAGS
+ \rm -f m
t
p *.o Makefile.depend TAGS
-include Makefile.depend
-include Makefile.depend