1
## This file is part of ANTLR (http://www.antlr.org). Have a
2
## look into LICENSE.txt for license details. This file has
3
## been written by (C) Wolfgang Haefelinger, 2004.
5
## do not change this value
6
subdir=examples/csharp/exprAST
8
## get configured (standard) variables - checkout or modify
9
## scripts/config.vars[.in] for details.
12
### how to get rid of damned dos line ending style and -- al-
13
### most equally worse -- stupid tab character.
14
### dos2unix = perl -p -i.tmp -e 's,\r,,g;s,\t, ,g'
17
## get configured rules
20
## By default we compile class files so we are ready to carry
21
## out a test. Note that deps have been setup in such a way
22
## that you can do a 'make compile' whithout having made
26
compile : $(test1_exe) $(test2_exe)
35
## Java files generated by *.g
37
$(thisdir)/ExprLexer.cs \
38
$(thisdir)/ExprParser.cs \
39
$(thisdir)/ExprParserTokenTypes.cs \
42
## Text files generated by *.g
44
ExprParserTokenTypes.txt \
47
## All generated files by *.g
53
## Dependencies of g_src_FILES
57
$(buildtree)/scripts/antlr.sh \
60
# All source files for test1
73
$(buildtree)/scripts/csc.sh \
76
## Dependencies of test 1
84
@ $(CLR) ./test1.exe < $(_srcdir)/test.in \
88
# All source files for test1
101
$(buildtree)/scripts/csc.sh \
104
## Dependencies of test 2
112
@ $(CLR) ./test2.exe < $(_srcdir)/test2.in \
116
## we need a local copy of ANTLR_NET in this directory to be
117
## able to execute tests!
118
@antlr_net@ : @ANTLR_NET@
122
$(g_src_FILES) : $(g_src_DEPS)
123
@ rm -f $(g_src_FILES)
124
@ @ANTLR_COMPILE_CMD@ $(g_FILES)
125
@ $(dos2unix) $(g_src_FILES)
127
## How to create test1
128
$(test1_exe) : $(test1_exe_DEPS)
130
@@CSHARP_COMPILE_CMD@ $@ $(test1_exe_FILES)
132
## How to create test2
133
$(test2_exe) : $(test2_exe_DEPS)
135
@@CSHARP_COMPILE_CMD@ $@ $(test2_exe_FILES)
138
test1 : $(test1_DEPS)
139
@ echo "executing test #1 .."
142
test2 : $(test2_DEPS)
143
@ echo "executing test #2 .."
146
### cleanup astsupport
148
@echo cleaning $(subdir) ...
149
@ -rm -f .compile.st *.class $(g_gen_FILES) @antlr_net@
150
@ -rm -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
154
### get configured dependencies - for example, just list
155
### autoconf variable ANTLR_JAR as reference and it will
156
### be done automatically as stddeps contains appropr.
157
### rule. For details, checkout scripts/config.vars[.in]
b'\\ No newline at end of file'