090fdffc034212fe2c5c2dede5b7cc361d465d7b
[reactos.git] / reactos / lib / kjs / jsc / Makefile
1 # Generated automatically from Makefile.in by configure.
2 # Makefile.in generated automatically by automake 1.3 from Makefile.am
3
4 # Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
5 # This Makefile.in is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 #
15 # Automakefile for JavaScript JavaScript compiler.
16 # Copyright (c) 1998 New Generation Software (NGS) Oy
17 #
18 # Author: Markku Rossi <mtr@ngs.fi>
19 #
20
21 #
22 # This library is free software; you can redistribute it and/or
23 # modify it under the terms of the GNU Library General Public
24 # License as published by the Free Software Foundation; either
25 # version 2 of the License, or (at your option) any later version.
26 #
27 # This library is distributed in the hope that it will be useful,
28 # but WITHOUT ANY WARRANTY; without even the implied warranty of
29 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
30 # Library General Public License for more details.
31 #
32 # You should have received a copy of the GNU Library General Public
33 # License along with this library; if not, write to the Free
34 # Software Foundation, Inc., 59 Temple Place - Suite 330, Boston,
35 # MA 02111-1307, USA
36 #
37
38
39 SHELL = /bin/sh
40
41 srcdir = .
42 top_srcdir = ..
43 prefix = /usr/local/js-0.2.5
44 exec_prefix = ${prefix}
45
46 bindir = ${exec_prefix}/bin
47 sbindir = ${exec_prefix}/sbin
48 libexecdir = ${exec_prefix}/libexec
49 datadir = ${prefix}/share
50 sysconfdir = ${prefix}/etc
51 sharedstatedir = ${prefix}/com
52 localstatedir = ${prefix}/var
53 libdir = ${exec_prefix}/lib
54 infodir = ${prefix}/info
55 mandir = ${prefix}/man
56 includedir = ${prefix}/include
57 oldincludedir = /usr/include
58
59 DISTDIR =
60
61 pkgdatadir = $(datadir)/js
62 pkglibdir = $(libdir)/js
63 pkgincludedir = $(includedir)/js
64
65 top_builddir = ..
66
67 ACLOCAL = aclocal
68 AUTOCONF = autoconf
69 AUTOMAKE = automake
70 AUTOHEADER = autoheader
71
72 INSTALL = /usr/bin/install -c
73 INSTALL_PROGRAM = ${INSTALL}
74 INSTALL_DATA = ${INSTALL} -m 644
75 INSTALL_SCRIPT = ${INSTALL_PROGRAM}
76 transform = s,x,x,
77
78 NORMAL_INSTALL = :
79 PRE_INSTALL = :
80 POST_INSTALL = :
81 NORMAL_UNINSTALL = :
82 PRE_UNINSTALL = :
83 POST_UNINSTALL = :
84 host_alias = i686-pc-linux-gnu
85 host_triplet = i686-pc-linux-gnu
86 ACLOCAL_FLAGS_FOR_LIBTOOL =
87 CC = gcc
88 CPP = gcc -E
89 EXTENSIONS = dl_open.lo xjs.lo xmd5.lo md5c.lo
90 EXTENSIONS_LIBS = -ldl
91 INTERPRETER_FEATURES = r_std.lo
92 LD = /usr/bin/ld
93 LIBTOOL = $(SHELL) $(top_builddir)/libtool
94 LN_S = ln -s
95 MAKEINFO = makeinfo
96 NM = /usr/bin/nm -B
97 PACKAGE = js
98 PGCC_BY_PROVENZANO =
99 RANLIB = ranlib
100 U =
101 VERSION = 0.2.5
102 XLC_R_AIX =
103
104 SUBDIRS = tests
105
106 JSCOMPILER = ../src/js
107 JSCOMPILER_FLAGS = -Wpedantic -O2
108
109 JSS = defs.js lexer.js parser.js gram.js namespace.js \
110 streams.js asm.js entry.js
111 JSCS = defs.jsc lexer.jsc parser.jsc gram.jsc namespace.jsc \
112 streams.jsc asm.jsc entry.jsc
113
114 EXTRA_DIST = $(JSS) $(JSCS) bs.js bs.jsc compiler.js compiler.jsc
115
116 SUFFIXES = .jsc .js
117 mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
118 CONFIG_HEADER = ../jsconfig.h
119 CONFIG_CLEAN_FILES =
120 DIST_COMMON = ChangeLog Makefile.am Makefile.in TODO
121
122
123 DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
124
125 TAR = tar
126 GZIP = --best
127 all: all-recursive all-am
128
129 .SUFFIXES:
130 .SUFFIXES: .js .jsc
131 $(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in $(ACLOCAL_M4)
132 cd $(top_srcdir) && $(AUTOMAKE) --gnu --include-deps jsc/Makefile
133
134 Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
135 cd $(top_builddir) \
136 && CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
137
138
139 # This directory's subdirectories are mostly independent; you can cd
140 # into them and run `make' without going through this Makefile.
141 # To change the values of `make' variables: instead of editing Makefiles,
142 # (1) if the variable is set in `config.status', edit `config.status'
143 # (which will cause the Makefiles to be regenerated when you run `make');
144 # (2) otherwise, pass the desired values on the `make' command line.
145
146
147
148 all-recursive install-data-recursive install-exec-recursive \
149 installdirs-recursive install-recursive uninstall-recursive \
150 check-recursive installcheck-recursive info-recursive dvi-recursive:
151 @set fnord $(MAKEFLAGS); amf=$$2; \
152 list='$(SUBDIRS)'; for subdir in $$list; do \
153 target=`echo $@ | sed s/-recursive//`; \
154 echo "Making $$target in $$subdir"; \
155 (cd $$subdir && $(MAKE) $$target) \
156 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
157 done && test -z "$$fail"
158
159 mostlyclean-recursive clean-recursive distclean-recursive \
160 maintainer-clean-recursive:
161 @set fnord $(MAKEFLAGS); amf=$$2; \
162 rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
163 rev="$$subdir $$rev"; \
164 done; \
165 for subdir in $$rev; do \
166 target=`echo $@ | sed s/-recursive//`; \
167 echo "Making $$target in $$subdir"; \
168 (cd $$subdir && $(MAKE) $$target) \
169 || case "$$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \
170 done && test -z "$$fail"
171 tags-recursive:
172 list='$(SUBDIRS)'; for subdir in $$list; do \
173 (cd $$subdir && $(MAKE) tags); \
174 done
175
176 tags: TAGS
177
178 ID: $(HEADERS) $(SOURCES) $(LISP)
179 here=`pwd` && cd $(srcdir) \
180 && mkid -f$$here/ID $(SOURCES) $(HEADERS) $(LISP)
181
182 TAGS: tags-recursive $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
183 tags=; \
184 here=`pwd`; \
185 list='$(SUBDIRS)'; for subdir in $$list; do \
186 test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
187 done; \
188 list='$(SOURCES) $(HEADERS)'; \
189 unique=`for i in $$list; do echo $$i; done | \
190 awk ' { files[$$0] = 1; } \
191 END { for (i in files) print i; }'`; \
192 test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
193 || (cd $(srcdir) && etags $(ETAGS_ARGS) $$tags $$unique $(LISP) -o $$here/TAGS)
194
195 mostlyclean-tags:
196
197 clean-tags:
198
199 distclean-tags:
200 -rm -f TAGS ID
201
202 maintainer-clean-tags:
203
204 distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
205
206 subdir = jsc
207
208 distdir: $(DISTFILES)
209 @for file in $(DISTFILES); do \
210 d=$(srcdir); \
211 test -f $(distdir)/$$file \
212 || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
213 || cp -p $$d/$$file $(distdir)/$$file; \
214 done
215 for subdir in $(SUBDIRS); do \
216 test -d $(distdir)/$$subdir \
217 || mkdir $(distdir)/$$subdir \
218 || exit 1; \
219 chmod 777 $(distdir)/$$subdir; \
220 (cd $$subdir && $(MAKE) top_distdir=../$(top_distdir) distdir=../$(distdir)/$$subdir distdir) \
221 || exit 1; \
222 done
223 info: info-recursive
224 dvi: dvi-recursive
225 check: all-am
226 $(MAKE) check-recursive
227 installcheck: installcheck-recursive
228 all-am: Makefile
229
230 install-exec: install-exec-recursive
231 @$(NORMAL_INSTALL)
232
233 install-data: install-data-recursive
234 @$(NORMAL_INSTALL)
235
236 install: install-recursive
237 @:
238
239 uninstall: uninstall-recursive
240
241 install-strip:
242 $(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' INSTALL_SCRIPT='$(INSTALL_PROGRAM)' install
243 installdirs: installdirs-recursive
244
245
246 mostlyclean-generic:
247 -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
248
249 clean-generic:
250 -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
251
252 distclean-generic:
253 -rm -f Makefile $(DISTCLEANFILES)
254 -rm -f config.cache config.log stamp-h stamp-h[0-9]*
255 -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
256
257 maintainer-clean-generic:
258 -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)
259 -test -z "$(BUILT_SOURCES)" || rm -f $(BUILT_SOURCES)
260 mostlyclean-am: mostlyclean-tags mostlyclean-generic
261
262 clean-am: clean-tags clean-generic mostlyclean-am
263
264 distclean-am: distclean-tags distclean-generic clean-am
265
266 maintainer-clean-am: maintainer-clean-tags maintainer-clean-generic \
267 distclean-am
268
269 mostlyclean: mostlyclean-recursive mostlyclean-am
270
271 clean: clean-recursive clean-am
272
273 distclean: distclean-recursive distclean-am
274 -rm -f config.status
275 -rm -f libtool
276
277 maintainer-clean: maintainer-clean-recursive maintainer-clean-am
278 @echo "This command is intended for maintainers to use;"
279 @echo "it deletes files that may require special tools to rebuild."
280
281 .PHONY: install-data-recursive uninstall-data-recursive \
282 install-exec-recursive uninstall-exec-recursive installdirs-recursive \
283 uninstalldirs-recursive all-recursive check-recursive \
284 installcheck-recursive info-recursive dvi-recursive \
285 mostlyclean-recursive distclean-recursive clean-recursive \
286 maintainer-clean-recursive tags tags-recursive mostlyclean-tags \
287 distclean-tags clean-tags maintainer-clean-tags distdir info dvi \
288 installcheck all-am install-exec install-data install uninstall all \
289 installdirs mostlyclean-generic distclean-generic clean-generic \
290 maintainer-clean-generic clean mostlyclean distclean maintainer-clean
291
292
293 compile: $(JSCS) bs.jsc
294
295 compiler: compiler.jsc
296
297 compiler.jsc: compiler.js
298 $(JSCOMPILER) $(JSCOMPILER_FLAGS) -c $<
299 cp compiler.jsc bak/compiler-`date | sed 's/ /-/g'`.jsc || true
300
301 compiler.js: $(JSS)
302 cat $(JSS) >compiler.js
303
304 run: compile
305 $(JSCOMPILER) --load $(JSCS) --file bs.jsc
306
307 wc:
308 wc $(JSS)
309
310 my-clean:
311 rm -f $(JSCS) bs.jsc
312
313 .js.jsc:
314 $(JSCOMPILER) $(JSCOMPILER_FLAGS) -g -c $<
315
316 # Tell versions [3.59,3.63) of GNU make to not export all variables.
317 # Otherwise a system limit (for SysV at least) may be exceeded.
318 .NOEXPORT: