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
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