Makefile
上传用户:afrynkmhm
上传日期:2007-01-06
资源大小:1262k
文件大小:1k
源码类别:

编译器/解释器

开发平台:

Others

  1. #
  2. # Makefile for TinyBasic
  3. # TJP: modified to be a bit more generic
  4. #
  5. ANTLR_JAVA_SPAWN_1 = TinyBasicLexer.java
  6. TinyBasicParser.java
  7. ANTLR_JAVA_SPAWN_2 = TinyBasicTreeWalker.java 
  8. default: $(ANTLR_JAVA_SPAWN_1) $(ANTLR_JAVA_SPAWN_2)
  9. $(ANTLR_JAVA_SPAWN_1): TinyBasic.g
  10. java antlr.Tool TinyBasic.g
  11. # java antlr.Tool TinyBasicTreeWalker.g
  12. $(ANTLR_JAVA_SPAWN_2): TinyBasicTreeWalker.g
  13. java antlr.Tool TinyBasicTreeWalker.g
  14. clean:
  15. -rm -f TinyBasicTokenTypes.txt TinyBasicTokenTypes.java
  16. -rm -f TinyBasicLexerTokenTypes.txt TinyBasicLexerTokenTypes.java
  17. -rm -f TinyBasicTreeWalkerTokenTypes.txt TinyBasicTreeWalkerTokenTypes.java
  18. -rm -f TinyBasicLexer.java TinyBasicParser.java TinyBasicTreeWalker.java
  19. -rm -f TinyBasicTokenTypes.java TinyBasicTreeWalkerTokenTypes.java
  20. TinyBasicParser.java: TinyBasicLexer.java
  21. .KEEP_STATE:
  22. ##.SUFFIXES: .java .g
  23. ##.g.java:
  24. ## java antlr.Tool $<