windows-nt/Source/XPSP1/NT/ds/security/authz/test/adl/makefile.inc

39 lines
734 B
PHP
Raw Permalink Normal View History

2020-09-26 03:20:57 -05:00
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)