1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-29 21:47:30 +03:00
Ralph Boehme 4b0ee5d209 s3-mdssvc: lexer and parser for Spotlight queries
Add a lexer and parser for translating Spotlight query strings to
SPARQL.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
2015-07-07 17:34:28 +02:00

17 lines
264 B
Makefile

BISON=bison
FLEX=flex
SED=sed
PARSER=sparql_parser
LEXER=sparql_lexer
all: $(PARSER).c $(LEXER).c
$(PARSER).c: $(PARSER).y
$(BISON) -d -o $@ $<
$(LEXER).c: $(LEXER).l
$(FLEX) -o $@ $<
$(SED) -i s/malloc/SMB_MALLOC/g $@
$(SED) -i s/realloc/SMB_REALLOC/g $@