source: trunk/yao/share/antlr-2.7.7/examples/python/columns/Makefile @ 28

Last change on this file since 28 was 28, checked in by lnalod, 15 years ago

Update of the YAO generator code and ANTLR source code for the compatibility with Mandriva 2009 and 2010. These distributions have an another version of the gcc compiler and this not allowed a correct compilation of the old sources.

  • Property svn:eol-style set to native
File size: 16.6 KB
Line 
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
6subdir=examples/python/columns
7
8## get  configured  (standard) variables - checkout or modify
9## scripts/config.vars[.in] for details.
10
11## --*- Makefile -*--
12SUBDIRS         := 
13
14## helper utilities ..
15INSTALL         = /usr/bin/install -c
16MKDIR           = /bin/mkdir
17RM              = /bin/rm -r -f
18RMF             = /bin/rm -r -f
19TAR             = /bin/tar
20TOUCH           = /bin/touch
21CHMOD           = /bin/chmod
22SED             = /bin/sed
23GREP            = /bin/grep
24CAT             = /bin/cat
25CHMOD           = /bin/chmod
26CP              = /bin/cp
27ECHO            = /bin/echo
28
29# usual dribble
30exec_prefix     = ${prefix}
31prefix          = /usr/local
32program_transform_name = s,x,x,
33bindir          = ${exec_prefix}/bin
34sbindir         = ${exec_prefix}/sbin
35libexecdir      = ${exec_prefix}/libexec
36datadir         = ${prefix}/share
37sysconfdir      = ${prefix}/etc
38sharedstatedir  = ${prefix}/com
39localstatedir   = ${prefix}/var
40libdir          = ${exec_prefix}/lib
41includedir      = ${prefix}/include
42oldincludedir   = /usr/include
43infodir         = ${prefix}/info
44mandir          = ${prefix}/man
45build_alias     = 
46host_alias      = 
47target_alias    = 
48build           = x86_64-unknown-linux-gnu
49build_cpu       = x86_64
50build_vendor    = unknown
51build_os        = linux-gnu
52host            = x86_64-unknown-linux-gnu
53host_cpu        = x86_64
54host_vendor     = unknown
55host_os         = linux-gnu
56just_make       = /usr/bin/make
57
58# Version stuff...
59VERSION         = 2
60SUBVERSION      = 7
61PATCHLEVEL      = 7
62PACKAGE_NAME    = antlr
63PACKAGE_VERSION = 2.7.7
64versioneddir    = antlr-2.7.7
65
66# navigation
67builddir        = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7
68buildtree       = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7
69sourcetree      = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/..
70
71## Two abbrevs to shorten things. $(thisdir) shall be the current
72## working  directory  as  absolute  name  and $(_srcdir) is it's
73## source dir companion. That means that  $(thisdir)/Makefile has
74## been generated by $(_srcdir)/Makefile.in.
75_srcdir         = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../$(subdir)
76thisdir         = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/$(subdir)
77
78# variable 'srcdir' is deprecated - use sourcetree
79srcdir          = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/..
80# variable 'objdir' is deprecated - use buildtree
81objdir          = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7
82
83# other
84verbose         = 0
85
86## SUBDIRS you want to exclude (separate them by using "|").
87SUBDIRS_NOT    := .
88
89CLR            = /usr/bin/mono
90
91ANTLR_JAR      = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/antlr/antlr.jar
92ANTLR_LIB      = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/lib/cpp/src/libantlr.a
93ANTLR_NET      = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/lib/antlr.runtime.dll
94ANTLR_PY       = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/lib/python/antlr/python.py
95ASTFRAME_NET   = /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/lib/antlr.astframe.dll
96
97antlr_jar      = antlr.jar
98antlr_lib      = libantlr.a
99antlr_net      = antlr.runtime.dll
100antlr_py       = python.py
101astframe_net   = antlr.astframe.dll
102
103### how to get rid of damned dos line ending style and -- al-
104### most equally worse -- stupid tab character.
105### dos2unix  = perl -p -i.tmp -e 's,\r,,g;s,\t, ,g'
106dos2unix = :
107
108### when running python we invoke python like ..
109python    = /bin/sh /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/python.sh
110
111## get configured rules
112
113##xxxxxxxxxxxxxxxxxxxxxx --*- Makefile -*-- xxxxxxxxxxxxxxxx>>> config.make
114## By default, make will jump into any sub directory that contains a   file
115## named "Makefile". This is done  in the order implied by "/bin/ls"  which
116## is in almost  all  cases  correct  (note  that  you  should  not  design
117## Makefiles which depend on a specific invocation order). You can override
118## specific  behaviour  by  using  variable SUBDIRS. If given and not empty,
119## "/bin/ls" is not used. Also,  if you want to disable jumping subdirs you
120## may  use  either ".", ".."  as  value for SUBDIRS. Note that SUBDIRS may
121## contain any directory (except "." and "..).
122
123## This is very much  GNU specific, sigh.  Variable SUBDIRS is used to tell
124## make which  subdirectory to jump. It's  value is normally preset or just
125## empty, in which case /bin/ls is used as discussed above. However, I also
126## want that a user can say
127##
128##  make SUBDIRS="d1 d2 .. dn"
129##
130## That means, ignore defaults and go ahead and make exactly this director-
131## ies mentioned. Of course, this should only have  an  impact  on Makefile
132## being used  by  "make"  but not for any makefils in d1 .. dn, right? For
133## example, if di  needs  to  make directories a,b and c, then they need to
134## be made of course. So all burns down to the question how to prevent a
135## variable from being passed to submakes. Below you can see the answer. If
136## you believe that there's a simpler answer to the problem don't hesistate
137## to try it out. If  it  works, send me an email: ora dot et dot labora at
138## web dot de. But be warned - you need to try all variations.
139##
140## Here is in short what  I  found  and how  it  works.  Variables given on
141## command line  are  saved  in  variable  MAKEOVERRIDES. This  variable is
142## exported  and  passed down. On  invocation  of a submake file, make will
143## have a  look  into MAKEOVERRIDES  and unpack each variable found therein.
144## Therefore I'm just going to  remove  every (?) occurance of SUBDIRS from
145## this variable.
146MAKEOVERRIDES := $(patsubst SUBDIRS=%,,$(MAKEOVERRIDES))
147
148
149## The actuall rule on how to make a recursive target.
150all clean distclean test install force-target clean-target :: 
151        @dirs="$(SUBDIRS)" ; \
152        test -z "$${dirs}" && { \
153                dirs=`/bin/ls` ; \
154  } ; \
155        for d in . $${dirs} ; do \
156                case $${d} in \
157                . | .. ) ;; \
158          $(SUBDIRS_NOT) ) ;; \
159                *) \
160                if test -f "$${d}/Makefile" ; then \
161                  echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" ; \
162                  echo ">> /usr/bin/make -C $(subdir)/$${d} $@                          " ; \
163                        echo ">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" ; \
164                        /usr/bin/make -C "$$d" $@ || exit 1 ;\
165                fi ; \
166                ;; \
167                esac ; \
168        done
169
170## For historical  reasons only you can make local targets as "this-*" or
171## "*-this" rules. The  default is to do nothing. Although this targets
172## exists, it is recommended to define further "all", "clean" etc. double
173## colon rules.
174 
175all       :: this-all all-this
176clean     :: this-clean clean-this
177distclean :: this-distclean distclean-this
178test      :: this-test test-this
179install   :: this-install install-this
180
181this-all ::
182this-clean ::
183this-distclean ::
184this-test ::
185this-install ::
186
187all-this ::
188clean-this ::
189distclean-this ::
190test-this ::
191install-this ::
192
193force-target :: clean-target all
194
195distclean :: clean
196
197distclean ::
198        $(RM) Makefile
199
200## xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx<< config.make
201
202## By default we compile class files so we are ready to carry
203## out a test. Note that deps have been setup in such a way
204## that you can do a 'make compile' whithout having made
205## antlr.jar before.
206this : compile
207all  :: compile
208
209
210g_FILES  = \
211 $(_srcdir)/columns.g \
212 $(eol)
213
214g_py_FILES = \
215 columns_l.py \
216 $(eol)
217
218compile : $(g_py_FILES)
219
220
221test :: test1
222
223test1_deps = \
224        $(g_py_FILES) \
225        $(buildtree)/scripts/python.sh \
226        $(eol)
227
228test1_cmd = \
229        $(python) columns_l.py < $(_srcdir)/columns.in \
230        $(eol)
231
232test1 : $(test1_deps)
233        @ $(test1_cmd)
234
235$(g_py_FILES) : $(g_FILES)
236        @ /bin/rm -r -f $(g_py_FILES)
237        @ /bin/sh /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/antlr.sh $(g_FILES)
238        @ $(dos2unix) $(g_py_FILES)
239
240$(g_py_FILES) : /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/antlr/antlr.jar
241$(g_py_FILES) : $(buildtree)/scripts/antlr.sh
242
243### cleanup columns
244clean ::
245        @/bin/echo cleaning columns ...
246        @ -/bin/rm -r -f $(g_py_FILES)
247        @ -/bin/rm -r -f *.pyc *.tmp *TokenTypes.txt *TokenTypes
248
249
250
251### get configured dependencies - for example, just list
252### autoconf variable ANTLR_JAR as reference and it will
253### be  done  automatically  as stddeps contains appropr.
254### rule. For details, checkout scripts/config.vars[.in]
255
256## --*- Makefile -*--
257## Make listed targets even in case a file with same name exists.
258.PHONY: \
259 this \
260 all clean install test distclean \
261 this-all this-clean this-install this-test this-distclean \
262 all-this clean-this install-this test-this distclean-this \
263 $(eof)
264
265## delete suffix rules - shortens output when using -d and is not
266## used anyway (and should not be used).
267.SUFFIXES:
268
269Makefile :: /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../$(subdir)/Makefile.in  \
270            /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/config.deps \
271                                          /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/config.make \
272                                          /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/config.vars \
273            /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/config.status
274        @echo "*** update $(subdir)/Makefile"
275        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES="$(subdir)/Makefile" /bin/sh ./config.status -q
276
277/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/config.deps : \
278        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/config.deps.in
279        @echo "*** update $@"
280        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.deps /bin/sh ./config.status -q
281
282/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/config.make : \
283        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/config.make.in
284        @echo "*** update $@"
285        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.make /bin/sh ./config.status -q
286
287/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/config.vars : \
288        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/config.vars.in
289        @echo "*** update $@"
290        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.vars /bin/sh ./config.status -q
291
292/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/config.status : \
293        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../configure
294        @echo "*** reconfigure $@ - stay tuned .."
295        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && /bin/sh ./config.status -q --recheck
296        @echo "*** update all configured files .."
297        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && /bin/sh ./config.status -q
298
299### In a pure devel mode there should be also a dependency listed on how
300### to make configure out of  configure.in.  This  requires that usr has
301### m4  and  autoconf (proper version) installed. Appropriate checks are
302### not done in configure. If so, then uncomment next lines:
303###
304###   @rule_configure_configure_in@
305###
306
307/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/antlr.sh : \
308        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/antlr.sh.in
309        @echo "*** update $@"
310        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/antlr.sh /bin/sh ./config.status -q
311
312/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/cpp.sh : \
313        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/cpp.sh.in
314        @echo "*** update $@"
315        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/cpp.sh /bin/sh ./config.status -q
316
317/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/csc.sh : \
318        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/csc.sh.in
319        @echo "*** update $@"
320        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/csc.sh /bin/sh ./config.status -q
321
322/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/cxx.sh : \
323        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/cxx.sh.in
324        @echo "*** update $@"
325        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/cxx.sh /bin/sh ./config.status -q
326
327/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/jar.sh : \
328        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/jar.sh.in
329        @echo "*** update $@"
330        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/jar.sh /bin/sh ./config.status -q
331
332/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/javac.sh : \
333        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/javac.sh.in
334        @echo "*** update $@"
335        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/javac.sh /bin/sh ./config.status -q
336
337/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/java.sh : \
338        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/java.sh.in
339        @echo "*** update $@"
340        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/java.sh /bin/sh ./config.status -q
341
342/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/lib.sh : \
343        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/lib.sh.in
344        @echo "*** update $@"
345        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/lib.sh /bin/sh ./config.status -q
346
347/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/link.sh : \
348        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/link.sh.in
349        @echo "*** update $@"
350        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/link.sh /bin/sh ./config.status -q
351
352/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/pyinst.sh : \
353        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/pyinst.sh.in
354        @echo "*** update $@"
355        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/pyinst.sh /bin/sh ./config.status -q
356
357/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/python.sh : \
358        /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/scripts/../scripts/python.sh.in
359        @echo "*** update $@"
360        @cd /home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7 && CONFIG_FILES=scripts/python.sh /bin/sh ./config.status -q
361
362
363## This rule shall ensure that ANTLR_NET is up-to-date. The rule is a
364## double colon rule, ie. further  rules  with the same target may be
365## added. For unknown reasons, double colon rules are always phony,ie.
366## getting executed even in case target exists. We break the infinite
367## loop,  we only  jump  into  subdir  "lib/csharp/src" if we are not
368## already in. It is very important that  each Makefile[.in] sets the
369## variable $(subdir) proper.
370
371/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/lib/antlr.runtime.dll ::
372        @ subdir="lib/csharp/antlr.runtime" ; \
373    case $(subdir) in \
374          $$subdir ) ;; \
375          * ) d="/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/$$subdir" ; \
376        test -f "$$d/Makefile" && {  \
377         /usr/bin/make -C "$$d" $@ ; \
378        }       \
379        ;; \
380    esac
381
382/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/lib/antlr.astframe.dll ::
383        @ subdir="lib/csharp/antlr.astframe" ; \
384    case $(subdir) in \
385          $$subdir ) ;; \
386          * ) d="/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/$$subdir" ; \
387        test -f "$$d/Makefile" && {  \
388         /usr/bin/make -C "$$d" $@ ; \
389        }       \
390        ;; \
391    esac
392
393
394/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/antlr/antlr.jar ::
395        @ subdir="antlr" ; \
396    case $(subdir) in \
397          $$subdir ) ;; \
398          * ) d="/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/$$subdir" ; \
399        test -f "$$d/Makefile" && {  \
400         /usr/bin/make -C "$$d" $@ ; \
401        }       \
402        ;; \
403    esac
404
405
406/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/lib/cpp/src/libantlr.a ::
407        @ subdir="lib/cpp/src" ; \
408    case $(subdir) in \
409          $$subdir ) ;; \
410          * ) d="/home/lnalod/tmp/svnYAO2009-11-12/trunk/yao/share/antlr-2.7.7/$$subdir" ; \
411        test -f "$$d/Makefile" && {  \
412         /usr/bin/make -C "$$d" $@ ; \
413        }       \
414        ;; \
415    esac
416
417
418.PHONY: compile
419.PHONY: test1
Note: See TracBrowser for help on using the repository browser.