]> rtime.felk.cvut.cz Git - eurobot/public.git/commitdiff
pathplan: map2png is compiled as static library, not as source file of the application pathplan
authorMatous Pokorny <matous.pokorny@me.com>
Mon, 2 Jul 2012 15:07:45 +0000 (17:07 +0200)
committerMatous Pokorny <matous.pokorny@me.com>
Mon, 2 Jul 2012 15:07:45 +0000 (17:07 +0200)
src/pathplan/Makefile.omk
src/pathplan/test/Makefile.omk

index 9040babdf38fa65a57ab7df237aa9b851ecc9afe..b82c8b56462a21467273857cac43b9ca45437135 100644 (file)
@@ -6,16 +6,16 @@ map_SOURCES = map.c
 include_HEADERS += map.h
 
 # Map to PNG file Library
-#lib_LIBRARIES += map_2_png
-#map_2_png_SOURCES = map_2_png.c
-#include_HEADERS += map_2_png.h
+lib_LIBRARIES += map_2_png
+map_2_png_SOURCES = map_2_png.c
+include_HEADERS += map_2_png.h
 
 INCLUDES += $(shell pkg-config --cflags libpng)
 
 # Path Plan library
 lib_LIBRARIES += pathplan
-pathplan_SOURCES = path_planner.c aalgorithm.c pathqueue.c path_simplifier.c map_2_png.c
-include_HEADERS += aalgorithm.h pathqueue.h path_simplifier.h path_planner.h map_2_png.h
+pathplan_SOURCES = path_planner.c aalgorithm.c pathqueue.c path_simplifier.c 
+include_HEADERS += aalgorithm.h pathqueue.h path_simplifier.h path_planner.h 
 
 SUBDIRS = test 
 
index b4690e5a4c9a9f2b50e0ad088bebb396edf687a9..f92a61073f7b568ba37353fb7f8de1bfa514aefa 100644 (file)
@@ -6,13 +6,20 @@ testmap_LIBS = map m
 
 test_PROGRAMS += testpathplan
 testpathplan_SOURCES = testpathplan.c
-testpathplan_LIBS = pathplan rt map m rbtree shist
+testpathplan_LIBS = pathplan rt map m rbtree shist map_2_png
 
 test_PROGRAMS += testastar
 testastar_SOURCES = testastar.c
-testastar_LIBS = pathplan map m 
+testastar_LIBS = pathplan map m map_2_png
+
+test_PROGRAMS += testmap_2_png
+testmap_2_png_SOURCES = testmap_2_png.c
+testmap_2_png_LIBS = pathplan map m map_2_png
+
+test_PROGRAMS += testmasks
+testmasks_SOURCES = testmasks.c
+testmasks_LIBS = pathplan map m map_2_png
+
+lib_LOADLIBES += png
 
-test_PROGRAMS += testbitmaps
-testbitmaps_SOURCES = testbitmaps.c
-testbitmaps_LIBS = pathplan map m