# Makefile for the Sherlock Parsers (c) 2001 Martin Mares <mj@ucw.cz>

DIRS+=gather/format

LIBGATH_MODS+=$(addprefix format/,format parse text zlib unlzw robots sink validate external fb-textpacker alloc)
PROGS+=$(o)/gather/format/ps-parse

ifdef CONFIG_DEBUG_TOOLS
PROGS+=$(o)/gather/format/parser-test
endif

ifdef CONFIG_PDF
include $(s)/gather/format/pdf/Makefile
endif

include $(s)/gather/format/html/Makefile

$(o)/gather/format/fb-textpacker-t: $(LIBSH) $(LIBCHARSET)
$(o)/gather/format/parser-test: $(LIBGATH) $(LIBSH)
$(o)/gather/format/parser-test: LIBS+=$(LIBGATH_LIBS)
