1 # Makefile.in generated by automake 1.9.6 from Makefile.am.
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
5 # 2003, 2004, 2005 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.
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
17 # This file is part of flex.
19 # Redistribution and use in source and binary forms, with or without
20 # modification, are permitted provided that the following conditions
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.
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.
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
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 # ------------------------------------------------
47 top_srcdir = @top_srcdir@
49 pkgdatadir = $(datadir)/@PACKAGE@
50 pkglibdir = $(libdir)/@PACKAGE@
51 pkgincludedir = $(includedir)/@PACKAGE@
53 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
55 install_sh_DATA = $(install_sh) -c -m 644
56 install_sh_PROGRAM = $(install_sh) -c
57 install_sh_SCRIPT = $(install_sh) -c
58 INSTALL_HEADER = $(INSTALL_DATA)
59 transform = $(program_transform_name)
66 build_triplet = @build@
68 subdir = tests/test-table-opts
69 DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
70 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
71 am__aclocal_m4_deps = $(top_srcdir)/m4/gettext.m4 \
72 $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/lib-ld.m4 \
73 $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \
74 $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \
75 $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/configure.in
76 am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
78 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
79 CONFIG_HEADER = $(top_builddir)/config.h
83 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
86 AMDEP_FALSE = @AMDEP_FALSE@
87 AMDEP_TRUE = @AMDEP_TRUE@
90 AUTOHEADER = @AUTOHEADER@
95 CCDEPMODE = @CCDEPMODE@
100 CXXDEPMODE = @CXXDEPMODE@
101 CXXFLAGS = @CXXFLAGS@
102 CYGPATH_W = @CYGPATH_W@
111 HELP2MAN = @HELP2MAN@
113 INSTALL_DATA = @INSTALL_DATA@
114 INSTALL_PROGRAM = @INSTALL_PROGRAM@
115 INSTALL_SCRIPT = @INSTALL_SCRIPT@
116 INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
117 INTLLIBS = @INTLLIBS@
121 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
122 LIBICONV = @LIBICONV@
127 LTLIBICONV = @LTLIBICONV@
128 LTLIBINTL = @LTLIBINTL@
129 LTLIBOBJS = @LTLIBOBJS@
131 MAKEINFO = @MAKEINFO@
132 MKINSTALLDIRS = @MKINSTALLDIRS@
134 MSGMERGE = @MSGMERGE@
137 PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
138 PACKAGE_NAME = @PACKAGE_NAME@
139 PACKAGE_STRING = @PACKAGE_STRING@
140 PACKAGE_TARNAME = @PACKAGE_TARNAME@
141 PACKAGE_VERSION = @PACKAGE_VERSION@
142 PATH_SEPARATOR = @PATH_SEPARATOR@
145 SET_MAKE = @SET_MAKE@
150 XGETTEXT = @XGETTEXT@
152 ac_ct_CC = @ac_ct_CC@
153 ac_ct_CXX = @ac_ct_CXX@
154 ac_ct_RANLIB = @ac_ct_RANLIB@
155 ac_ct_STRIP = @ac_ct_STRIP@
156 am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
157 am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
158 am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
159 am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
160 am__include = @am__include@
161 am__leading_dot = @am__leading_dot@
162 am__quote = @am__quote@
164 am__untar = @am__untar@
167 build_alias = @build_alias@
168 build_cpu = @build_cpu@
169 build_os = @build_os@
170 build_vendor = @build_vendor@
172 exec_prefix = @exec_prefix@
174 host_alias = @host_alias@
175 host_cpu = @host_cpu@
177 host_vendor = @host_vendor@
178 includedir = @includedir@
180 install_sh = @install_sh@
182 libexecdir = @libexecdir@
183 localstatedir = @localstatedir@
186 oldincludedir = @oldincludedir@
188 program_transform_name = @program_transform_name@
190 sharedstatedir = @sharedstatedir@
191 sysconfdir = @sysconfdir@
192 target_alias = @target_alias@
193 FLEX = $(top_builddir)/flex
194 testname := test-table-opts
195 allopts := -Ca -Ce -Cf -CF -Cm -Cem -Cae -Caef -CaeF -Cam -Caem
197 # the test names themselves
198 opttests := $(foreach opt,$(allopts), test-opt-nr$(opt) test-opt-r$(opt))
199 sertests := $(foreach opt,$(allopts), test-ser-nr$(opt) test-ser-r$(opt))
200 vertests := $(foreach opt,$(allopts), test-ver-nr$(opt) test-ver-r$(opt))
201 alltests := $(opttests) $(vertests) $(sertests) test-mul
203 # the executables to build
204 optexe := $(addsuffix $(EXEEXT),$(opttests))
205 verexe := $(addsuffix $(EXEEXT),$(vertests))
206 serexe := $(addsuffix $(EXEEXT),$(sertests))
207 allexe := $(optexe) $(verexe) $(serexe)
210 optsrc := $(addsuffix .c,$(opttests))
211 versrc := $(addsuffix .c,$(vertests))
212 sersrc := $(addsuffix .c,$(sertests))
213 allsrc := $(optsrc) $(versrc) $(sersrc)
216 optobj := $(addsuffix .o,$(opttests))
217 verobj := $(addsuffix .o,$(vertests))
218 serobj := $(addsuffix .o,$(sertests))
219 allobj := $(optobj) $(verobj) $(serobj)
222 sertables := $(addsuffix .tables,$(sertests))
223 alltables := $(addsuffix .tables,$(alltests))
224 EXTRA_DIST = scanner.l test.input
225 CLEANFILES = scanner.c OUTPUT $(allobj) $(allsrc) $(alltables) \
226 all-ser.tables $(allexe)
228 AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir)
232 $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps)
234 case '$(am__configure_deps)' in \
236 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
241 echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits tests/test-table-opts/Makefile'; \
242 cd $(top_srcdir) && \
243 $(AUTOMAKE) --gnits tests/test-table-opts/Makefile
245 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
248 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
250 echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
251 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
254 $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
255 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
257 $(top_srcdir)/configure: $(am__configure_deps)
258 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
259 $(ACLOCAL_M4): $(am__aclocal_m4_deps)
260 cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
269 distdir: $(DISTFILES)
270 @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
271 topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
272 list='$(DISTFILES)'; for file in $$list; do \
274 $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
275 $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
277 if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
278 dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
279 if test "$$dir" != "$$file" && test "$$dir" != "."; then \
281 $(mkdir_p) "$(distdir)$$dir"; \
285 if test -d $$d/$$file; then \
286 if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
287 cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
289 cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
291 test -f $(distdir)/$$file \
292 || cp -p $$d/$$file $(distdir)/$$file \
301 install-exec: install-exec-am
302 install-data: install-data-am
303 uninstall: uninstall-am
306 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
308 installcheck: installcheck-am
310 $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \
311 install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \
312 `test -z '$(STRIP)' || \
313 echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install
317 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
320 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
322 maintainer-clean-generic:
323 @echo "This command is intended for maintainers to use"
324 @echo "it deletes files that may require special tools to rebuild."
327 clean-am: clean-generic mostlyclean-am
329 distclean: distclean-am
331 distclean-am: clean-am distclean-generic
347 install-info: install-info-am
353 maintainer-clean: maintainer-clean-am
355 maintainer-clean-am: distclean-am maintainer-clean-generic
357 mostlyclean: mostlyclean-am
359 mostlyclean-am: mostlyclean-generic
369 uninstall-am: uninstall-info-am
371 .PHONY: all all-am check check-am clean clean-generic distclean \
372 distclean-generic distdir dvi dvi-am html html-am info info-am \
373 install install-am install-data install-data-am install-exec \
374 install-exec-am install-info install-info-am install-man \
375 install-strip installcheck installcheck-am installdirs \
376 maintainer-clean maintainer-clean-generic mostlyclean \
377 mostlyclean-generic pdf pdf-am ps ps-am uninstall uninstall-am \
381 test: test-opt test-ser test-ver test-mul
383 test-opt-r%.c: $(srcdir)/scanner.l
384 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --reentrant $* -o $@ $<
386 test-opt-nr%.c: $(srcdir)/scanner.l
387 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) $* -o $@ $<
389 test-ser-r%.c: $(srcdir)/scanner.l
390 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ser-r$*.tables" $* -o $@ $<
392 test-ser-nr%.c: $(srcdir)/scanner.l
393 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ser-nr$*.tables" $* -o $@ $<
395 test-ver-r%.c: $(srcdir)/scanner.l
396 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ver-r$*.tables" --tables-verify $* -o $@ $<
398 test-ver-nr%.c: $(srcdir)/scanner.l
399 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ver-nr$*.tables" --tables-verify $* -o $@ $<
401 test-opt%$(EXEEXT): test-opt%.o
402 $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
404 test-ser%$(EXEEXT): test-ser%.o
405 $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
407 test-ver%$(EXEEXT): test-ver%.o
408 $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
411 for t in $(optexe) ; do \
412 ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
413 || { echo $t FAILED ; exit 1 ; } ; \
417 for t in $(verexe) ; do \
418 ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
419 || { echo $t FAILED ; exit 1 ; } ; \
423 for t in $(serexe) ; do \
424 ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
425 || { echo $t FAILED ; exit 1 ; } ; \
430 cat $(sertables) > all-ser.tables
431 for t in $(serexe) ; do \
432 ./$$t all-ser.tables < $(srcdir)/test.input || { echo $$t FAILED; exit 1; } ; \
435 test-opt-nr-%.o: test-opt-nr-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
436 test-ser-nr-%.o: test-ser-nr-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_HAS_TABLES_EXTERNAL $(CFLAGS) $<
437 test-ver-nr-%.o: test-ver-nr-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_HAS_TABLES_EXTERNAL $(CFLAGS) $<
439 test-opt-r-%.o: test-opt-r-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_IS_REENTRANT $(CFLAGS) $<
440 test-ser-r-%.o: test-ser-r-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_HAS_TABLES_EXTERNAL -DTEST_IS_REENTRANT $(CFLAGS) $<
441 test-ver-r-%.o: test-ver-r-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_HAS_TABLES_EXTERNAL -DTEST_IS_REENTRANT $(CFLAGS) $<
443 .PHONY: test test-opt test-ser test-ver test-mul
444 .SECONDARY: $(allobj) $(allsrc)
445 # Tell versions [3.59,3.63) of GNU make to not export all variables.
446 # Otherwise a system limit (for SysV at least) may be exceeded.