- Visual C++源码
- Visual Basic源码
- C++ Builder源码
- Java源码
- Delphi源码
- C/C++源码
- PHP源码
- Perl源码
- Python源码
- Asm源码
- Pascal源码
- Borland C++源码
- Others源码
- SQL源码
- VBScript源码
- JavaScript源码
- ASP/ASPX源码
- C#源码
- Flash/ActionScript源码
- matlab源码
- PowerBuilder源码
- LabView源码
- Flex源码
- MathCAD源码
- VBA源码
- IDL源码
- Lisp/Scheme源码
- VHDL源码
- Objective-C源码
- Fortran源码
- tcl/tk源码
- QT源码
makefile
资源名称:pccts133.zip [点击查看]
上传用户:itx_2006
上传日期:2007-01-06
资源大小:493k
文件大小:2k
源码类别:
编译器/解释器
开发平台:
Others
- #
- # PCCTS makefile for: test.g
- #
- # Created from: ../../bin/genmk -CC -project t -class Expr test.g -token-types mytokens.h
- #
- # PCCTS release 1.32
- # Project: t
- # C++ output
- # DLG scanner
- # User-defined token types in 'mytokens.h'
- #
- # Make sure #tokdefs directive in ANTLR grammar lists this file:
- TOKENS = mytokens.h
- #
- # The following filenames must be consistent with ANTLR/DLG flags
- DLG_FILE = parser.dlg
- ERR = err
- HDR_FILE =
- SCAN = DLGLexer
- PCCTS = ../..
- ANTLR_H = $(PCCTS)/h
- BIN = $(PCCTS)/bin
- ANTLR = $(BIN)/antlr
- DLG = $(BIN)/dlg
- CFLAGS = -I. -I$(ANTLR_H)
- AFLAGS = -CC
- DFLAGS = -C2 -i -CC
- GRM = test.g
- SRC = test.cpp
- Expr.cpp
- $(ANTLR_H)/AParser.cpp $(ANTLR_H)/DLexerBase.cpp $(ANTLR_H)/ATokenBuffer.cpp $(SCAN).cpp
- OBJ = test.o
- Expr.o
- AParser.o DLexerBase.o ATokenBuffer.o $(SCAN).o
- ANTLR_SPAWN = test.cpp Expr.cpp
- Expr.h $(DLG_FILE)
- DLG_SPAWN = $(SCAN).cpp $(SCAN).h
- #CCC=g++
- CCC=CC
- t : $(OBJ) $(SRC)
- $(CCC) -o t $(CFLAGS) $(OBJ)
- test.o : $(TOKENS) $(SCAN).h test.cpp
- $(CCC) -c $(CFLAGS) -o test.o test.cpp
- Expr.o : $(TOKENS) $(SCAN).h Expr.cpp Expr.h
- $(CCC) -c $(CFLAGS) -o Expr.o Expr.cpp
- $(SCAN).o : $(SCAN).cpp $(TOKENS)
- $(CCC) -c $(CFLAGS) -o $(SCAN).o $(SCAN).cpp
- $(ANTLR_SPAWN) : $(GRM)
- $(ANTLR) $(AFLAGS) $(GRM)
- $(DLG_SPAWN) : $(DLG_FILE)
- $(DLG) $(DFLAGS) $(DLG_FILE)
- AParser.o : $(ANTLR_H)/AParser.cpp
- $(CCC) -c $(CFLAGS) -o AParser.o $(ANTLR_H)/AParser.cpp
- ATokenBuffer.o : $(ANTLR_H)/ATokenBuffer.cpp
- $(CCC) -c $(CFLAGS) -o ATokenBuffer.o $(ANTLR_H)/ATokenBuffer.cpp
- DLexerBase.o : $(ANTLR_H)/DLexerBase.cpp
- $(CCC) -c $(CFLAGS) -o DLexerBase.o $(ANTLR_H)/DLexerBase.cpp
- clean:
- rm -f *.o core t
- scrub:
- rm -f *.o core t $(ANTLR_SPAWN) $(DLG_SPAWN)