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