The main command now loads a tracker file, and mtp_example produces it.
[mtp.git] / Makefile
index 4b71e4b..523a3e4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -39,7 +39,7 @@ endif
 
 CXXFLAGS = -Wall $(OPTIMIZE_FLAG) $(PROFILE_FLAG) $(VERBOSE_FLAG)
 
-all: mtp random-graph
+all: mtp mtp_example
 
 TAGS: *.cc *.h
        etags --members -l c++ *.cc *.h
@@ -54,6 +54,12 @@ mtp: \
        mtp.o
        $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
 
+mtp_example: \
+       path.o mtp_graph.o \
+       tracker.o \
+       mtp_example.o
+       $(CXX) $(CXXFLAGS) -o $@ $^ $(LDFLAGS)
+
 Makefile.depend: *.h *.cc Makefile
        $(CC) $(CXXFLAGS) -M *.cc > Makefile.depend