1# Makefile.in generated by automake 1.9.6 from Makefile.am.
2# @configure_input@
3
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.
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# ------------------------------------------------
46srcdir = @srcdir@
47top_srcdir = @top_srcdir@
48VPATH = @srcdir@
49pkgdatadir = $(datadir)/@PACKAGE@
50pkglibdir = $(libdir)/@PACKAGE@
51pkgincludedir = $(includedir)/@PACKAGE@
52top_builddir = ../..
53am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
54INSTALL = @INSTALL@
55install_sh_DATA = $(install_sh) -c -m 644
56install_sh_PROGRAM = $(install_sh) -c
57install_sh_SCRIPT = $(install_sh) -c
58INSTALL_HEADER = $(INSTALL_DATA)
59transform = $(program_transform_name)
60NORMAL_INSTALL = :
61PRE_INSTALL = :
62POST_INSTALL = :
63NORMAL_UNINSTALL = :
64PRE_UNINSTALL = :
65POST_UNINSTALL = :
66build_triplet = @build@
67host_triplet = @host@
68subdir = tests/test-table-opts
69DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in
70ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
71am__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
76am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
77	$(ACLOCAL_M4)
78mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
79CONFIG_HEADER = $(top_builddir)/config.h
80CONFIG_CLEAN_FILES =
81SOURCES =
82DIST_SOURCES =
83DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
84ACLOCAL = @ACLOCAL@
85ALLOCA = @ALLOCA@
86AMDEP_FALSE = @AMDEP_FALSE@
87AMDEP_TRUE = @AMDEP_TRUE@
88AMTAR = @AMTAR@
89AUTOCONF = @AUTOCONF@
90AUTOHEADER = @AUTOHEADER@
91AUTOMAKE = @AUTOMAKE@
92AWK = @AWK@
93BISON = @BISON@
94CC = @CC@
95CCDEPMODE = @CCDEPMODE@
96CFLAGS = @CFLAGS@
97CPP = @CPP@
98CPPFLAGS = @CPPFLAGS@
99CXX = @CXX@
100CXXDEPMODE = @CXXDEPMODE@
101CXXFLAGS = @CXXFLAGS@
102CYGPATH_W = @CYGPATH_W@
103DEFS = @DEFS@
104DEPDIR = @DEPDIR@
105ECHO_C = @ECHO_C@
106ECHO_N = @ECHO_N@
107ECHO_T = @ECHO_T@
108EGREP = @EGREP@
109EXEEXT = @EXEEXT@
110GMSGFMT = @GMSGFMT@
111HELP2MAN = @HELP2MAN@
112INDENT = @INDENT@
113INSTALL_DATA = @INSTALL_DATA@
114INSTALL_PROGRAM = @INSTALL_PROGRAM@
115INSTALL_SCRIPT = @INSTALL_SCRIPT@
116INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
117INTLLIBS = @INTLLIBS@
118LDFLAGS = @LDFLAGS@
119LEX = @LEX@
120LEXLIB = @LEXLIB@
121LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
122LIBICONV = @LIBICONV@
123LIBINTL = @LIBINTL@
124LIBOBJS = @LIBOBJS@
125LIBS = @LIBS@
126LN_S = @LN_S@
127LTLIBICONV = @LTLIBICONV@
128LTLIBINTL = @LTLIBINTL@
129LTLIBOBJS = @LTLIBOBJS@
130M4 = @M4@
131MAKEINFO = @MAKEINFO@
132MKINSTALLDIRS = @MKINSTALLDIRS@
133MSGFMT = @MSGFMT@
134MSGMERGE = @MSGMERGE@
135OBJEXT = @OBJEXT@
136PACKAGE = @PACKAGE@
137PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
138PACKAGE_NAME = @PACKAGE_NAME@
139PACKAGE_STRING = @PACKAGE_STRING@
140PACKAGE_TARNAME = @PACKAGE_TARNAME@
141PACKAGE_VERSION = @PACKAGE_VERSION@
142PATH_SEPARATOR = @PATH_SEPARATOR@
143POSUB = @POSUB@
144RANLIB = @RANLIB@
145SET_MAKE = @SET_MAKE@
146SHELL = @SHELL@
147STRIP = @STRIP@
148USE_NLS = @USE_NLS@
149VERSION = @VERSION@
150XGETTEXT = @XGETTEXT@
151YACC = @YACC@
152ac_ct_CC = @ac_ct_CC@
153ac_ct_CXX = @ac_ct_CXX@
154ac_ct_RANLIB = @ac_ct_RANLIB@
155ac_ct_STRIP = @ac_ct_STRIP@
156am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
157am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
158am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
159am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
160am__include = @am__include@
161am__leading_dot = @am__leading_dot@
162am__quote = @am__quote@
163am__tar = @am__tar@
164am__untar = @am__untar@
165bindir = @bindir@
166build = @build@
167build_alias = @build_alias@
168build_cpu = @build_cpu@
169build_os = @build_os@
170build_vendor = @build_vendor@
171datadir = @datadir@
172exec_prefix = @exec_prefix@
173host = @host@
174host_alias = @host_alias@
175host_cpu = @host_cpu@
176host_os = @host_os@
177host_vendor = @host_vendor@
178includedir = @includedir@
179infodir = @infodir@
180install_sh = @install_sh@
181libdir = @libdir@
182libexecdir = @libexecdir@
183localstatedir = @localstatedir@
184mandir = @mandir@
185mkdir_p = @mkdir_p@
186oldincludedir = @oldincludedir@
187prefix = @prefix@
188program_transform_name = @program_transform_name@
189sbindir = @sbindir@
190sharedstatedir = @sharedstatedir@
191sysconfdir = @sysconfdir@
192target_alias = @target_alias@
193FLEX = $(top_builddir)/flex
194testname := test-table-opts
195allopts := -Ca -Ce -Cf -CF -Cm -Cem -Cae -Caef -CaeF -Cam -Caem
196
197# the test names themselves
198opttests := $(foreach opt,$(allopts), test-opt-nr$(opt) test-opt-r$(opt))
199sertests := $(foreach opt,$(allopts), test-ser-nr$(opt) test-ser-r$(opt))
200vertests := $(foreach opt,$(allopts), test-ver-nr$(opt) test-ver-r$(opt))
201alltests := $(opttests) $(vertests) $(sertests) test-mul
202
203# the executables to build
204optexe := $(addsuffix $(EXEEXT),$(opttests))
205verexe := $(addsuffix $(EXEEXT),$(vertests))
206serexe := $(addsuffix $(EXEEXT),$(sertests))
207allexe := $(optexe) $(verexe) $(serexe)
208
209# the .c files
210optsrc := $(addsuffix .c,$(opttests))
211versrc := $(addsuffix .c,$(vertests))
212sersrc := $(addsuffix .c,$(sertests))
213allsrc := $(optsrc) $(versrc) $(sersrc)
214
215# the .o files
216optobj := $(addsuffix .o,$(opttests))
217verobj := $(addsuffix .o,$(vertests))
218serobj := $(addsuffix .o,$(sertests))
219allobj := $(optobj) $(verobj) $(serobj)
220
221# the .tables files
222sertables := $(addsuffix .tables,$(sertests))
223alltables := $(addsuffix .tables,$(alltests))
224EXTRA_DIST = scanner.l test.input
225CLEANFILES = scanner.c OUTPUT $(allobj) $(allsrc) $(alltables) \
226             all-ser.tables $(allexe)
227
228AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir)
229all: all-am
230
231.SUFFIXES:
232$(srcdir)/Makefile.in:  $(srcdir)/Makefile.am  $(am__configure_deps)
233	@for dep in $?; do \
234	  case '$(am__configure_deps)' in \
235	    *$$dep*) \
236	      cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
237		&& exit 0; \
238	      exit 1;; \
239	  esac; \
240	done; \
241	echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnits  tests/test-table-opts/Makefile'; \
242	cd $(top_srcdir) && \
243	  $(AUTOMAKE) --gnits  tests/test-table-opts/Makefile
244.PRECIOUS: Makefile
245Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
246	@case '$?' in \
247	  *config.status*) \
248	    cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \
249	  *) \
250	    echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \
251	    cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \
252	esac;
253
254$(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES)
255	cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
256
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
261uninstall-info-am:
262tags: TAGS
263TAGS:
264
265ctags: CTAGS
266CTAGS:
267
268
269distdir: $(DISTFILES)
270	@srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
271	topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
272	list='$(DISTFILES)'; for file in $$list; do \
273	  case $$file in \
274	    $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
275	    $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
276	  esac; \
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 \
280	    dir="/$$dir"; \
281	    $(mkdir_p) "$(distdir)$$dir"; \
282	  else \
283	    dir=''; \
284	  fi; \
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; \
288	    fi; \
289	    cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
290	  else \
291	    test -f $(distdir)/$$file \
292	    || cp -p $$d/$$file $(distdir)/$$file \
293	    || exit 1; \
294	  fi; \
295	done
296check-am: all-am
297check: check-am
298all-am: Makefile
299installdirs:
300install: install-am
301install-exec: install-exec-am
302install-data: install-data-am
303uninstall: uninstall-am
304
305install-am: all-am
306	@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
307
308installcheck: installcheck-am
309install-strip:
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
314mostlyclean-generic:
315
316clean-generic:
317	-test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
318
319distclean-generic:
320	-test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
321
322maintainer-clean-generic:
323	@echo "This command is intended for maintainers to use"
324	@echo "it deletes files that may require special tools to rebuild."
325clean: clean-am
326
327clean-am: clean-generic mostlyclean-am
328
329distclean: distclean-am
330	-rm -f Makefile
331distclean-am: clean-am distclean-generic
332
333dvi: dvi-am
334
335dvi-am:
336
337html: html-am
338
339info: info-am
340
341info-am:
342
343install-data-am:
344
345install-exec-am:
346
347install-info: install-info-am
348
349install-man:
350
351installcheck-am:
352
353maintainer-clean: maintainer-clean-am
354	-rm -f Makefile
355maintainer-clean-am: distclean-am maintainer-clean-generic
356
357mostlyclean: mostlyclean-am
358
359mostlyclean-am: mostlyclean-generic
360
361pdf: pdf-am
362
363pdf-am:
364
365ps: ps-am
366
367ps-am:
368
369uninstall-am: uninstall-info-am
370
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 \
378	uninstall-info-am
379
380
381test: test-opt test-ser test-ver test-mul
382
383test-opt-r%.c: $(srcdir)/scanner.l
384	$(FLEX) -L -P $(subst -,_,$(basename $(@F))) --reentrant $*  -o $@ $<
385
386test-opt-nr%.c: $(srcdir)/scanner.l
387	$(FLEX) -L -P $(subst -,_,$(basename $(@F))) $* -o $@ $<
388
389test-ser-r%.c: $(srcdir)/scanner.l
390	$(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ser-r$*.tables" $*  -o $@ $<
391
392test-ser-nr%.c: $(srcdir)/scanner.l
393	$(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ser-nr$*.tables"  $* -o $@ $<
394
395test-ver-r%.c: $(srcdir)/scanner.l
396	$(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ver-r$*.tables" --tables-verify $*  -o $@ $<
397
398test-ver-nr%.c: $(srcdir)/scanner.l
399	$(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ver-nr$*.tables" --tables-verify $* -o $@ $<
400
401test-opt%$(EXEEXT): test-opt%.o
402	$(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
403
404test-ser%$(EXEEXT): test-ser%.o
405	$(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
406
407test-ver%$(EXEEXT): test-ver%.o
408	$(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
409
410test-opt: $(optexe)
411	for t in $(optexe) ; do \
412		./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
413          || { echo $t FAILED ; exit 1 ; } ; \
414	done
415
416test-ver: $(verexe)
417	for t in $(verexe) ; do \
418		./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
419          || { echo $t FAILED ; exit 1 ; } ; \
420	done
421
422test-ser: $(serexe)
423	for t in $(serexe) ; do \
424		./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
425          || { echo $t FAILED ; exit 1 ; } ; \
426	done
427
428test-mul: $(serexe)
429	$(RM) all-ser.tables
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; } ;  \
433	done
434
435test-opt-nr-%.o: test-opt-nr-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS) $<
436test-ser-nr-%.o: test-ser-nr-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_HAS_TABLES_EXTERNAL $(CFLAGS) $<
437test-ver-nr-%.o: test-ver-nr-%.c ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_HAS_TABLES_EXTERNAL $(CFLAGS) $<
438
439test-opt-r-%.o:  test-opt-r-%.c  ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_IS_REENTRANT $(CFLAGS) $<
440test-ser-r-%.o:  test-ser-r-%.c  ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_HAS_TABLES_EXTERNAL -DTEST_IS_REENTRANT $(CFLAGS) $<
441test-ver-r-%.o:  test-ver-r-%.c  ; $(CC) -c -o $@ $(AM_CPPFLAGS) $(CPPFLAGS) -DTEST_HAS_TABLES_EXTERNAL -DTEST_IS_REENTRANT $(CFLAGS) $<
442
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.
447.NOEXPORT:
448