source: trunk/yao/share/antlr-2.7.7/examples/cpp/filter/Makefile @ 1

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

Initial import of YAO sources

  • Property svn:eol-style set to native
File size: 12.9 KB
Line 
1###############################################################################
2# $Id:$
3###############################################################################
4
5##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
6
7## --*- Makefile -*--
8SUBDIRS         := 
9
10## helper utilities ..
11INSTALL         = /usr/bin/install -c
12MKDIR           = /bin/mkdir
13RM              = /bin/rm -r -f
14RMF             = /bin/rm -r -f
15TAR             = /bin/tar
16TOUCH           = /bin/touch
17CHMOD           = /bin/chmod
18SED             = /bin/sed
19GREP            = /bin/grep
20CAT             = /bin/cat
21CHMOD           = /bin/chmod
22CP              = /bin/cp
23ECHO            = /bin/echo
24
25# usual dribble
26exec_prefix     = ${prefix}
27prefix          = /usr/local
28program_transform_name = s,x,x,
29bindir          = ${exec_prefix}/bin
30sbindir         = ${exec_prefix}/sbin
31libexecdir      = ${exec_prefix}/libexec
32datadir         = ${prefix}/share
33sysconfdir      = ${prefix}/etc
34sharedstatedir  = ${prefix}/com
35localstatedir   = ${prefix}/var
36libdir          = ${exec_prefix}/lib
37includedir      = ${prefix}/include
38oldincludedir   = /usr/include
39infodir         = ${prefix}/info
40mandir          = ${prefix}/man
41build_alias     = 
42host_alias      = 
43target_alias    = 
44build           = x86_64-unknown-linux-gnu
45build_cpu       = x86_64
46build_vendor    = unknown
47build_os        = linux-gnu
48host            = x86_64-unknown-linux-gnu
49host_cpu        = x86_64
50host_vendor     = unknown
51host_os         = linux-gnu
52just_make       = /usr/bin/make
53
54# Version stuff...
55VERSION         = 2
56SUBVERSION      = 7
57PATCHLEVEL      = 7
58PACKAGE_NAME    = antlr
59PACKAGE_VERSION = 2.7.7
60versioneddir    = antlr-2.7.7
61
62# navigation
63builddir        = /usr/neuro/local/yao/yao9/share/antlr-2.7.7
64buildtree       = /usr/neuro/local/yao/yao9/share/antlr-2.7.7
65sourcetree      = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/..
66
67## Two abbrevs to shorten things. $(thisdir) shall be the current
68## working  directory  as  absolute  name  and $(_srcdir) is it's
69## source dir companion. That means that  $(thisdir)/Makefile has
70## been generated by $(_srcdir)/Makefile.in.
71_srcdir         = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../$(subdir)
72thisdir         = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/$(subdir)
73
74# variable 'srcdir' is deprecated - use sourcetree
75srcdir          = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/..
76# variable 'objdir' is deprecated - use buildtree
77objdir          = /usr/neuro/local/yao/yao9/share/antlr-2.7.7
78
79# other
80verbose         = 0
81
82## SUBDIRS you want to exclude (separate them by using "|").
83SUBDIRS_NOT    := .
84
85CLR            = /usr/bin/mono
86
87ANTLR_JAR      = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/antlr/antlr.jar
88ANTLR_LIB      = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/cpp/src/libantlr.a
89ANTLR_NET      = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.runtime.dll
90ANTLR_PY       = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/python/antlr/python.py
91ASTFRAME_NET   = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll
92
93antlr_jar      = antlr.jar
94antlr_lib      = libantlr.a
95antlr_net      = antlr.runtime.dll
96antlr_py       = python.py
97astframe_net   = antlr.astframe.dll
98##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
99
100## do not change this value
101subdir=examples/cpp/filter
102
103srcdir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/examples/cpp/filter/../../../examples/cpp/filter
104objdir = /usr/neuro/local/yao/yao9/share/antlr-2.7.7/examples/cpp/filter
105
106this : test
107test : test1
108
109all: filter test
110
111g_FILES = \
112        $(srcdir)/t.g \
113        $(eol)
114
115g_cxx_FILES = \
116  $(objdir)/T.cpp \
117  $(eol)
118
119g_hpp_FILES = \
120        $(objdir)/T.hpp \
121        $(objdir)/TTokenTypes.hpp \
122        $(eol)
123
124g_txt_FILES = \
125        $(objdir)/TTokenTypes.txt \
126        $(eol)
127
128g_gen_FILES = \
129        $(g_cxx_FILES) \
130        $(g_hpp_FILES) \
131        $(g_txt_FILES) \
132        $(eol)
133
134g_obj_FILES = \
135  $(objdir)/T.o \
136  $(eol)
137
138## Source files
139filter_cxx_FILES = \
140        $(g_cxx_FILES) \
141        $(srcdir)/Test.cpp  \
142        $(eol)
143
144## Object files
145filter_obj_FILES = \
146        $(g_obj_FILES) \
147        $(objdir)/Test.o  \
148        $(eol)
149
150## Test commands ..
151test1_cmd = $(objdir)/filter < $(srcdir)/test.html
152
153## Tests to be executed
154test1 : filter
155        @ v="$(verbose)"; \
156    if test $$v -gt 0 ; then \
157      /bin/echo "$(test1_cmd)" ; \
158    else \
159      /bin/echo "exec test1 .."; \
160    fi
161        @ $(test1_cmd)
162
163## How to make binaries
164filter : $(filter_obj_FILES) /usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/cpp/src/libantlr.a
165        @ /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/link.sh $@ $(filter_obj_FILES)
166
167## How to compile ANTLR grammar files
168$(g_gen_FILES) : $(g_FILES) /usr/neuro/local/yao/yao9/share/antlr-2.7.7/antlr/antlr.jar
169        /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/antlr.sh  $(g_FILES)
170
171## GNU make - how to make object file
172$(objdir)/%.o : $(srcdir)/%.cpp
173        @ /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cxx.sh $<
174
175## GNU make - how to make object file
176$(objdir)/%.o : $(objdir)/%.cpp
177        @ /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cxx.sh $<
178
179## GNU make - how to make object file
180%.o : $(srcdir)/%.cpp
181        @ /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cxx.sh $<
182
183## GNU make - how to make object file
184%.o : $(objdir)/%.cpp
185        @ /bin/sh /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cxx.sh $<
186
187## Housecleaning
188clean:
189        /bin/rm -r -f *.o *.obj *.exe filter  $(g_gen_FILES) test1
190
191distclean: clean
192        /bin/rm -r -f Makefile
193
194# Dependencies
195$(objdir)/T.o :       \
196 $(objdir)/T.hpp            \
197 $(objdir)/TTokenTypes.hpp
198
199$(objdir)/Test.o     :  \
200 $(objdir)/T.hpp           \
201 $(objdir)/TTokenTypes.hpp
202
203## If cxx.sh script changed ..
204$(filter_obj_FILES) : /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cxx.sh
205
206## If link.sh script changed ..
207$(filter_obj_FILES) : /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/link.sh
208
209##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
210
211## --*- Makefile -*--
212## Make listed targets even in case a file with same name exists.
213.PHONY: \
214 this \
215 all clean install test distclean \
216 this-all this-clean this-install this-test this-distclean \
217 all-this clean-this install-this test-this distclean-this \
218 $(eof)
219
220## delete suffix rules - shortens output when using -d and is not
221## used anyway (and should not be used).
222.SUFFIXES:
223
224Makefile :: /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../$(subdir)/Makefile.in  \
225            /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.deps \
226                                          /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.make \
227                                          /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.vars \
228            /usr/neuro/local/yao/yao9/share/antlr-2.7.7/config.status
229        @echo "*** update $(subdir)/Makefile"
230        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES="$(subdir)/Makefile" /bin/sh ./config.status -q
231
232/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.deps : \
233        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.deps.in
234        @echo "*** update $@"
235        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.deps /bin/sh ./config.status -q
236
237/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.make : \
238        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.make.in
239        @echo "*** update $@"
240        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.make /bin/sh ./config.status -q
241
242/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/config.vars : \
243        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/config.vars.in
244        @echo "*** update $@"
245        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/config.vars /bin/sh ./config.status -q
246
247/usr/neuro/local/yao/yao9/share/antlr-2.7.7/config.status : \
248        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../configure
249        @echo "*** reconfigure $@ - stay tuned .."
250        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && /bin/sh ./config.status -q --recheck
251        @echo "*** update all configured files .."
252        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && /bin/sh ./config.status -q
253
254### In a pure devel mode there should be also a dependency listed on how
255### to make configure out of  configure.in.  This  requires that usr has
256### m4  and  autoconf (proper version) installed. Appropriate checks are
257### not done in configure. If so, then uncomment next lines:
258###
259###   @rule_configure_configure_in@
260###
261
262/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/antlr.sh : \
263        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/antlr.sh.in
264        @echo "*** update $@"
265        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/antlr.sh /bin/sh ./config.status -q
266
267/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cpp.sh : \
268        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/cpp.sh.in
269        @echo "*** update $@"
270        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/cpp.sh /bin/sh ./config.status -q
271
272/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/csc.sh : \
273        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/csc.sh.in
274        @echo "*** update $@"
275        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/csc.sh /bin/sh ./config.status -q
276
277/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/cxx.sh : \
278        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/cxx.sh.in
279        @echo "*** update $@"
280        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/cxx.sh /bin/sh ./config.status -q
281
282/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/jar.sh : \
283        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/jar.sh.in
284        @echo "*** update $@"
285        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/jar.sh /bin/sh ./config.status -q
286
287/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/javac.sh : \
288        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/javac.sh.in
289        @echo "*** update $@"
290        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/javac.sh /bin/sh ./config.status -q
291
292/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/java.sh : \
293        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/java.sh.in
294        @echo "*** update $@"
295        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/java.sh /bin/sh ./config.status -q
296
297/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/lib.sh : \
298        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/lib.sh.in
299        @echo "*** update $@"
300        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/lib.sh /bin/sh ./config.status -q
301
302/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/link.sh : \
303        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/link.sh.in
304        @echo "*** update $@"
305        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/link.sh /bin/sh ./config.status -q
306
307/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/pyinst.sh : \
308        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/pyinst.sh.in
309        @echo "*** update $@"
310        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/pyinst.sh /bin/sh ./config.status -q
311
312/usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/python.sh : \
313        /usr/neuro/local/yao/yao9/share/antlr-2.7.7/scripts/../scripts/python.sh.in
314        @echo "*** update $@"
315        @cd /usr/neuro/local/yao/yao9/share/antlr-2.7.7 && CONFIG_FILES=scripts/python.sh /bin/sh ./config.status -q
316
317
318## This rule shall ensure that ANTLR_NET is up-to-date. The rule is a
319## double colon rule, ie. further  rules  with the same target may be
320## added. For unknown reasons, double colon rules are always phony,ie.
321## getting executed even in case target exists. We break the infinite
322## loop,  we only  jump  into  subdir  "lib/csharp/src" if we are not
323## already in. It is very important that  each Makefile[.in] sets the
324## variable $(subdir) proper.
325
326/usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.runtime.dll ::
327        @ subdir="lib/csharp/antlr.runtime" ; \
328    case $(subdir) in \
329          $$subdir ) ;; \
330          * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \
331        test -f "$$d/Makefile" && {  \
332         /usr/bin/make -C "$$d" $@ ; \
333        }       \
334        ;; \
335    esac
336
337/usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/antlr.astframe.dll ::
338        @ subdir="lib/csharp/antlr.astframe" ; \
339    case $(subdir) in \
340          $$subdir ) ;; \
341          * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \
342        test -f "$$d/Makefile" && {  \
343         /usr/bin/make -C "$$d" $@ ; \
344        }       \
345        ;; \
346    esac
347
348
349/usr/neuro/local/yao/yao9/share/antlr-2.7.7/antlr/antlr.jar ::
350        @ subdir="antlr" ; \
351    case $(subdir) in \
352          $$subdir ) ;; \
353          * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \
354        test -f "$$d/Makefile" && {  \
355         /usr/bin/make -C "$$d" $@ ; \
356        }       \
357        ;; \
358    esac
359
360
361/usr/neuro/local/yao/yao9/share/antlr-2.7.7/lib/cpp/src/libantlr.a ::
362        @ subdir="lib/cpp/src" ; \
363    case $(subdir) in \
364          $$subdir ) ;; \
365          * ) d="/usr/neuro/local/yao/yao9/share/antlr-2.7.7/$$subdir" ; \
366        test -f "$$d/Makefile" && {  \
367         /usr/bin/make -C "$$d" $@ ; \
368        }       \
369        ;; \
370    esac
371
372##xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Note: See TracBrowser for help on using the repository browser.