1 | # Makefile.in generated by automake 1.7.5 from Makefile.am.
|
---|
2 | # @configure_input@
|
---|
3 |
|
---|
4 | # Copyright 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003
|
---|
5 | # Free Software Foundation, Inc.
|
---|
6 | # This Makefile.in is free software; the Free Software Foundation
|
---|
7 | # gives unlimited permission to copy and/or distribute it,
|
---|
8 | # with or without modifications, as long as this notice is preserved.
|
---|
9 |
|
---|
10 | # This program is distributed in the hope that it will be useful,
|
---|
11 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
---|
12 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
---|
13 | # PARTICULAR PURPOSE.
|
---|
14 |
|
---|
15 | @SET_MAKE@
|
---|
16 |
|
---|
17 | # This file is part of flex.
|
---|
18 |
|
---|
19 | # Redistribution and use in source and binary forms, with or without
|
---|
20 | # modification, are permitted provided that the following conditions
|
---|
21 | # are met:
|
---|
22 |
|
---|
23 | # 1. Redistributions of source code must retain the above copyright
|
---|
24 | # notice, this list of conditions and the following disclaimer.
|
---|
25 | # 2. Redistributions in binary form must reproduce the above copyright
|
---|
26 | # notice, this list of conditions and the following disclaimer in the
|
---|
27 | # documentation and/or other materials provided with the distribution.
|
---|
28 |
|
---|
29 | # Neither the name of the University nor the names of its contributors
|
---|
30 | # may be used to endorse or promote products derived from this software
|
---|
31 | # without specific prior written permission.
|
---|
32 |
|
---|
33 | # THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR
|
---|
34 | # IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
---|
35 | # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
---|
36 | # PURPOSE.
|
---|
37 |
|
---|
38 | # ------------------------------------------------
|
---|
39 | # This test is really a set of tests, one for
|
---|
40 | # each compression flag. -Ca, -Cem, etc..
|
---|
41 | # 'test-opt' builds non-serialized scanners with various table options.
|
---|
42 | # 'test-ver' verifies that the serialized tables match the in-code tables.
|
---|
43 | # 'test-ser' deserializes the tables at runtime.
|
---|
44 | # 'test-mul' checks that we can store multiple tables in a single file.
|
---|
45 | # ------------------------------------------------
|
---|
46 |
|
---|
47 | srcdir = @srcdir@
|
---|
48 | top_srcdir = @top_srcdir@
|
---|
49 | VPATH = @srcdir@
|
---|
50 | pkgdatadir = $(datadir)/@PACKAGE@
|
---|
51 | pkglibdir = $(libdir)/@PACKAGE@
|
---|
52 | pkgincludedir = $(includedir)/@PACKAGE@
|
---|
53 | top_builddir = ../..
|
---|
54 |
|
---|
55 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
|
---|
56 | INSTALL = @INSTALL@
|
---|
57 | install_sh_DATA = $(install_sh) -c -m 644
|
---|
58 | install_sh_PROGRAM = $(install_sh) -c
|
---|
59 | install_sh_SCRIPT = $(install_sh) -c
|
---|
60 | INSTALL_HEADER = $(INSTALL_DATA)
|
---|
61 | transform = $(program_transform_name)
|
---|
62 | NORMAL_INSTALL = :
|
---|
63 | PRE_INSTALL = :
|
---|
64 | POST_INSTALL = :
|
---|
65 | NORMAL_UNINSTALL = :
|
---|
66 | PRE_UNINSTALL = :
|
---|
67 | POST_UNINSTALL = :
|
---|
68 | host_triplet = @host@
|
---|
69 | ACLOCAL = @ACLOCAL@
|
---|
70 | AMDEP_FALSE = @AMDEP_FALSE@
|
---|
71 | AMDEP_TRUE = @AMDEP_TRUE@
|
---|
72 | AMTAR = @AMTAR@
|
---|
73 | AUTOCONF = @AUTOCONF@
|
---|
74 | AUTOHEADER = @AUTOHEADER@
|
---|
75 | AUTOMAKE = @AUTOMAKE@
|
---|
76 | AWK = @AWK@
|
---|
77 | BISON = @BISON@
|
---|
78 | CC = @CC@
|
---|
79 | CCDEPMODE = @CCDEPMODE@
|
---|
80 | CFLAGS = @CFLAGS@
|
---|
81 | CPP = @CPP@
|
---|
82 | CPPFLAGS = @CPPFLAGS@
|
---|
83 | CXX = @CXX@
|
---|
84 | CXXDEPMODE = @CXXDEPMODE@
|
---|
85 | CXXFLAGS = @CXXFLAGS@
|
---|
86 | CYGPATH_W = @CYGPATH_W@
|
---|
87 | DEFS = @DEFS@
|
---|
88 | DEPDIR = @DEPDIR@
|
---|
89 | ECHO_C = @ECHO_C@
|
---|
90 | ECHO_N = @ECHO_N@
|
---|
91 | ECHO_T = @ECHO_T@
|
---|
92 | EGREP = @EGREP@
|
---|
93 | EXEEXT = @EXEEXT@
|
---|
94 | GMSGFMT = @GMSGFMT@
|
---|
95 | HELP2MAN = @HELP2MAN@
|
---|
96 | INDENT = @INDENT@
|
---|
97 | INSTALL_DATA = @INSTALL_DATA@
|
---|
98 | INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
---|
99 | INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
---|
100 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
|
---|
101 | INTLLIBS = @INTLLIBS@
|
---|
102 | LDFLAGS = @LDFLAGS@
|
---|
103 | LEX = @LEX@
|
---|
104 | LEXLIB = @LEXLIB@
|
---|
105 | LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
|
---|
106 | LIBICONV = @LIBICONV@
|
---|
107 | LIBINTL = @LIBINTL@
|
---|
108 | LIBOBJS = @LIBOBJS@
|
---|
109 | LIBS = @LIBS@
|
---|
110 | LN_S = @LN_S@
|
---|
111 | LTLIBICONV = @LTLIBICONV@
|
---|
112 | LTLIBINTL = @LTLIBINTL@
|
---|
113 | LTLIBOBJS = @LTLIBOBJS@
|
---|
114 | M4 = @M4@
|
---|
115 | MAKEINFO = @MAKEINFO@
|
---|
116 | MKINSTALLDIRS = @MKINSTALLDIRS@
|
---|
117 | MSGFMT = @MSGFMT@
|
---|
118 | MSGMERGE = @MSGMERGE@
|
---|
119 | OBJEXT = @OBJEXT@
|
---|
120 | PACKAGE = @PACKAGE@
|
---|
121 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
|
---|
122 | PACKAGE_NAME = @PACKAGE_NAME@
|
---|
123 | PACKAGE_STRING = @PACKAGE_STRING@
|
---|
124 | PACKAGE_TARNAME = @PACKAGE_TARNAME@
|
---|
125 | PACKAGE_VERSION = @PACKAGE_VERSION@
|
---|
126 | PATH_SEPARATOR = @PATH_SEPARATOR@
|
---|
127 | POSUB = @POSUB@
|
---|
128 | RANLIB = @RANLIB@
|
---|
129 | SET_MAKE = @SET_MAKE@
|
---|
130 | SHELL = @SHELL@
|
---|
131 | STRIP = @STRIP@
|
---|
132 | USE_NLS = @USE_NLS@
|
---|
133 | VERSION = @VERSION@
|
---|
134 | XGETTEXT = @XGETTEXT@
|
---|
135 | YACC = @YACC@
|
---|
136 | ac_ct_CC = @ac_ct_CC@
|
---|
137 | ac_ct_CXX = @ac_ct_CXX@
|
---|
138 | ac_ct_RANLIB = @ac_ct_RANLIB@
|
---|
139 | ac_ct_STRIP = @ac_ct_STRIP@
|
---|
140 | am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
|
---|
141 | am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
|
---|
142 | am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
|
---|
143 | am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
|
---|
144 | am__include = @am__include@
|
---|
145 | am__leading_dot = @am__leading_dot@
|
---|
146 | am__quote = @am__quote@
|
---|
147 | bindir = @bindir@
|
---|
148 | build = @build@
|
---|
149 | build_alias = @build_alias@
|
---|
150 | build_cpu = @build_cpu@
|
---|
151 | build_os = @build_os@
|
---|
152 | build_vendor = @build_vendor@
|
---|
153 | datadir = @datadir@
|
---|
154 | exec_prefix = @exec_prefix@
|
---|
155 | host = @host@
|
---|
156 | host_alias = @host_alias@
|
---|
157 | host_cpu = @host_cpu@
|
---|
158 | host_os = @host_os@
|
---|
159 | host_vendor = @host_vendor@
|
---|
160 | includedir = @includedir@
|
---|
161 | infodir = @infodir@
|
---|
162 | install_sh = @install_sh@
|
---|
163 | libdir = @libdir@
|
---|
164 | libexecdir = @libexecdir@
|
---|
165 | localstatedir = @localstatedir@
|
---|
166 | mandir = @mandir@
|
---|
167 | oldincludedir = @oldincludedir@
|
---|
168 | prefix = @prefix@
|
---|
169 | program_transform_name = @program_transform_name@
|
---|
170 | sbindir = @sbindir@
|
---|
171 | sharedstatedir = @sharedstatedir@
|
---|
172 | sysconfdir = @sysconfdir@
|
---|
173 | target_alias = @target_alias@
|
---|
174 |
|
---|
175 | FLEX = $(top_builddir)/flex
|
---|
176 |
|
---|
177 | testname := test-table-opts
|
---|
178 | allopts := -Ca -Ce -Cf -CF -Cm -Cem -Cae -Caef -CaeF -Cam -Caem
|
---|
179 |
|
---|
180 | # the test names themselves
|
---|
181 | opttests := $(foreach opt,$(allopts), test-opt-nr$(opt) test-opt-r$(opt))
|
---|
182 | sertests := $(foreach opt,$(allopts), test-ser-nr$(opt) test-ser-r$(opt))
|
---|
183 | vertests := $(foreach opt,$(allopts), test-ver-nr$(opt) test-ver-r$(opt))
|
---|
184 | alltests := $(opttests) $(vertests) $(sertests) test-mul
|
---|
185 |
|
---|
186 | # the executables to build
|
---|
187 | optexe := $(addsuffix $(EXEEXT),$(opttests))
|
---|
188 | verexe := $(addsuffix $(EXEEXT),$(vertests))
|
---|
189 | serexe := $(addsuffix $(EXEEXT),$(sertests))
|
---|
190 | allexe := $(optexe) $(verexe) $(serexe)
|
---|
191 |
|
---|
192 | # the .c files
|
---|
193 | optsrc := $(addsuffix .c,$(opttests))
|
---|
194 | versrc := $(addsuffix .c,$(vertests))
|
---|
195 | sersrc := $(addsuffix .c,$(sertests))
|
---|
196 | allsrc := $(optsrc) $(versrc) $(sersrc)
|
---|
197 |
|
---|
198 | # the .o files
|
---|
199 | optobj := $(addsuffix .o,$(opttests))
|
---|
200 | verobj := $(addsuffix .o,$(vertests))
|
---|
201 | serobj := $(addsuffix .o,$(sertests))
|
---|
202 | allobj := $(optobj) $(verobj) $(serobj)
|
---|
203 |
|
---|
204 | # the .tables files
|
---|
205 | sertables := $(addsuffix .tables,$(sertests))
|
---|
206 | alltables := $(addsuffix .tables,$(alltests))
|
---|
207 |
|
---|
208 | EXTRA_DIST = scanner.l test.input
|
---|
209 | CLEANFILES = scanner.c OUTPUT test-*.o test-*.c test-*.tables \
|
---|
210 | all-ser.tables core $(alltests)
|
---|
211 |
|
---|
212 | AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir)
|
---|
213 | subdir = tests/test-table-opts
|
---|
214 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
---|
215 | mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
---|
216 | CONFIG_HEADER = $(top_builddir)/config.h
|
---|
217 | CONFIG_CLEAN_FILES =
|
---|
218 | DIST_SOURCES =
|
---|
219 | DIST_COMMON = Makefile.am Makefile.in
|
---|
220 | all: all-am
|
---|
221 |
|
---|
222 | .SUFFIXES:
|
---|
223 | .SUFFIXES: .c .o
|
---|
224 | $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
|
---|
225 | cd $(top_srcdir) && \
|
---|
226 | $(AUTOMAKE) --gnu tests/test-table-opts/Makefile
|
---|
227 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
---|
228 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
|
---|
229 | uninstall-info-am:
|
---|
230 | tags: TAGS
|
---|
231 | TAGS:
|
---|
232 |
|
---|
233 | ctags: CTAGS
|
---|
234 | CTAGS:
|
---|
235 |
|
---|
236 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
|
---|
237 |
|
---|
238 | top_distdir = ../..
|
---|
239 | distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
|
---|
240 |
|
---|
241 | distdir: $(DISTFILES)
|
---|
242 | @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
|
---|
243 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
|
---|
244 | list='$(DISTFILES)'; for file in $$list; do \
|
---|
245 | case $$file in \
|
---|
246 | $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
|
---|
247 | $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
|
---|
248 | esac; \
|
---|
249 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
|
---|
250 | dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
|
---|
251 | if test "$$dir" != "$$file" && test "$$dir" != "."; then \
|
---|
252 | dir="/$$dir"; \
|
---|
253 | $(mkinstalldirs) "$(distdir)$$dir"; \
|
---|
254 | else \
|
---|
255 | dir=''; \
|
---|
256 | fi; \
|
---|
257 | if test -d $$d/$$file; then \
|
---|
258 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
|
---|
259 | cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
|
---|
260 | fi; \
|
---|
261 | cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
|
---|
262 | else \
|
---|
263 | test -f $(distdir)/$$file \
|
---|
264 | || cp -p $$d/$$file $(distdir)/$$file \
|
---|
265 | || exit 1; \
|
---|
266 | fi; \
|
---|
267 | done
|
---|
268 | check-am: all-am
|
---|
269 | check: check-am
|
---|
270 | all-am: Makefile
|
---|
271 |
|
---|
272 | installdirs:
|
---|
273 | install: install-am
|
---|
274 | install-exec: install-exec-am
|
---|
275 | install-data: install-data-am
|
---|
276 | uninstall: uninstall-am
|
---|
277 |
|
---|
278 | install-am: all-am
|
---|
279 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
---|
280 |
|
---|
281 | installcheck: installcheck-am
|
---|
282 | install-strip:
|
---|
283 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
|
---|
284 | INSTALL_STRIP_FLAG=-s \
|
---|
285 | `test -z '$(STRIP)' || \
|
---|
286 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
|
---|
287 | mostlyclean-generic:
|
---|
288 |
|
---|
289 | clean-generic:
|
---|
290 | -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
|
---|
291 |
|
---|
292 | distclean-generic:
|
---|
293 | -rm -f Makefile $(CONFIG_CLEAN_FILES)
|
---|
294 |
|
---|
295 | maintainer-clean-generic:
|
---|
296 | @echo "This command is intended for maintainers to use"
|
---|
297 | @echo "it deletes files that may require special tools to rebuild."
|
---|
298 | clean: clean-am
|
---|
299 |
|
---|
300 | clean-am: clean-generic mostlyclean-am
|
---|
301 |
|
---|
302 | distclean: distclean-am
|
---|
303 |
|
---|
304 | distclean-am: clean-am distclean-generic
|
---|
305 |
|
---|
306 | dvi: dvi-am
|
---|
307 |
|
---|
308 | dvi-am:
|
---|
309 |
|
---|
310 | info: info-am
|
---|
311 |
|
---|
312 | info-am:
|
---|
313 |
|
---|
314 | install-data-am:
|
---|
315 |
|
---|
316 | install-exec-am:
|
---|
317 |
|
---|
318 | install-info: install-info-am
|
---|
319 |
|
---|
320 | install-man:
|
---|
321 |
|
---|
322 | installcheck-am:
|
---|
323 |
|
---|
324 | maintainer-clean: maintainer-clean-am
|
---|
325 |
|
---|
326 | maintainer-clean-am: distclean-am maintainer-clean-generic
|
---|
327 |
|
---|
328 | mostlyclean: mostlyclean-am
|
---|
329 |
|
---|
330 | mostlyclean-am: mostlyclean-generic
|
---|
331 |
|
---|
332 | pdf: pdf-am
|
---|
333 |
|
---|
334 | pdf-am:
|
---|
335 |
|
---|
336 | ps: ps-am
|
---|
337 |
|
---|
338 | ps-am:
|
---|
339 |
|
---|
340 | uninstall-am: uninstall-info-am
|
---|
341 |
|
---|
342 | .PHONY: all all-am check check-am clean clean-generic distclean \
|
---|
343 | distclean-generic distdir dvi dvi-am info info-am install \
|
---|
344 | install-am install-data install-data-am install-exec \
|
---|
345 | install-exec-am install-info install-info-am install-man \
|
---|
346 | install-strip installcheck installcheck-am installdirs \
|
---|
347 | maintainer-clean maintainer-clean-generic mostlyclean \
|
---|
348 | mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
|
---|
349 | uninstall-info-am
|
---|
350 |
|
---|
351 |
|
---|
352 | test: test-table-opts
|
---|
353 | test-table-opts: $(alltests)
|
---|
354 |
|
---|
355 | test-opt-r%.c: $(srcdir)/scanner.l
|
---|
356 | $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --reentrant $* -o $@ $<
|
---|
357 |
|
---|
358 | test-opt-nr%.c: $(srcdir)/scanner.l
|
---|
359 | $(FLEX) -L -P $(subst -,_,$(basename $(@F))) $* -o $@ $<
|
---|
360 |
|
---|
361 | test-ser-r%.c: $(srcdir)/scanner.l
|
---|
362 | $(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ser-r$*.tables" $* -o $@ $<
|
---|
363 |
|
---|
364 | test-ser-nr%.c: $(srcdir)/scanner.l
|
---|
365 | $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ser-nr$*.tables" $* -o $@ $<
|
---|
366 |
|
---|
367 | test-ver-r%.c: $(srcdir)/scanner.l
|
---|
368 | $(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ver-r$*.tables" --tables-verify $* -o $@ $<
|
---|
369 |
|
---|
370 | test-ver-nr%.c: $(srcdir)/scanner.l
|
---|
371 | $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ver-nr$*.tables" --tables-verify $* -o $@ $<
|
---|
372 |
|
---|
373 | test-opt%$(EXEEXT): test-opt%.o
|
---|
374 | $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
|
---|
375 |
|
---|
376 | test-ser%$(EXEEXT): test-ser%.o
|
---|
377 | $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
|
---|
378 |
|
---|
379 | test-ver%$(EXEEXT): test-ver%.o
|
---|
380 | $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
|
---|
381 |
|
---|
382 | test-opt: $(optexe)
|
---|
383 | for t in $(optexe) ; do \
|
---|
384 | ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
|
---|
385 | || { echo $t FAILED ; exit 1 ; } ; \
|
---|
386 | done
|
---|
387 |
|
---|
388 | test-ver: $(verexe)
|
---|
389 | for t in $(verexe) ; do \
|
---|
390 | ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
|
---|
391 | || { echo $t FAILED ; exit 1 ; } ; \
|
---|
392 | done
|
---|
393 |
|
---|
394 | test-ser: $(serexe)
|
---|
395 | for t in $(serexe) ; do \
|
---|
396 | ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
|
---|
397 | || { echo $t FAILED ; exit 1 ; } ; \
|
---|
398 | done
|
---|
399 |
|
---|
400 | test-mul: $(serexe)
|
---|
401 | $(RM) all-ser.tables
|
---|
402 | cat $(sertables) > all-ser.tables
|
---|
403 | for t in $(serexe) ; do \
|
---|
404 | ./$$t all-ser.tables < $(srcdir)/test.input || { echo $$t FAILED; exit 1; } ; \
|
---|
405 | done
|
---|
406 |
|
---|
407 | .c.o:
|
---|
408 | $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
|
---|
409 |
|
---|
410 | .PHONY: test-table-opts test test-opt test-ser test-ver test-mul
|
---|
411 | .SECONDARY: $(allobj) $(allsrc)
|
---|
412 | # Tell versions [3.59,3.63) of GNU make to not export all variables.
|
---|
413 | # Otherwise a system limit (for SysV at least) may be exceeded.
|
---|
414 | .NOEXPORT:
|
---|