source: trunk/essentials/sys-devel/flex/tests/test-table-opts/Makefile.in

Last change on this file was 3031, checked in by bird, 18 years ago

flex 2.5.33.

File size: 11.7 KB
Line 
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
47srcdir = @srcdir@
48top_srcdir = @top_srcdir@
49VPATH = @srcdir@
50pkgdatadir = $(datadir)/@PACKAGE@
51pkglibdir = $(libdir)/@PACKAGE@
52pkgincludedir = $(includedir)/@PACKAGE@
53top_builddir = ../..
54
55am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
56INSTALL = @INSTALL@
57install_sh_DATA = $(install_sh) -c -m 644
58install_sh_PROGRAM = $(install_sh) -c
59install_sh_SCRIPT = $(install_sh) -c
60INSTALL_HEADER = $(INSTALL_DATA)
61transform = $(program_transform_name)
62NORMAL_INSTALL = :
63PRE_INSTALL = :
64POST_INSTALL = :
65NORMAL_UNINSTALL = :
66PRE_UNINSTALL = :
67POST_UNINSTALL = :
68host_triplet = @host@
69ACLOCAL = @ACLOCAL@
70AMDEP_FALSE = @AMDEP_FALSE@
71AMDEP_TRUE = @AMDEP_TRUE@
72AMTAR = @AMTAR@
73AUTOCONF = @AUTOCONF@
74AUTOHEADER = @AUTOHEADER@
75AUTOMAKE = @AUTOMAKE@
76AWK = @AWK@
77BISON = @BISON@
78CC = @CC@
79CCDEPMODE = @CCDEPMODE@
80CFLAGS = @CFLAGS@
81CPP = @CPP@
82CPPFLAGS = @CPPFLAGS@
83CXX = @CXX@
84CXXDEPMODE = @CXXDEPMODE@
85CXXFLAGS = @CXXFLAGS@
86CYGPATH_W = @CYGPATH_W@
87DEFS = @DEFS@
88DEPDIR = @DEPDIR@
89ECHO_C = @ECHO_C@
90ECHO_N = @ECHO_N@
91ECHO_T = @ECHO_T@
92EGREP = @EGREP@
93EXEEXT = @EXEEXT@
94GMSGFMT = @GMSGFMT@
95HELP2MAN = @HELP2MAN@
96INDENT = @INDENT@
97INSTALL_DATA = @INSTALL_DATA@
98INSTALL_PROGRAM = @INSTALL_PROGRAM@
99INSTALL_SCRIPT = @INSTALL_SCRIPT@
100INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
101INTLLIBS = @INTLLIBS@
102LDFLAGS = @LDFLAGS@
103LEX = @LEX@
104LEXLIB = @LEXLIB@
105LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
106LIBICONV = @LIBICONV@
107LIBINTL = @LIBINTL@
108LIBOBJS = @LIBOBJS@
109LIBS = @LIBS@
110LN_S = @LN_S@
111LTLIBICONV = @LTLIBICONV@
112LTLIBINTL = @LTLIBINTL@
113LTLIBOBJS = @LTLIBOBJS@
114M4 = @M4@
115MAKEINFO = @MAKEINFO@
116MKINSTALLDIRS = @MKINSTALLDIRS@
117MSGFMT = @MSGFMT@
118MSGMERGE = @MSGMERGE@
119OBJEXT = @OBJEXT@
120PACKAGE = @PACKAGE@
121PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
122PACKAGE_NAME = @PACKAGE_NAME@
123PACKAGE_STRING = @PACKAGE_STRING@
124PACKAGE_TARNAME = @PACKAGE_TARNAME@
125PACKAGE_VERSION = @PACKAGE_VERSION@
126PATH_SEPARATOR = @PATH_SEPARATOR@
127POSUB = @POSUB@
128RANLIB = @RANLIB@
129SET_MAKE = @SET_MAKE@
130SHELL = @SHELL@
131STRIP = @STRIP@
132USE_NLS = @USE_NLS@
133VERSION = @VERSION@
134XGETTEXT = @XGETTEXT@
135YACC = @YACC@
136ac_ct_CC = @ac_ct_CC@
137ac_ct_CXX = @ac_ct_CXX@
138ac_ct_RANLIB = @ac_ct_RANLIB@
139ac_ct_STRIP = @ac_ct_STRIP@
140am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
141am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
142am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
143am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
144am__include = @am__include@
145am__leading_dot = @am__leading_dot@
146am__quote = @am__quote@
147bindir = @bindir@
148build = @build@
149build_alias = @build_alias@
150build_cpu = @build_cpu@
151build_os = @build_os@
152build_vendor = @build_vendor@
153datadir = @datadir@
154exec_prefix = @exec_prefix@
155host = @host@
156host_alias = @host_alias@
157host_cpu = @host_cpu@
158host_os = @host_os@
159host_vendor = @host_vendor@
160includedir = @includedir@
161infodir = @infodir@
162install_sh = @install_sh@
163libdir = @libdir@
164libexecdir = @libexecdir@
165localstatedir = @localstatedir@
166mandir = @mandir@
167oldincludedir = @oldincludedir@
168prefix = @prefix@
169program_transform_name = @program_transform_name@
170sbindir = @sbindir@
171sharedstatedir = @sharedstatedir@
172sysconfdir = @sysconfdir@
173target_alias = @target_alias@
174
175FLEX = $(top_builddir)/flex
176
177testname := test-table-opts
178allopts := -Ca -Ce -Cf -CF -Cm -Cem -Cae -Caef -CaeF -Cam -Caem
179
180# the test names themselves
181opttests := $(foreach opt,$(allopts), test-opt-nr$(opt) test-opt-r$(opt))
182sertests := $(foreach opt,$(allopts), test-ser-nr$(opt) test-ser-r$(opt))
183vertests := $(foreach opt,$(allopts), test-ver-nr$(opt) test-ver-r$(opt))
184alltests := $(opttests) $(vertests) $(sertests) test-mul
185
186# the executables to build
187optexe := $(addsuffix $(EXEEXT),$(opttests))
188verexe := $(addsuffix $(EXEEXT),$(vertests))
189serexe := $(addsuffix $(EXEEXT),$(sertests))
190allexe := $(optexe) $(verexe) $(serexe)
191
192# the .c files
193optsrc := $(addsuffix .c,$(opttests))
194versrc := $(addsuffix .c,$(vertests))
195sersrc := $(addsuffix .c,$(sertests))
196allsrc := $(optsrc) $(versrc) $(sersrc)
197
198# the .o files
199optobj := $(addsuffix .o,$(opttests))
200verobj := $(addsuffix .o,$(vertests))
201serobj := $(addsuffix .o,$(sertests))
202allobj := $(optobj) $(verobj) $(serobj)
203
204# the .tables files
205sertables := $(addsuffix .tables,$(sertests))
206alltables := $(addsuffix .tables,$(alltests))
207
208EXTRA_DIST = scanner.l test.input
209CLEANFILES = scanner.c OUTPUT test-*.o test-*.c test-*.tables \
210 all-ser.tables core $(alltests)
211
212AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir)
213subdir = tests/test-table-opts
214ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
215mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
216CONFIG_HEADER = $(top_builddir)/config.h
217CONFIG_CLEAN_FILES =
218DIST_SOURCES =
219DIST_COMMON = Makefile.am Makefile.in
220all: 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
227Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
228 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
229uninstall-info-am:
230tags: TAGS
231TAGS:
232
233ctags: CTAGS
234CTAGS:
235
236DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
237
238top_distdir = ../..
239distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
240
241distdir: $(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
268check-am: all-am
269check: check-am
270all-am: Makefile
271
272installdirs:
273install: install-am
274install-exec: install-exec-am
275install-data: install-data-am
276uninstall: uninstall-am
277
278install-am: all-am
279 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
280
281installcheck: installcheck-am
282install-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
287mostlyclean-generic:
288
289clean-generic:
290 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
291
292distclean-generic:
293 -rm -f Makefile $(CONFIG_CLEAN_FILES)
294
295maintainer-clean-generic:
296 @echo "This command is intended for maintainers to use"
297 @echo "it deletes files that may require special tools to rebuild."
298clean: clean-am
299
300clean-am: clean-generic mostlyclean-am
301
302distclean: distclean-am
303
304distclean-am: clean-am distclean-generic
305
306dvi: dvi-am
307
308dvi-am:
309
310info: info-am
311
312info-am:
313
314install-data-am:
315
316install-exec-am:
317
318install-info: install-info-am
319
320install-man:
321
322installcheck-am:
323
324maintainer-clean: maintainer-clean-am
325
326maintainer-clean-am: distclean-am maintainer-clean-generic
327
328mostlyclean: mostlyclean-am
329
330mostlyclean-am: mostlyclean-generic
331
332pdf: pdf-am
333
334pdf-am:
335
336ps: ps-am
337
338ps-am:
339
340uninstall-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
352test: test-table-opts
353test-table-opts: $(alltests)
354
355test-opt-r%.c: $(srcdir)/scanner.l
356 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --reentrant $* -o $@ $<
357
358test-opt-nr%.c: $(srcdir)/scanner.l
359 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) $* -o $@ $<
360
361test-ser-r%.c: $(srcdir)/scanner.l
362 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ser-r$*.tables" $* -o $@ $<
363
364test-ser-nr%.c: $(srcdir)/scanner.l
365 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ser-nr$*.tables" $* -o $@ $<
366
367test-ver-r%.c: $(srcdir)/scanner.l
368 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ver-r$*.tables" --tables-verify $* -o $@ $<
369
370test-ver-nr%.c: $(srcdir)/scanner.l
371 $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ver-nr$*.tables" --tables-verify $* -o $@ $<
372
373test-opt%$(EXEEXT): test-opt%.o
374 $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
375
376test-ser%$(EXEEXT): test-ser%.o
377 $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
378
379test-ver%$(EXEEXT): test-ver%.o
380 $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
381
382test-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
388test-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
394test-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
400test-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:
Note: See TracBrowser for help on using the repository browser.