Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
734 B

  1. YACC=byacc
  2. GRAMMAR=adl.y
  3. YACCPARAMS=-d -l
  4. SED=sed
  5. SEDCMD=adlyacc.sed
  6. OUTPUTC=adlparser.cpp
  7. OUTPUTH=tokens.h
  8. CC=cl
  9. LINK=link
  10. INCLUDE=d:\nt\public\sdk\inc
  11. CCOPTS=-I$(INCLUDE)
  12. parseronly: parser
  13. test: parser lexer test testlexer.o
  14. $(LINK) testlexer.o adllexer.o /link
  15. parser: adl.y adlyacc.sed
  16. $(YACC) $(YACCPARAMS) $(GRAMMAR)
  17. $(SED) -f $(SEDCMD) y_tab.c > $(OUTPUTC)
  18. rm -f y_tab.c $(OUTPUTH)
  19. ren y_tab.h $(OUTPUTH)
  20. lexer: parser adllexer.o
  21. adllexer.o: adllexer.cpp adllexer.h
  22. $(CC) adllexer.cpp $(CCOPTS)
  23. testlexer.o: testlexer.cpp
  24. $(CC) testlexer.cpp $(CCOPTS)