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

« back to all changes in this revision

Viewing changes to examples/csharp/exprAST/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/exprAST
 
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) $(test2_exe)
 
27
test :: test1 test2
 
28
 
 
29
 
 
30
## My *.g files 
 
31
g_FILES  = \
 
32
 $(_srcdir)/expr.g \
 
33
 $(eol)
 
34
 
 
35
## Java files generated by *.g
 
36
g_src_FILES = \
 
37
        $(thisdir)/ExprLexer.cs \
 
38
  $(thisdir)/ExprParser.cs \
 
39
  $(thisdir)/ExprParserTokenTypes.cs \
 
40
  $(eol)
 
41
 
 
42
## Text files generated by *.g
 
43
g_txt_FILES = \
 
44
        ExprParserTokenTypes.txt \
 
45
        $(eol)
 
46
 
 
47
## All generated files by *.g
 
48
g_gen_FILES = \
 
49
        $(g_src_FILES) \
 
50
        $(g_txt_FILES) \
 
51
        $(eol)
 
52
 
 
53
## Dependencies of g_src_FILES
 
54
g_src_DEPS = \
 
55
        $(g_FILES) \
 
56
        @ANTLR_JAR@ \
 
57
        $(buildtree)/scripts/antlr.sh \
 
58
        $(eol)
 
59
 
 
60
# All source files for test1
 
61
test1_exe_FILES = \
 
62
        $(g_src_FILES) \
 
63
        $(_srcdir)/Main.cs \
 
64
        $(eol)
 
65
 
 
66
test1_exe = \
 
67
        test1.exe \
 
68
        $(eol)
 
69
 
 
70
test1_exe_DEPS = \
 
71
        $(test1_exe_FILES) \
 
72
        @ANTLR_NET@ \
 
73
        $(buildtree)/scripts/csc.sh \
 
74
        $(eol)
 
75
 
 
76
## Dependencies of test 1
 
77
test1_DEPS = \
 
78
        @antlr_net@ \
 
79
        test1.exe \
 
80
        $(eol)
 
81
 
 
82
## Test 1
 
83
test1_CMD = \
 
84
        @ $(CLR) ./test1.exe < $(_srcdir)/test.in \
 
85
        $(eol)
 
86
 
 
87
 
 
88
# All source files for test1
 
89
test2_exe_FILES = \
 
90
        $(g_src_FILES) \
 
91
        $(_srcdir)/Main.cs \
 
92
        $(eol)
 
93
 
 
94
test2_exe = \
 
95
        test2.exe \
 
96
        $(eol)
 
97
 
 
98
test2_exe_DEPS = \
 
99
        $(test2_exe_FILES) \
 
100
        @ANTLR_NET@ \
 
101
        $(buildtree)/scripts/csc.sh \
 
102
        $(eol)
 
103
 
 
104
## Dependencies of test 2
 
105
test2_DEPS = \
 
106
        @antlr_net@ \
 
107
        test2.exe \
 
108
        $(eol)
 
109
 
 
110
## Test 2
 
111
test2_CMD = \
 
112
        @ $(CLR) ./test2.exe < $(_srcdir)/test2.in \
 
113
        $(eol)
 
114
 
 
115
 
 
116
## we need a local copy of ANTLR_NET in this directory to be
 
117
## able to execute tests!
 
118
@antlr_net@ : @ANTLR_NET@
 
119
        cp $< $@
 
120
 
 
121
## *.g -> *.cs
 
122
$(g_src_FILES) : $(g_src_DEPS)
 
123
        @ rm -f $(g_src_FILES)
 
124
        @ @ANTLR_COMPILE_CMD@ $(g_FILES)
 
125
        @ $(dos2unix) $(g_src_FILES)
 
126
 
 
127
## How to create test1
 
128
$(test1_exe) : $(test1_exe_DEPS)
 
129
        @ -rm -f $@
 
130
        @@CSHARP_COMPILE_CMD@  $@ $(test1_exe_FILES)
 
131
 
 
132
## How to create test2
 
133
$(test2_exe) : $(test2_exe_DEPS)
 
134
        @ -rm -f $@
 
135
        @@CSHARP_COMPILE_CMD@  $@ $(test2_exe_FILES)
 
136
 
 
137
## Tests
 
138
test1 : $(test1_DEPS)
 
139
        @ echo "executing test #1 .."
 
140
        @ $(test1_CMD)
 
141
 
 
142
test2 : $(test2_DEPS)
 
143
        @ echo "executing test #2 .."
 
144
        @ $(test2_CMD)
 
145
 
 
146
### cleanup astsupport
 
147
clean ::
 
148
        @echo cleaning $(subdir) ...
 
149
        @ -rm -f .compile.st *.class $(g_gen_FILES) @antlr_net@
 
150
        @ -rm -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
 
151
 
 
152
 
 
153
 
 
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] 
 
158
@stddeps@
 
159
 
 
160
.PHONY: compile
 
161
.PHONY: test1
 
162
.PHONY: test2
 
 
b'\\ No newline at end of file'