CC        = cl
LIB       = lib
LD        = $(CC)
DEBUG     = -Zi
EXCEPT    = -EHsc
CFLAGS    = $(EXCEPT) -DWIN32 -Tp
OBJ       = obj
EXE       = .exe
INCLUDE   = -I "e:\antlr\cpp" -I "d:\Program Files\Microsoft Visual Studio\Vc98\include"

FLAGS = $(INCLUDE) $(DEBUG) $(CFLAGS) 

LIB_OBJ = ANTLRException.$(OBJ) \
          AST.$(OBJ) \
          ASTFactory.$(OBJ) \
          BitSet.$(OBJ) \
          CharBuffer.$(OBJ) \
          CharScanner.$(OBJ) \
          CommonASTNode.$(OBJ) \
          CommonASTNodeWithHiddenTokens.$(OBJ) \
          CommonHiddenStreamToken.$(OBJ) \
          CommonToken.$(OBJ) \
          InputBuffer.$(OBJ) \
          LLkParser.$(OBJ) \
          LexerSharedInputState.$(OBJ) \
          MismatchedTokenException.$(OBJ) \
          NoViableAltException.$(OBJ) \
          Parser.$(OBJ) \
          ParserException.$(OBJ) \
          ParserSharedInputState.$(OBJ) \
          ScannerException.$(OBJ) \
          String.$(OBJ) \
          Token.$(OBJ) \
          TokenBuffer.$(OBJ) \
          TokenStreamBasicFilter.$(OBJ) \
          TokenStreamHiddenTokenFilter.$(OBJ) \
          TokenStreamSelector.$(OBJ) \
          TreeParser.$(OBJ)

all: antlr.lib

clean:
	rm -f $(LIB_OBJ) antlr.lib

antlr.lib: $(LIB_OBJ)
	$(LIB) /out:antlr.lib $(LIB_OBJ)

ANTLRException.$(OBJ): ANTLRException.cpp antlr\ANTLRException.hpp
	$(CC) -c $(FLAGS) ANTLRException.cpp

AST.$(OBJ): AST.cpp antlr\AST.hpp
	$(CC) -c $(FLAGS) AST.cpp

ASTFactory.$(OBJ): ASTFactory.cpp antlr\ASTFactory.hpp
	$(CC) -c $(FLAGS) ASTFactory.cpp

BitSet.$(OBJ): BitSet.cpp antlr\BitSet.hpp
	$(CC) -c $(FLAGS) BitSet.cpp

CharBuffer.$(OBJ): CharBuffer.cpp antlr\CharBuffer.hpp
	$(CC) -c $(FLAGS) CharBuffer.cpp

CharScanner.$(OBJ): CharScanner.cpp antlr\CharScanner.hpp
	$(CC) -c $(FLAGS) CharScanner.cpp

CommonASTNode.$(OBJ): CommonASTNode.cpp antlr\CommonASTNode.hpp
	$(CC) -c $(FLAGS) CommonASTNode.cpp

CommonASTNodeWithHiddenTokens.$(OBJ): CommonASTNodeWithHiddenTokens.cpp antlr\CommonASTNodeWithHiddenTokens.hpp
	$(CC) -c $(FLAGS) CommonASTNodeWithHiddenTokens.cpp

CommonHiddenStreamToken.$(OBJ): CommonHiddenStreamToken.cpp antlr\CommonHiddenStreamToken.hpp
	$(CC) -c $(FLAGS) CommonHiddenStreamToken.cpp

CommonToken.$(OBJ): CommonToken.cpp antlr\CommonToken.hpp
	$(CC) -c $(FLAGS) CommonToken.cpp

InputBuffer.$(OBJ): InputBuffer.cpp antlr\InputBuffer.hpp
	$(CC) -c $(FLAGS) InputBuffer.cpp

LLkParser.$(OBJ): LLkParser.cpp antlr\LLkParser.hpp
	$(CC) -c $(FLAGS) LLkParser.cpp

LexerSharedInputState.$(OBJ): LexerSharedInputState.cpp antlr\LexerSharedInputState.hpp
	$(CC) -c $(FLAGS) LexerSharedInputState.cpp

MismatchedTokenException.$(OBJ): MismatchedTokenException.cpp antlr\MismatchedTokenException.hpp
	$(CC) -c $(FLAGS) MismatchedTokenException.cpp

NoViableAltException.$(OBJ): NoViableAltException.cpp antlr\NoViableAltException.hpp
	$(CC) -c $(FLAGS) NoViableAltException.cpp

Parser.$(OBJ): Parser.cpp antlr\Parser.hpp
	$(CC) -c $(FLAGS) Parser.cpp

ParserException.$(OBJ): ParserException.cpp antlr\ParserException.hpp
	$(CC) -c $(FLAGS) ParserException.cpp

ParserSharedInputState.$(OBJ): ParserSharedInputState.cpp antlr\ParserSharedInputState.hpp
	$(CC) -c $(FLAGS) ParserSharedInputState.cpp

ScannerException.$(OBJ): ScannerException.cpp antlr\ScannerException.hpp
	$(CC) -c $(FLAGS) ScannerException.cpp

String.$(OBJ): String.cpp antlr\String.hpp
	$(CC) -c $(FLAGS) String.cpp

Token.$(OBJ): Token.cpp antlr\Token.hpp
	$(CC) -c $(FLAGS) Token.cpp

TokenBuffer.$(OBJ): TokenBuffer.cpp antlr\TokenBuffer.hpp
	$(CC) -c $(FLAGS) TokenBuffer.cpp

TokenStreamBasicFilter.$(OBJ): TokenStreamBasicFilter.cpp antlr\TokenStreamBasicFilter.hpp
	$(CC) -c $(FLAGS) TokenStreamBasicFilter.cpp

TokenStreamHiddenTokenFilter.$(OBJ): TokenStreamHiddenTokenFilter.cpp antlr\TokenStreamHiddenTokenFilter.hpp
	$(CC) -c $(FLAGS) TokenStreamHiddenTokenFilter.cpp

TokenStreamSelector.$(OBJ): TokenStreamSelector.cpp antlr\TokenStreamSelector.hpp
	$(CC) -c $(FLAGS) TokenStreamSelector.cpp

TreeParser.$(OBJ): TreeParser.cpp antlr\TreeParser.hpp
	$(CC) -c $(FLAGS) TreeParser.cpp


back to ANTLR build page