1 # Makefile.in generated by automake 1.7.5 from Makefile.am.
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.
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 # ------------------------------------------------
48 top_srcdir
= @top_srcdir@
50 pkgdatadir
= $(datadir)/@PACKAGE@
51 pkglibdir
= $(libdir)/@PACKAGE@
52 pkgincludedir
= $(includedir)/@PACKAGE@
55 am__cd
= CDPATH
="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
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
)
70 AMDEP_FALSE
= @AMDEP_FALSE@
71 AMDEP_TRUE
= @AMDEP_TRUE@
74 AUTOHEADER
= @AUTOHEADER@
79 CCDEPMODE
= @CCDEPMODE@
84 CXXDEPMODE
= @CXXDEPMODE@
86 CYGPATH_W
= @CYGPATH_W@
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@
105 LEX_OUTPUT_ROOT
= @LEX_OUTPUT_ROOT@
106 LIBICONV
= @LIBICONV@
111 LTLIBICONV
= @LTLIBICONV@
112 LTLIBINTL
= @LTLIBINTL@
113 LTLIBOBJS
= @LTLIBOBJS@
115 MAKEINFO
= @MAKEINFO@
116 MKINSTALLDIRS
= @MKINSTALLDIRS@
118 MSGMERGE
= @MSGMERGE@
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@
129 SET_MAKE
= @SET_MAKE@
134 XGETTEXT
= @XGETTEXT@
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@
149 build_alias
= @build_alias@
150 build_cpu
= @build_cpu@
151 build_os
= @build_os@
152 build_vendor
= @build_vendor@
154 exec_prefix = @
exec_prefix@
156 host_alias
= @host_alias@
157 host_cpu
= @host_cpu@
159 host_vendor
= @host_vendor@
160 includedir = @
includedir@
162 install_sh
= @install_sh@
164 libexecdir
= @libexecdir@
165 localstatedir
= @localstatedir@
167 oldincludedir = @
oldincludedir@
169 program_transform_name
= @program_transform_name@
171 sharedstatedir
= @sharedstatedir@
172 sysconfdir
= @sysconfdir@
173 target_alias
= @target_alias@
175 FLEX
= $(top_builddir
)/flex
177 testname
:= test-table-opts
178 allopts
:= -Ca
-Ce
-Cf
-CF
-Cm
-Cem
-Cae
-Caef
-CaeF
-Cam
-Caem
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
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
)
193 optsrc
:= $(addsuffix .c
,$(opttests
))
194 versrc
:= $(addsuffix .c
,$(vertests
))
195 sersrc
:= $(addsuffix .c
,$(sertests
))
196 allsrc
:= $(optsrc
) $(versrc
) $(sersrc
)
199 optobj
:= $(addsuffix .o
,$(opttests
))
200 verobj
:= $(addsuffix .o
,$(vertests
))
201 serobj
:= $(addsuffix .o
,$(sertests
))
202 allobj
:= $(optobj
) $(verobj
) $(serobj
)
205 sertables
:= $(addsuffix .tables
,$(sertests
))
206 alltables
:= $(addsuffix .tables
,$(alltests
))
208 EXTRA_DIST
= scanner.l
test.input
209 CLEANFILES
= scanner.c OUTPUT test-
*.o test-
*.c test-
*.tables \
210 all-ser.tables core
$(alltests
)
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
219 DIST_COMMON
= Makefile.am Makefile.in
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
)
236 DISTFILES
= $(DIST_COMMON
) $(DIST_SOURCES
) $(TEXINFOS
) $(EXTRA_DIST
)
239 distdir
= $(top_distdir
)/$(PACKAGE
)-$(VERSION
)
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 \
246 $(srcdir)/*) file
=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
247 $(top_srcdir
)/*) file
=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
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 \
253 $(mkinstalldirs
) "$(distdir)$$dir"; \
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; \
261 cp
-pR
$$d/$$file $(distdir
)$$dir || exit
1; \
263 test -f
$(distdir
)/$$file \
264 || cp
-p
$$d/$$file $(distdir
)/$$file \
274 install-exec
: install-exec-am
275 install-data
: install-data-am
276 uninstall: uninstall-am
279 @
$(MAKE
) $(AM_MAKEFLAGS
) install-exec-am install-data-am
281 installcheck: installcheck-am
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
290 -test -z
"$(CLEANFILES)" ||
rm -f
$(CLEANFILES
)
293 -rm -f Makefile
$(CONFIG_CLEAN_FILES
)
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."
301 clean-am
: clean-generic mostlyclean-am
303 distclean: distclean-am
305 distclean-am
: clean-am distclean-generic
319 install-info
: install-info-am
325 maintainer-clean
: maintainer-clean-am
327 maintainer-clean-am
: distclean-am maintainer-clean-generic
329 mostlyclean: mostlyclean-am
331 mostlyclean-am
: mostlyclean-generic
341 uninstall-am
: uninstall-info-am
343 .PHONY
: all all-am
check check-am
clean clean-generic
distclean \
344 distclean-generic distdir
dvi dvi-am
info info-am
install \
345 install-am install-data install-data-am install-exec \
346 install-exec-am install-info install-info-am install-man \
347 install-strip
installcheck installcheck-am
installdirs \
348 maintainer-clean maintainer-clean-generic
mostlyclean \
349 mostlyclean-generic pdf pdf-am ps ps-am
uninstall uninstall-am \
353 test: test-table-opts
354 test-table-opts
: $(alltests
)
356 test-opt-r
%.c
: $(srcdir)/scanner.l
357 $(FLEX
) -L
-P
$(subst -,_
,$(basename $(@F
))) --reentrant
$* -o
$@
$<
359 test-opt-nr
%.c
: $(srcdir)/scanner.l
360 $(FLEX
) -L
-P
$(subst -,_
,$(basename $(@F
))) $* -o
$@
$<
362 test-ser-r
%.c
: $(srcdir)/scanner.l
363 $(FLEX
) -L
-P
$(subst -,_
,$(basename $(@F
))) -R
--tables-file
="test-ser-r$*.tables" $* -o
$@
$<
365 test-ser-nr
%.c
: $(srcdir)/scanner.l
366 $(FLEX
) -L
-P
$(subst -,_
,$(basename $(@F
))) --tables-file
="test-ser-nr$*.tables" $* -o
$@
$<
368 test-ver-r
%.c
: $(srcdir)/scanner.l
369 $(FLEX
) -L
-P
$(subst -,_
,$(basename $(@F
))) -R
--tables-file
="test-ver-r$*.tables" --tables-verify
$* -o
$@
$<
371 test-ver-nr
%.c
: $(srcdir)/scanner.l
372 $(FLEX
) -L
-P
$(subst -,_
,$(basename $(@F
))) --tables-file
="test-ver-nr$*.tables" --tables-verify
$* -o
$@
$<
374 test-opt
%$(EXEEXT
): test-opt
%.o
375 $(CC
) -o
$@
$(LDFLAGS
) $< $(LOADLIBES
)
377 test-ser
%$(EXEEXT
): test-ser
%.o
378 $(CC
) -o
$@
$(LDFLAGS
) $< $(LOADLIBES
)
380 test-ver
%$(EXEEXT
): test-ver
%.o
381 $(CC
) -o
$@
$(LDFLAGS
) $< $(LOADLIBES
)
384 for t in
$(optexe
) ; do \
385 .
/$$t `basename $$t $(EXEEXT)`.tables
< $(srcdir)/test.input \
386 ||
{ echo
$t FAILED
; exit
1 ; } ; \
390 for t in
$(verexe
) ; do \
391 .
/$$t `basename $$t $(EXEEXT)`.tables
< $(srcdir)/test.input \
392 ||
{ echo
$t FAILED
; exit
1 ; } ; \
396 for t in
$(serexe
) ; do \
397 .
/$$t `basename $$t $(EXEEXT)`.tables
< $(srcdir)/test.input \
398 ||
{ echo
$t FAILED
; exit
1 ; } ; \
403 cat
$(sertables
) > all-ser.tables
404 for t in
$(serexe
) ; do \
405 .
/$$t all-ser.tables
< $(srcdir)/test.input ||
{ echo
$$t FAILED
; exit
1; } ; \
409 $(CC
) -c
-o
$@
$(AM_CPPFLAGS
) $(CPPFLAGS
) $(CFLAGS
) $<
411 .PHONY
: test-table-opts
test test-opt test-ser test-ver test-mul
412 .SECONDARY
: $(allobj
) $(allsrc
)
413 # Tell versions [3.59,3.63) of GNU make to not export all variables.
414 # Otherwise a system limit (for SysV at least) may be exceeded.