/
Makefile
34 lines (25 loc) · 863 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Makefile entry.
#
# Copyright (c) 1999 Ryan C. Gordon and Gregory S. Read.
# Useful directories
export ANTLR_BASE = $(HOME)/antlr-2.6.1
export ANTLR_CPP = $(ANTLR_BASE)/cpp
export OBJS = BasicLexer.o BasicParser.o main.o PostParser.o
export BUILD_FOLDER = `pwd`
export ANTLR_OBJS = $(ANTLR_CPP)/*.o
export ANTLR = java -green -Djava.compiler=NONE antlr.Tool
# Directories to search for header files
export SEARCHDIRS = -I- -I. -I$(ANTLR_CPP)
default:
@echo "Please specify 'make linuxdebug' or 'make win32debug'."
linuxdebug: Makefile.linux
@$(MAKE) -f Makefile.linux debug
win32debug: Makefile.win32
@$(MAKE) -f Makefile.win32 debug
clean:
rm -f *.o
rm -f BasicParser.cpp BasicParser.hpp
rm -f BasicLexer.cpp BasicLexer.hpp
rm -f BasicParserTokenTypes.hpp BasicParserTokenTypes.txt
rm -f BasicTokenTypes.hpp BasicTokenTypes.txt
rm -f parser