windows-nt/Source/XPSP1/NT/ds/security/authz/test/adl/makefile.inc
2020-09-26 16:20:57 +08:00

39 lines
734 B
PHP

YACC=byacc
GRAMMAR=adl.y
YACCPARAMS=-d -l
SED=sed
SEDCMD=adlyacc.sed
OUTPUTC=adlparser.cpp
OUTPUTH=tokens.h
CC=cl
LINK=link
INCLUDE=d:\nt\public\sdk\inc
CCOPTS=-I$(INCLUDE)
parseronly: parser
test: parser lexer test testlexer.o
$(LINK) testlexer.o adllexer.o /link
parser: adl.y adlyacc.sed
$(YACC) $(YACCPARAMS) $(GRAMMAR)
$(SED) -f $(SEDCMD) y_tab.c > $(OUTPUTC)
rm -f y_tab.c $(OUTPUTH)
ren y_tab.h $(OUTPUTH)
lexer: parser adllexer.o
adllexer.o: adllexer.cpp adllexer.h
$(CC) adllexer.cpp $(CCOPTS)
testlexer.o: testlexer.cpp
$(CC) testlexer.cpp $(CCOPTS)