source: trunk/yao/share/antlr-2.7.7/examples/python/IDL/Makefile @ 645

Last change on this file since 645 was 645, checked in by eberhartp, 8 years ago

Mise à jour grammaire pour support module linéaire
Mise à jour makefile pour utilisation C++11 (C++14 incompatible)

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