FYI: Reply from HP-UX
[git/dscho.git] / flex-2.5.33 / tests / test-table-opts / Makefile
blobccd28bbc427285fecb54d4a12f9dee5b11c9ba6d
1 # Makefile.in generated by automake 1.7.5 from Makefile.am.
2 # tests/test-table-opts/Makefile. Generated from Makefile.in by configure.
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
13 # PARTICULAR PURPOSE.
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
21 # are met:
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
36 # PURPOSE.
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 srcdir = .
48 top_srcdir = ../..
50 pkgdatadir = $(datadir)/flex
51 pkglibdir = $(libdir)/flex
52 pkgincludedir = $(includedir)/flex
53 top_builddir = ../..
55 am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
56 INSTALL = ../.././install-sh -c
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)
62 NORMAL_INSTALL = :
63 PRE_INSTALL = :
64 POST_INSTALL = :
65 NORMAL_UNINSTALL = :
66 PRE_UNINSTALL = :
67 POST_UNINSTALL = :
68 host_triplet = ia64-hp-hpux11.31
69 ACLOCAL = ${SHELL} /users/tech/rkl/ia64/flex-2.5.33/missing --run aclocal-1.7
70 AMDEP_FALSE = #
71 AMDEP_TRUE =
72 AMTAR = ${SHELL} /users/tech/rkl/ia64/flex-2.5.33/missing --run tar
73 AUTOCONF = ${SHELL} /users/tech/rkl/ia64/flex-2.5.33/missing --run autoconf
74 AUTOHEADER = ${SHELL} /users/tech/rkl/ia64/flex-2.5.33/missing --run autoheader
75 AUTOMAKE = ${SHELL} /users/tech/rkl/ia64/flex-2.5.33/missing --run automake-1.7
76 AWK = gawk
77 BISON = /usr/local/bin/bison
78 CC = cc
79 CCDEPMODE = depmode=none
80 CFLAGS = -O +z -I/usr/local/include -D_INCLUDE_STDC__SOURCE_199901
81 CPP = cc -E
82 CPPFLAGS = -O +z -I/usr/local/include -D_INCLUDE_STDC__SOURCE_199901
83 CXX = aCC -AA
84 CXXDEPMODE = depmode=none
85 CXXFLAGS = -O +z -I/usr/local/include -D_INCLUDE_STDC__SOURCE_199901
86 CYGPATH_W = echo
87 DEFS = -DHAVE_CONFIG_H
88 DEPDIR = .deps
89 ECHO_C = \c
90 ECHO_N =
91 ECHO_T =
92 EGREP = grep -E
93 EXEEXT =
94 GMSGFMT = /usr/local/bin/msgfmt
95 HELP2MAN = help2man
96 INDENT = /usr/local/bin/indent
97 INSTALL_DATA = ${INSTALL} -m 644
98 INSTALL_PROGRAM = ${INSTALL} -s
99 INSTALL_SCRIPT = ${INSTALL} -m 755
100 INSTALL_STRIP_PROGRAM = ${SHELL} $(install_sh) -c -s
101 INTLLIBS = -L/usr/local/lib/hpux32 /usr/local/lib/hpux32/libintl.so /usr/local/lib/hpux32/libiconv.so
102 LDFLAGS = -Wl,+b -Wl,/usr/local/lib/hpux32
103 LEX = flex
104 LEXLIB = -lfl
105 LEX_OUTPUT_ROOT = lex.yy
106 LIBICONV = -L/usr/local/lib/hpux32 /usr/local/lib/hpux32/libiconv.so
107 LIBINTL = -L/usr/local/lib/hpux32 /usr/local/lib/hpux32/libintl.so /usr/local/lib/hpux32/libiconv.so
108 LIBOBJS =
109 LIBS = -lm
110 LN_S = ln -s
111 LTLIBICONV = -L/usr/local/lib/hpux32 -liconv -R/usr/local/lib/hpux32
112 LTLIBINTL = -L/usr/local/lib/hpux32 -lintl -L/usr/local/lib/hpux32 -liconv -R/usr/local/lib/hpux32
113 LTLIBOBJS =
114 M4 = /usr/local/bin/m4
115 MAKEINFO = ${SHELL} /users/tech/rkl/ia64/flex-2.5.33/missing --run makeinfo
116 MKINSTALLDIRS = $(top_builddir)/./mkinstalldirs
117 MSGFMT = /usr/local/bin/msgfmt
118 MSGMERGE = /usr/local/bin/msgmerge
119 OBJEXT = o
120 PACKAGE = flex
121 PACKAGE_BUGREPORT = flex-help@lists.sourceforge.net
122 PACKAGE_NAME = flex
123 PACKAGE_STRING = flex 2.5.33
124 PACKAGE_TARNAME = flex
125 PACKAGE_VERSION = 2.5.33
126 PATH_SEPARATOR = :
127 POSUB = po
128 RANLIB = /bin/true
129 SET_MAKE =
130 SHELL = /bin/sh
131 STRIP =
132 USE_NLS = yes
133 VERSION = 2.5.33
134 XGETTEXT = /usr/local/bin/xgettext
135 YACC = bison -y
136 ac_ct_CC = cc
137 ac_ct_CXX =
138 ac_ct_RANLIB = /bin/true
139 ac_ct_STRIP =
140 am__fastdepCC_FALSE =
141 am__fastdepCC_TRUE = #
142 am__fastdepCXX_FALSE =
143 am__fastdepCXX_TRUE = #
144 am__include = include
145 am__leading_dot = .
146 am__quote =
147 bindir = ${exec_prefix}/bin
148 build = ia64-hp-hpux11.31
149 build_alias =
150 build_cpu = ia64
151 build_os = hpux11.31
152 build_vendor = hp
153 datadir = ${prefix}/share
154 exec_prefix = ${prefix}
155 host = ia64-hp-hpux11.31
156 host_alias =
157 host_cpu = ia64
158 host_os = hpux11.31
159 host_vendor = hp
160 includedir = ${prefix}/include
161 infodir = ${prefix}/info
162 install_sh = /users/tech/rkl/ia64/flex-2.5.33/install-sh
163 libdir = /usr/local/lib/hpux32
164 libexecdir = ${exec_prefix}/libexec
165 localstatedir = ${prefix}/var
166 mandir = ${prefix}/man
167 oldincludedir = /usr/include
168 prefix = /usr/local
169 program_transform_name = s,x,x,
170 sbindir = ${exec_prefix}/sbin
171 sharedstatedir = ${prefix}/com
172 sysconfdir = ${prefix}/etc
173 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)
192 # the .c files
193 optsrc := $(addsuffix .c,$(opttests))
194 versrc := $(addsuffix .c,$(vertests))
195 sersrc := $(addsuffix .c,$(sertests))
196 allsrc := $(optsrc) $(versrc) $(sersrc)
198 # the .o files
199 optobj := $(addsuffix .o,$(opttests))
200 verobj := $(addsuffix .o,$(vertests))
201 serobj := $(addsuffix .o,$(sertests))
202 allobj := $(optobj) $(verobj) $(serobj)
204 # the .tables files
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
217 CONFIG_CLEAN_FILES =
218 DIST_SOURCES =
219 DIST_COMMON = Makefile.am Makefile.in
220 all: all-am
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
227 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
228 cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)
229 uninstall-info-am:
230 tags: TAGS
231 TAGS:
233 ctags: CTAGS
234 CTAGS:
236 DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
238 top_distdir = ../..
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 \
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
268 check-am: all-am
269 check: check-am
270 all-am: Makefile
272 installdirs:
273 install: install-am
274 install-exec: install-exec-am
275 install-data: install-data-am
276 uninstall: uninstall-am
278 install-am: all-am
279 @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
281 installcheck: installcheck-am
282 install-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
287 mostlyclean-generic:
289 clean-generic:
290 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
292 distclean-generic:
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."
298 clean: clean-am
299 -rm -f config.cache
301 clean-am: clean-generic mostlyclean-am
303 distclean: distclean-am
305 distclean-am: clean-am distclean-generic
307 dvi: dvi-am
309 dvi-am:
311 info: info-am
313 info-am:
315 install-data-am:
317 install-exec-am:
319 install-info: install-info-am
321 install-man:
323 installcheck-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
333 pdf: pdf-am
335 pdf-am:
337 ps: ps-am
339 ps-am:
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 \
350 uninstall-info-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)
383 test-opt: $(optexe)
384 for t in $(optexe) ; do \
385 ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
386 || { echo $t FAILED ; exit 1 ; } ; \
387 done
389 test-ver: $(verexe)
390 for t in $(verexe) ; do \
391 ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
392 || { echo $t FAILED ; exit 1 ; } ; \
393 done
395 test-ser: $(serexe)
396 for t in $(serexe) ; do \
397 ./$$t `basename $$t $(EXEEXT)`.tables < $(srcdir)/test.input \
398 || { echo $t FAILED ; exit 1 ; } ; \
399 done
401 test-mul: $(serexe)
402 $(RM) all-ser.tables
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; } ; \
406 done
408 .c.o:
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.
415 .NOEXPORT: