~ubuntu-branches/ubuntu/breezy/antlr/breezy

« back to all changes in this revision

Viewing changes to examples/csharp/calc/Makefile.in

  • Committer: Bazaar Package Importer
  • Author(s): Matthias Klose
  • Date: 2005-06-29 16:11:22 UTC
  • mfrom: (0.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050629161122-g81crc3z92p5xhsg
Tags: 2.7.5-6ubuntu4
Build depend on java-gcj-compat-dev, depend on java-gcj-compat.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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.
 
4
 
 
5
## do not change this value 
 
6
subdir=examples/csharp/calc
 
7
 
 
8
## get  configured  (standard) variables - checkout or modify
 
9
## scripts/config.vars[.in] for details.
 
10
@stdvars@
 
11
 
 
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' 
 
15
dos2unix = :
 
16
 
 
17
## get configured rules
 
18
@stdmake@
 
19
 
 
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 
 
23
## antlr.jar before. 
 
24
this : compile
 
25
all  :: compile
 
26
compile : $(test1_exe)
 
27
test :: test1
 
28
 
 
29
 
 
30
## My *.g files 
 
31
g_FILES  = \
 
32
 $(_srcdir)/calc.g \
 
33
 $(eol)
 
34
 
 
35
## Java files generated by *.g
 
36
g_src_FILES = \
 
37
        $(thisdir)/CalcLexer.cs \
 
38
  $(thisdir)/CalcParser.cs \
 
39
  $(thisdir)/CalcTreeWalker.cs \
 
40
  $(thisdir)/CalcParserTokenTypes.cs \
 
41
  $(eol)
 
42
 
 
43
## Text files generated by *.g
 
44
g_txt_FILES = \
 
45
  $(thisdir)/CalcParserTokenTypes.txt \
 
46
        $(eol)
 
47
 
 
48
## All generated files by *.g
 
49
g_gen_FILES = \
 
50
        $(g_src_FILES) \
 
51
        $(g_txt_FILES) \
 
52
        $(eol)
 
53
 
 
54
## Dependencies of g_src_FILES
 
55
g_src_DEPS = \
 
56
        $(g_FILES) \
 
57
        @ANTLR_JAR@ \
 
58
        $(buildtree)/scripts/antlr.sh \
 
59
        $(eol)
 
60
 
 
61
# All source files for test1
 
62
test1_exe_FILES = \
 
63
        $(g_src_FILES) \
 
64
  $(_srcdir)/Calc.cs \
 
65
        $(eol)
 
66
 
 
67
test1_exe = \
 
68
        test1.exe \
 
69
        $(eol)
 
70
 
 
71
test1_exe_DEPS = \
 
72
        $(test1_exe_FILES) \
 
73
        @ANTLR_NET@ \
 
74
        $(buildtree)/scripts/csc.sh \
 
75
        $(eol)
 
76
 
 
77
## Dependencies of test 1
 
78
test1_DEPS = \
 
79
        @antlr_net@ \
 
80
        test1.exe \
 
81
        $(eol)
 
82
 
 
83
## Test 1
 
84
test1_CMD = \
 
85
        @ $(CLR) ./test1.exe < $(_srcdir)/test.in \
 
86
        $(eol)
 
87
 
 
88
 
 
89
## we need a local copy of ANTLR_NET in this directory to be
 
90
## able to execute tests!
 
91
@antlr_net@ : @ANTLR_NET@
 
92
        cp $< $@
 
93
 
 
94
## *.g -> *.cs
 
95
$(g_src_FILES) : $(g_src_DEPS)
 
96
        @ rm -f $(g_src_FILES)
 
97
        @ @ANTLR_COMPILE_CMD@ $(g_FILES)
 
98
        @ $(dos2unix) $(g_src_FILES)
 
99
 
 
100
## How to create test1
 
101
$(test1_exe) : $(test1_exe_DEPS)
 
102
        @ -rm -f $@
 
103
        @@CSHARP_COMPILE_CMD@  $@ $(test1_exe_FILES)
 
104
 
 
105
## Tests
 
106
test1 : $(test1_DEPS)
 
107
        @ $(test1_CMD)
 
108
 
 
109
### cleanup astsupport
 
110
clean ::
 
111
        @echo cleaning $(subdir) ...
 
112
        @ -rm -f .compile.st *.class $(g_gen_FILES) @antlr_net@
 
113
        @ -rm -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
 
114
 
 
115
 
 
116
 
 
117
### get configured dependencies - for example, just list
 
118
### autoconf variable ANTLR_JAR as reference and it will
 
119
### be  done  automatically  as stddeps contains appropr.
 
120
### rule. For details, checkout scripts/config.vars[.in] 
 
121
@stddeps@
 
122
 
 
123
.PHONY: compile
 
124
.PHONY: test1
 
125
.PHONY: test2
 
 
b'\\ No newline at end of file'