1 | ##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
---|
2 | |
---|
3 | ## --*- Makefile -*-- |
---|
4 | SUBDIRS := |
---|
5 | |
---|
6 | ## helper utilities .. |
---|
7 | INSTALL = /usr/bin/install -c |
---|
8 | MKDIR = /bin/mkdir |
---|
9 | RM = /bin/rm -r -f |
---|
10 | RMF = /bin/rm -r -f |
---|
11 | TAR = /bin/tar |
---|
12 | TOUCH = /bin/touch |
---|
13 | CHMOD = /bin/chmod |
---|
14 | SED = /bin/sed |
---|
15 | GREP = /bin/grep |
---|
16 | CAT = /bin/cat |
---|
17 | CHMOD = /bin/chmod |
---|
18 | CP = /bin/cp |
---|
19 | ECHO = /bin/echo |
---|
20 | |
---|
21 | # usual dribble |
---|
22 | exec_prefix = ${prefix} |
---|
23 | prefix = /usr/local |
---|
24 | program_transform_name = s,x,x, |
---|
25 | bindir = ${exec_prefix}/bin |
---|
26 | sbindir = ${exec_prefix}/sbin |
---|
27 | libexecdir = ${exec_prefix}/libexec |
---|
28 | datadir = ${prefix}/share |
---|
29 | sysconfdir = ${prefix}/etc |
---|
30 | sharedstatedir = ${prefix}/com |
---|
31 | localstatedir = ${prefix}/var |
---|
32 | libdir = ${exec_prefix}/lib |
---|
33 | includedir = ${prefix}/include |
---|
34 | oldincludedir = /usr/include |
---|
35 | infodir = ${prefix}/info |
---|
36 | mandir = ${prefix}/man |
---|
37 | build_alias = |
---|
38 | host_alias = |
---|
39 | target_alias = |
---|
40 | build = x86_64-unknown-linux-gnu |
---|
41 | build_cpu = x86_64 |
---|
42 | build_vendor = unknown |
---|
43 | build_os = linux-gnu |
---|
44 | host = x86_64-unknown-linux-gnu |
---|
45 | host_cpu = x86_64 |
---|
46 | host_vendor = unknown |
---|
47 | host_os = linux-gnu |
---|
48 | just_make = /usr/bin/make |
---|
49 | |
---|
50 | # Version stuff... |
---|
51 | VERSION = 2 |
---|
52 | SUBVERSION = 7 |
---|
53 | PATCHLEVEL = 7 |
---|
54 | PACKAGE_NAME = antlr |
---|
55 | PACKAGE_VERSION = 2.7.7 |
---|
56 | versioneddir = antlr-2.7.7 |
---|
57 | |
---|
58 | # navigation |
---|
59 | builddir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7 |
---|
60 | buildtree = /usr/neuro/local/yao/yao9/share/antlr-2.7.7 |
---|
61 | sourcetree = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/.. |
---|
62 | |
---|
63 | ## Two abbrevs to shorten things. $(thisdir) shall be the current |
---|
64 | ## working directory as absolute name and $(_srcdir) is it's |
---|
65 | ## source dir companion. That means that $(thisdir)/Makefile has |
---|
66 | ## been generated by $(_srcdir)/Makefile.in. |
---|
67 | _srcdir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../$(subdir) |
---|
68 | thisdir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/$(subdir) |
---|
69 | |
---|
70 | # variable 'srcdir' is deprecated - use sourcetree |
---|
71 | srcdir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/.. |
---|
72 | # variable 'objdir' is deprecated - use buildtree |
---|
73 | objdir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7 |
---|
74 | |
---|
75 | # other |
---|
76 | verbose = 0 |
---|
77 | |
---|
78 | ## SUBDIRS you want to exclude (separate them by using "|"). |
---|
79 | SUBDIRS_NOT := . |
---|
80 | |
---|
81 | CLR = /usr/bin/mono |
---|
82 | |
---|
83 | ANTLR_JAR = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/antlr/antlr.jar |
---|
84 | ANTLR_LIB = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/cpp/src/libantlr.a |
---|
85 | ANTLR_NET = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.runtime.dll |
---|
86 | ANTLR_PY = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/python/antlr/python.py |
---|
87 | ASTFRAME_NET = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll |
---|
88 | |
---|
89 | antlr_jar = antlr.jar |
---|
90 | antlr_lib = libantlr.a |
---|
91 | antlr_net = antlr.runtime.dll |
---|
92 | antlr_py = python.py |
---|
93 | astframe_net = antlr.astframe.dll |
---|
94 | ##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx |
---|
95 | |
---|
96 | ## do not change this value |
---|
97 | subdir=lib/csharp/antlr.astframe |
---|
98 | |
---|
99 | all :: lib |
---|
100 | |
---|
101 | lib: antlr.astframe.dll |
---|
102 | |
---|
103 | ## Get all files in directory. |
---|
104 | antlr_cs_FILES = $(shell /bin/find $(_srcdir) -name \*.cs) |
---|
105 | |
---|
106 | |
---|
107 | ## Next rule is about to compile antlr.astframe.dll. The whole |
---|
108 | ## rule looks bit complicated. |
---|
109 | ## - First we remove the target. Later we check then wether the |
---|
110 | ## target has really been created. Due to experience we don't |
---|
111 | ## trust our tool's exit code. |
---|
112 | ## - Our target depends on antlr.runtime.dll and so we need to |
---|
113 | ## add (+) it via appropriate environment variable CSHARPCFLAGS. |
---|
114 | ## - Then we check whether target really has been made. |
---|
115 | ## - Finally we make sure to update ASTFRAME_NET. ASTFRAME_NET |
---|
116 | ## may point anywhere in the filesystem, especially also in this |
---|
117 | ## directory. We can't therefore remove ASTFRAME_NET as astframe_ |
---|
118 | ## net and ASTFRAME_NET can be identical. To avoid this we make |
---|
119 | ## a copy of astframe_net which dies not clash with ASTFRAME_NET |
---|
120 | ## by adding the process id to the filename. Finally we copy |
---|
121 | ## and remove temporaries. |
---|
122 | antlr.astframe.dll : $(antlr_cs_FILES) /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.runtime.dll |
---|
123 | @-/bin/rm -r -f $@ |
---|
124 | @ /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/csc.sh $@ $(antlr_cs_FILES) |
---|
125 | @test -f $@ || exit 1 |
---|
126 | @ /bin/cp $@ $@.$$$$ && /bin/rm -r -f /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll ; \ |
---|
127 | /bin/cp $@.$$$$ /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll ; \ |
---|
128 | /bin/cp /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll $@ ; \ |
---|
129 | /bin/rm -r -f $@.$$$$ |
---|
130 | |
---|
131 | clean :: |
---|
132 | /bin/rm -r -f *.obj *.o *.a *.lib *.so *.dll *~ antlr.astframe.dll /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll |
---|
133 | |
---|
134 | distclean :: clean |
---|
135 | /bin/rm -r -f Makefile |
---|
136 | |
---|
137 | ## install our target .. |
---|
138 | install :: /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll |
---|
139 | @$(MKDIR) -p "$(libdir)" |
---|
140 | @/bin/echo "install C# core files .. " |
---|
141 | @for f in /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll ; do \ |
---|
142 | /bin/echo "install $${f}" ; \ |
---|
143 | if test -f "$${f}" ; then \ |
---|
144 | $(INSTALL) -m 444 "$${f}" "$(libdir)" ; \ |
---|
145 | $(INSTALL) -m 444 "$${f}" "$(datadir)/$(versioneddir)" ; \ |
---|
146 | fi ;\ |
---|
147 | done |
---|
148 | |
---|
149 | ## dependencies |
---|
150 | antlr.astframe.dll : Makefile |
---|
151 | antlr.astframe.dll : /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/csc.sh |
---|
152 | |
---|
153 | ## other dependencies to be listed below |
---|
154 | |
---|
155 | ## --*- Makefile -*-- |
---|
156 | ## Make listed targets even in case a file with same name exists. |
---|
157 | .PHONY: \ |
---|
158 | this \ |
---|
159 | all clean install test distclean \ |
---|
160 | this-all this-clean this-install this-test this-distclean \ |
---|
161 | all-this clean-this install-this test-this distclean-this \ |
---|
162 | $(eof) |
---|
163 | |
---|
164 | ## delete suffix rules - shortens output when using -d and is not |
---|
165 | ## used anyway (and should not be used). |
---|
166 | .SUFFIXES: |
---|
167 | |
---|
168 | Makefile :: /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../$(subdir)/Makefile.in \ |
---|
169 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.deps \ |
---|
170 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.make \ |
---|
171 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.vars \ |
---|
172 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/config.status |
---|
173 | @echo "*** update $(subdir)/Makefile" |
---|
174 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES="$(subdir)/Makefile" /bin/sh ./config.status -q |
---|
175 | |
---|
176 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.deps : \ |
---|
177 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.deps.in |
---|
178 | @echo "*** update $@" |
---|
179 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.deps /bin/sh ./config.status -q |
---|
180 | |
---|
181 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.make : \ |
---|
182 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.make.in |
---|
183 | @echo "*** update $@" |
---|
184 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.make /bin/sh ./config.status -q |
---|
185 | |
---|
186 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.vars : \ |
---|
187 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.vars.in |
---|
188 | @echo "*** update $@" |
---|
189 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.vars /bin/sh ./config.status -q |
---|
190 | |
---|
191 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/config.status : \ |
---|
192 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../configure |
---|
193 | @echo "*** reconfigure $@ - stay tuned .." |
---|
194 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && /bin/sh ./config.status -q --recheck |
---|
195 | @echo "*** update all configured files .." |
---|
196 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && /bin/sh ./config.status -q |
---|
197 | |
---|
198 | ### In a pure devel mode there should be also a dependency listed on how |
---|
199 | ### to make configure out of configure.in. This requires that usr has |
---|
200 | ### m4 and autoconf (proper version) installed. Appropriate checks are |
---|
201 | ### not done in configure. If so, then uncomment next lines: |
---|
202 | ### |
---|
203 | ### @rule_configure_configure_in@ |
---|
204 | ### |
---|
205 | |
---|
206 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/antlr.sh : \ |
---|
207 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/antlr.sh.in |
---|
208 | @echo "*** update $@" |
---|
209 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/antlr.sh /bin/sh ./config.status -q |
---|
210 | |
---|
211 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cpp.sh : \ |
---|
212 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/cpp.sh.in |
---|
213 | @echo "*** update $@" |
---|
214 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/cpp.sh /bin/sh ./config.status -q |
---|
215 | |
---|
216 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/csc.sh : \ |
---|
217 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/csc.sh.in |
---|
218 | @echo "*** update $@" |
---|
219 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/csc.sh /bin/sh ./config.status -q |
---|
220 | |
---|
221 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cxx.sh : \ |
---|
222 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/cxx.sh.in |
---|
223 | @echo "*** update $@" |
---|
224 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/cxx.sh /bin/sh ./config.status -q |
---|
225 | |
---|
226 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/jar.sh : \ |
---|
227 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/jar.sh.in |
---|
228 | @echo "*** update $@" |
---|
229 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/jar.sh /bin/sh ./config.status -q |
---|
230 | |
---|
231 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/javac.sh : \ |
---|
232 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/javac.sh.in |
---|
233 | @echo "*** update $@" |
---|
234 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/javac.sh /bin/sh ./config.status -q |
---|
235 | |
---|
236 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/java.sh : \ |
---|
237 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/java.sh.in |
---|
238 | @echo "*** update $@" |
---|
239 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/java.sh /bin/sh ./config.status -q |
---|
240 | |
---|
241 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/lib.sh : \ |
---|
242 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/lib.sh.in |
---|
243 | @echo "*** update $@" |
---|
244 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/lib.sh /bin/sh ./config.status -q |
---|
245 | |
---|
246 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/link.sh : \ |
---|
247 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/link.sh.in |
---|
248 | @echo "*** update $@" |
---|
249 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/link.sh /bin/sh ./config.status -q |
---|
250 | |
---|
251 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/pyinst.sh : \ |
---|
252 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/pyinst.sh.in |
---|
253 | @echo "*** update $@" |
---|
254 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/pyinst.sh /bin/sh ./config.status -q |
---|
255 | |
---|
256 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/python.sh : \ |
---|
257 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/python.sh.in |
---|
258 | @echo "*** update $@" |
---|
259 | @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/python.sh /bin/sh ./config.status -q |
---|
260 | |
---|
261 | |
---|
262 | ## This rule shall ensure that ANTLR_NET is up-to-date. The rule is a |
---|
263 | ## double colon rule, ie. further rules with the same target may be |
---|
264 | ## added. For unknown reasons, double colon rules are always phony,ie. |
---|
265 | ## getting executed even in case target exists. We break the infinite |
---|
266 | ## loop, we only jump into subdir "lib/csharp/src" if we are not |
---|
267 | ## already in. It is very important that each Makefile[.in] sets the |
---|
268 | ## variable $(subdir) proper. |
---|
269 | |
---|
270 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.runtime.dll :: |
---|
271 | @ subdir="lib/csharp/antlr.runtime" ; \ |
---|
272 | case $(subdir) in \ |
---|
273 | $$subdir ) ;; \ |
---|
274 | * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \ |
---|
275 | test -f "$$d/Makefile" && { \ |
---|
276 | /usr/bin/make -C "$$d" $@ ; \ |
---|
277 | } \ |
---|
278 | ;; \ |
---|
279 | esac |
---|
280 | |
---|
281 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll :: |
---|
282 | @ subdir="lib/csharp/antlr.astframe" ; \ |
---|
283 | case $(subdir) in \ |
---|
284 | $$subdir ) ;; \ |
---|
285 | * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \ |
---|
286 | test -f "$$d/Makefile" && { \ |
---|
287 | /usr/bin/make -C "$$d" $@ ; \ |
---|
288 | } \ |
---|
289 | ;; \ |
---|
290 | esac |
---|
291 | |
---|
292 | |
---|
293 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/antlr/antlr.jar :: |
---|
294 | @ subdir="antlr" ; \ |
---|
295 | case $(subdir) in \ |
---|
296 | $$subdir ) ;; \ |
---|
297 | * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \ |
---|
298 | test -f "$$d/Makefile" && { \ |
---|
299 | /usr/bin/make -C "$$d" $@ ; \ |
---|
300 | } \ |
---|
301 | ;; \ |
---|
302 | esac |
---|
303 | |
---|
304 | |
---|
305 | /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/cpp/src/libantlr.a :: |
---|
306 | @ subdir="lib/cpp/src" ; \ |
---|
307 | case $(subdir) in \ |
---|
308 | $$subdir ) ;; \ |
---|
309 | * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \ |
---|
310 | test -f "$$d/Makefile" && { \ |
---|
311 | /usr/bin/make -C "$$d" $@ ; \ |
---|
312 | } \ |
---|
313 | ;; \ |
---|
314 | esac |
---|
315 | |
---|