source: trunk/yao/share/antlr-2.7.7/lib/cpp/Makefile

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