mirror of
https://github.com/samba-team/samba.git
synced 2025-01-29 21:47:30 +03:00
4b0ee5d209
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>
17 lines
264 B
Makefile
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 $@
|