Do not use macro for installation
[profile/ivi/flex.git] / tests / test-table-opts / Makefile.in
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 # ------------------------------------------------
46 srcdir = @srcdir@
47 top_srcdir = @top_srcdir@
48 VPATH = @srcdir@
49 pkgdatadir = $(datadir)/@PACKAGE@
50 pkglibdir = $(libdir)/@PACKAGE@
51 pkgincludedir = $(includedir)/@PACKAGE@
52 top_builddir = ../..
53 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
54 INSTALL = @INSTALL@
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)
60 NORMAL_INSTALL = :
61 PRE_INSTALL = :
62 POST_INSTALL = :
63 NORMAL_UNINSTALL = :
64 PRE_UNINSTALL = :
65 POST_UNINSTALL = :
66 build_triplet = @build@
67 host_triplet = @host@
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) \
77         $(ACLOCAL_M4)
78 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
79 CONFIG_HEADER = $(top_builddir)/config.h
80 CONFIG_CLEAN_FILES =
81 SOURCES =
82 DIST_SOURCES =
83 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
84 ACLOCAL = @ACLOCAL@
85 ALLOCA = @ALLOCA@
86 AMDEP_FALSE = @AMDEP_FALSE@
87 AMDEP_TRUE = @AMDEP_TRUE@
88 AMTAR = @AMTAR@
89 AUTOCONF = @AUTOCONF@
90 AUTOHEADER = @AUTOHEADER@
91 AUTOMAKE = @AUTOMAKE@
92 AWK = @AWK@
93 BISON = @BISON@
94 CC = @CC@
95 CCDEPMODE = @CCDEPMODE@
96 CFLAGS = @CFLAGS@
97 CPP = @CPP@
98 CPPFLAGS = @CPPFLAGS@
99 CXX = @CXX@
100 CXXDEPMODE = @CXXDEPMODE@
101 CXXFLAGS = @CXXFLAGS@
102 CYGPATH_W = @CYGPATH_W@
103 DEFS = @DEFS@
104 DEPDIR = @DEPDIR@
105 ECHO_C = @ECHO_C@
106 ECHO_N = @ECHO_N@
107 ECHO_T = @ECHO_T@
108 EGREP = @EGREP@
109 EXEEXT = @EXEEXT@
110 GMSGFMT = @GMSGFMT@
111 HELP2MAN = @HELP2MAN@
112 INDENT = @INDENT@
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@
118 LDFLAGS = @LDFLAGS@
119 LEX = @LEX@
120 LEXLIB = @LEXLIB@
121 LEX_OUTPUT_ROOT = @LEX_OUTPUT_ROOT@
122 LIBICONV = @LIBICONV@
123 LIBINTL = @LIBINTL@
124 LIBOBJS = @LIBOBJS@
125 LIBS = @LIBS@
126 LN_S = @LN_S@
127 LTLIBICONV = @LTLIBICONV@
128 LTLIBINTL = @LTLIBINTL@
129 LTLIBOBJS = @LTLIBOBJS@
130 M4 = @M4@
131 MAKEINFO = @MAKEINFO@
132 MKINSTALLDIRS = @MKINSTALLDIRS@
133 MSGFMT = @MSGFMT@
134 MSGMERGE = @MSGMERGE@
135 OBJEXT = @OBJEXT@
136 PACKAGE = @PACKAGE@
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@
143 POSUB = @POSUB@
144 RANLIB = @RANLIB@
145 SET_MAKE = @SET_MAKE@
146 SHELL = @SHELL@
147 STRIP = @STRIP@
148 USE_NLS = @USE_NLS@
149 VERSION = @VERSION@
150 XGETTEXT = @XGETTEXT@
151 YACC = @YACC@
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@
163 am__tar = @am__tar@
164 am__untar = @am__untar@
165 bindir = @bindir@
166 build = @build@
167 build_alias = @build_alias@
168 build_cpu = @build_cpu@
169 build_os = @build_os@
170 build_vendor = @build_vendor@
171 datadir = @datadir@
172 exec_prefix = @exec_prefix@
173 host = @host@
174 host_alias = @host_alias@
175 host_cpu = @host_cpu@
176 host_os = @host_os@
177 host_vendor = @host_vendor@
178 includedir = @includedir@
179 infodir = @infodir@
180 install_sh = @install_sh@
181 libdir = @libdir@
182 libexecdir = @libexecdir@
183 localstatedir = @localstatedir@
184 mandir = @mandir@
185 mkdir_p = @mkdir_p@
186 oldincludedir = @oldincludedir@
187 prefix = @prefix@
188 program_transform_name = @program_transform_name@
189 sbindir = @sbindir@
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
196
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
202
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)
208
209 # the .c files
210 optsrc := $(addsuffix .c,$(opttests))
211 versrc := $(addsuffix .c,$(vertests))
212 sersrc := $(addsuffix .c,$(sertests))
213 allsrc := $(optsrc) $(versrc) $(sersrc)
214
215 # the .o files
216 optobj := $(addsuffix .o,$(opttests))
217 verobj := $(addsuffix .o,$(vertests))
218 serobj := $(addsuffix .o,$(sertests))
219 allobj := $(optobj) $(verobj) $(serobj)
220
221 # the .tables files
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)
227
228 AM_CPPFLAGS = -I$(srcdir) -I$(top_srcdir) -I$(top_builddir)
229 all: 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
245 Makefile: $(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
261 uninstall-info-am:
262 tags: TAGS
263 TAGS:
264
265 ctags: CTAGS
266 CTAGS:
267
268
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 \
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
296 check-am: all-am
297 check: check-am
298 all-am: Makefile
299 installdirs:
300 install: install-am
301 install-exec: install-exec-am
302 install-data: install-data-am
303 uninstall: uninstall-am
304
305 install-am: all-am
306         @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
307
308 installcheck: installcheck-am
309 install-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
314 mostlyclean-generic:
315
316 clean-generic:
317         -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
318
319 distclean-generic:
320         -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
321
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."
325 clean: clean-am
326
327 clean-am: clean-generic mostlyclean-am
328
329 distclean: distclean-am
330         -rm -f Makefile
331 distclean-am: clean-am distclean-generic
332
333 dvi: dvi-am
334
335 dvi-am:
336
337 html: html-am
338
339 info: info-am
340
341 info-am:
342
343 install-data-am:
344
345 install-exec-am:
346
347 install-info: install-info-am
348
349 install-man:
350
351 installcheck-am:
352
353 maintainer-clean: maintainer-clean-am
354         -rm -f Makefile
355 maintainer-clean-am: distclean-am maintainer-clean-generic
356
357 mostlyclean: mostlyclean-am
358
359 mostlyclean-am: mostlyclean-generic
360
361 pdf: pdf-am
362
363 pdf-am:
364
365 ps: ps-am
366
367 ps-am:
368
369 uninstall-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
381 test: test-opt test-ser test-ver test-mul
382
383 test-opt-r%.c: $(srcdir)/scanner.l
384         $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --reentrant $*  -o $@ $<
385
386 test-opt-nr%.c: $(srcdir)/scanner.l
387         $(FLEX) -L -P $(subst -,_,$(basename $(@F))) $* -o $@ $<
388
389 test-ser-r%.c: $(srcdir)/scanner.l
390         $(FLEX) -L -P $(subst -,_,$(basename $(@F))) -R --tables-file="test-ser-r$*.tables" $*  -o $@ $<
391
392 test-ser-nr%.c: $(srcdir)/scanner.l
393         $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ser-nr$*.tables"  $* -o $@ $<
394
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 $@ $<
397
398 test-ver-nr%.c: $(srcdir)/scanner.l
399         $(FLEX) -L -P $(subst -,_,$(basename $(@F))) --tables-file="test-ver-nr$*.tables" --tables-verify $* -o $@ $<
400
401 test-opt%$(EXEEXT): test-opt%.o
402         $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
403
404 test-ser%$(EXEEXT): test-ser%.o
405         $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
406
407 test-ver%$(EXEEXT): test-ver%.o
408         $(CC) -o $@ $(LDFLAGS) $< $(LOADLIBES)
409
410 test-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
416 test-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
422 test-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
428 test-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
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) $<
438
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) $<
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: