head 1.29;
access;
symbols
OSSP_JS_1_6_20070208:1.29
OSSP_JS_1_6_20060820:1.28
OSSP_JS_1_6_20060803:1.27
OSSP_JS_1_6_20060731:1.26
OSSP_JS_1_6_20060730:1.23
OSSP_JS_1_6_20060729:1.23
OSSP_JS_1_6_20060724:1.22
OSSP_JS_1_6_20060722:1.20;
locks; strict;
comment @# @;
1.29
date 2007.02.08.09.30.09; author rse; state Exp;
branches;
next 1.28;
commitid KKHsrntp6WkOxF5s;
1.28
date 2006.08.10.19.55.51; author rse; state Exp;
branches;
next 1.27;
commitid 3dEm9ljQWiBaRkIr;
1.27
date 2006.08.03.13.19.20; author rse; state Exp;
branches;
next 1.26;
commitid 9Bvk8Ze7oUq2ToHr;
1.26
date 2006.07.31.18.09.45; author rse; state Exp;
branches;
next 1.25;
commitid DtPv7Ikbtk1GA2Hr;
1.25
date 2006.07.31.17.32.29; author rse; state Exp;
branches;
next 1.24;
commitid 2rGBKYikhQ2Rn2Hr;
1.24
date 2006.07.31.17.21.48; author rse; state Exp;
branches;
next 1.23;
commitid 1BaKPuKzSxQ3k2Hr;
1.23
date 2006.07.29.09.14.40; author rse; state Exp;
branches;
next 1.22;
commitid KZJKZd8ehNU7HJGr;
1.22
date 2006.07.23.19.11.48; author rse; state Exp;
branches;
next 1.21;
commitid jHiL5WmF9LAUb1Gr;
1.21
date 2006.07.23.18.34.15; author rse; state Exp;
branches;
next 1.20;
commitid gVEVhueKwq30Z0Gr;
1.20
date 2006.07.23.10.51.04; author rse; state Exp;
branches;
next 1.19;
commitid R8sD9t8vCMS9qYFr;
1.19
date 2006.07.23.08.00.43; author rse; state Exp;
branches;
next 1.18;
commitid VL1SmkRG7aHItXFr;
1.18
date 2006.07.22.20.41.30; author rse; state Exp;
branches;
next 1.17;
commitid IuSm60wmabYHITFr;
1.17
date 2006.07.22.20.37.02; author rse; state Exp;
branches;
next 1.16;
commitid Jk8lO3979RWaHTFr;
1.16
date 2006.07.22.20.31.56; author rse; state Exp;
branches;
next 1.15;
commitid i0gOGElGMzrqFTFr;
1.15
date 2006.07.22.20.04.20; author rse; state Exp;
branches;
next 1.14;
commitid Aag6T76vqGhXvTFr;
1.14
date 2006.07.22.20.03.38; author rse; state Exp;
branches;
next 1.13;
commitid hgtidWLblqjIvTFr;
1.13
date 2006.07.22.19.45.36; author rse; state Exp;
branches;
next 1.12;
commitid FiFq0XHfBE0xpTFr;
1.12
date 2006.07.22.19.43.48; author rse; state Exp;
branches;
next 1.11;
commitid QqT7sMu2XvzUoTFr;
1.11
date 2006.07.22.19.10.06; author rse; state Exp;
branches;
next 1.10;
commitid 3ZSmoOrpXiUldTFr;
1.10
date 2006.07.22.16.36.19; author rse; state Exp;
branches;
next 1.9;
commitid e1wBJLde6jOAmSFr;
1.9
date 2006.07.22.16.34.58; author rse; state Exp;
branches;
next 1.8;
commitid cAqqsKNx8ee8mSFr;
1.8
date 2006.07.22.16.33.39; author rse; state Exp;
branches;
next 1.7;
commitid 72VneHPW6QFFlSFr;
1.7
date 2006.07.22.15.49.14; author rse; state Exp;
branches;
next 1.6;
commitid fQkzuusWSgDr6SFr;
1.6
date 2006.07.22.15.48.24; author rse; state Exp;
branches;
next 1.5;
commitid AesEEccP4II96SFr;
1.5
date 2006.07.22.15.40.04; author rse; state Exp;
branches;
next 1.4;
commitid ply9UPjF1x8i3SFr;
1.4
date 2006.07.22.15.02.07; author rse; state Exp;
branches;
next 1.3;
commitid GmjUFjJ3yPkhQRFr;
1.3
date 2006.07.22.13.49.34; author rse; state Exp;
branches;
next 1.2;
commitid OiBjjwzj5jjorRFr;
1.2
date 2006.07.22.13.48.03; author rse; state Exp;
branches;
next 1.1;
commitid hQS8iSBKnNYRqRFr;
1.1
date 2006.07.22.11.04.43; author rse; state Exp;
branches;
next ;
commitid DeAm5kOtHjOPwQFr;
desc
@@
1.29
log
@add jslint copyright header and add jspack script
@
text
@##
## OSSP js - JavaScript Engine
## Copyright (c) 1998-2006 Mozilla
##
## This file is part of OSSP js, a distribution of the Mozilla JavaScript
## reference implementation, which can found at http://www.ossp.org/pkg/lib/js/
##
## Permission to use, copy, modify, and distribute this software for
## any purpose with or without fee is hereby granted, provided that
## the above copyright notice and this permission notice appear in all
## copies.
##
## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
## SUCH DAMAGE.
##
## Makefile.in: make(1) build procedure
##
@@SET_MAKE@@
VPATH = @@srcdir@@
srcdir = @@srcdir@@
top_srcdir = @@top_srcdir@@
DESTDIR =
prefix = @@prefix@@
exec_prefix = @@exec_prefix@@
datarootdir = @@datarootdir@@
bindir = @@bindir@@
libdir = @@libdir@@
includedir = @@includedir@@
mandir = @@mandir@@
CC = @@CC@@
CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ -Isrc
CFLAGS = @@CFLAGS@@
LDFLAGS = @@LDFLAGS@@
LIBS = @@LIBS@@
CLI_CFLAGS = @@CLI_CFLAGS@@
CLI_CPPFLAGS = @@CLI_CPPFLAGS@@
CLI_LDFLAGS = @@CLI_LDFLAGS@@
CLI_LIBS = @@CLI_LIBS@@
RM = rm -f
CP = cp
RMDIR = rmdir
SHTOOL = ./shtool
LIBTOOL = ./libtool
PERL = @@PERL@@
TRUE = true
LIB_OBJS = src/jsapi.lo \
src/jsarena.lo \
src/jsarray.lo \
src/jsatom.lo \
src/jsbool.lo \
src/jscntxt.lo \
src/jsdate.lo \
src/jsdbgapi.lo \
src/jsdhash.lo \
src/jsdtoa.lo \
src/jsemit.lo \
src/jsexn.lo \
src/jsfile.lo \
src/jsfun.lo \
src/jsgc.lo \
src/jshash.lo \
src/jsinterp.lo \
src/jslock.lo \
src/jslog2.lo \
src/jslong.lo \
src/jsmath.lo \
src/jsnum.lo \
src/jsobj.lo \
src/jsopcode.lo \
src/jsparse.lo \
src/jsprf.lo \
src/jsregexp.lo \
src/jsscan.lo \
src/jsscope.lo \
src/jsscript.lo \
src/jsstr.lo \
src/jsutil.lo \
src/jsxdrapi.lo \
src/jsxml.lo \
src/prmjtime.lo \
src/jsdso.lo \
src/fdlibm/e_acos.lo \
src/fdlibm/e_asin.lo \
src/fdlibm/e_atan2.lo \
src/fdlibm/e_exp.lo \
src/fdlibm/e_fmod.lo \
src/fdlibm/e_log.lo \
src/fdlibm/e_pow.lo \
src/fdlibm/e_rem_pio2.lo \
src/fdlibm/s_scalbn.lo \
src/fdlibm/e_sqrt.lo \
src/fdlibm/k_cos.lo \
src/fdlibm/k_sin.lo \
src/fdlibm/k_rem_pio2.lo \
src/fdlibm/k_tan.lo \
src/fdlibm/s_atan.lo \
src/fdlibm/s_ceil.lo \
src/fdlibm/s_copysign.lo \
src/fdlibm/s_cos.lo \
src/fdlibm/s_fabs.lo \
src/fdlibm/s_finite.lo \
src/fdlibm/s_floor.lo \
src/fdlibm/s_isnan.lo \
src/fdlibm/s_lib_version.lo \
src/fdlibm/s_sin.lo \
src/fdlibm/s_tan.lo \
src/fdlibm/w_acos.lo \
src/fdlibm/w_asin.lo \
src/fdlibm/w_atan2.lo \
src/fdlibm/w_exp.lo \
src/fdlibm/w_fmod.lo \
src/fdlibm/w_log.lo \
src/fdlibm/w_pow.lo \
src/fdlibm/w_sqrt.lo
LIB_NAME = libjs.la
CLI_OBJS = src/js.o @@CLI_OBJS@@
CLI_NAME = js
WITH_PERL = @@WITH_PERL@@
TARGETS = $(LIB_NAME) $(CLI_NAME)
.SUFFIXES:
.SUFFIXES: .c .o .lo
all: $(TARGETS) subdirs
subdirs:
@@if [ ".$(WITH_PERL)" = ".yes" ]; then \
(cd src/perlconnect; $(PERL) Makefile.PL; $(MAKE) $(MFLAGS)); \
fi
.c.o:
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ -c $<
.c.lo:
@@$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ -c $<
$(LIB_NAME): $(LIB_OBJS)
@@$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) -version-info 1:6
$(CLI_NAME): $(CLI_OBJS) $(LIB_NAME)
@@$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(CLI_LDFLAGS) -o $(CLI_NAME) $(CLI_OBJS) $(LIB_NAME) $(LIBS) $(CLI_LIBS)
src/js.o: src/js.c
$(CC) $(CPPFLAGS) $(CLI_CPPFLAGS) $(CFLAGS) $(CLI_CFLAGS) -o $@@ -c $<
src/perlconnect/jsperl.o: src/perlconnect/jsperl.c
$(CC) $(CPPFLAGS) $(CLI_CPPFLAGS) $(CFLAGS) $(CLI_CFLAGS) -o $@@ -c $<
$(LIB_OBJS): src/jsautocfg.h
src/jsautocfg.h: jscpucfg
-rm -f $@@ src/jsautocfg.h
$(LIBTOOL) --mode=execute ./jscpucfg >src/jsautocfg.h
jscpucfg.o: src/jscpucfg.c
$(CC) $(CPPFLAGS) $(CFLAGS) -o $@@ -c $<
jscpucfg: jscpucfg.o
@@$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o jscpucfg jscpucfg.o $(LIBS)
src/jsopcode.h src/jsopcode.c: src/jsopcode.tbl
.PHONY: install
install: all
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(prefix)
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(bindir)
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man3
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir)/js
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(libdir)/pkgconfig
$(SHTOOL) install -c -m 644 js.1 $(DESTDIR)$(mandir)/man1/
$(SHTOOL) install -c -m 644 js-config.1 $(DESTDIR)$(mandir)/man1/
$(SHTOOL) install -c -m 644 js.3 $(DESTDIR)$(mandir)/man3/
$(SHTOOL) install -c -m 644 src/js*.h $(DESTDIR)$(includedir)/js/
@@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 $(LIB_NAME) $(DESTDIR)$(libdir)/
$(SHTOOL) install -c -m 644 js.pc $(DESTDIR)$(libdir)/pkgconfig/
$(SHTOOL) install -c -m 755 js-config.sh $(DESTDIR)$(bindir)/js-config
@@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 755 js $(DESTDIR)$(bindir)/
$(SHTOOL) install -e 's;#!\./js;#!$(bindir)/js;' -c -m 755 jslint.js $(DESTDIR)$(bindir)/jslint
$(SHTOOL) install -e 's;#!\./js;#!$(bindir)/js;' -c -m 755 jspack.js $(DESTDIR)$(bindir)/jspack
@@if [ ".$(WITH_PERL)" = ".yes" ]; then \
(cd src/perlconnect; $(MAKE) $(MFLAGS) install DESTDIR=$(DESTDIR)); \
fi
.PHONY: clean
clean:
-$(RM) jscpucfg $(LIB_NAME) $(LIB_OBJS)
-$(RM) js src/js.o
-$(RM) -r .libs >/dev/null 2>&1 || $(TRUE)
-$(RM) -r src/.libs src/fdlibm/.libs >/dev/null 2>&1 || $(TRUE)
-$(RM) *.o *.lo
@@if [ ".$(WITH_PERL)" = ".yes" ]; then \
( cd src/perlconnect; \
if [ -f Makefile ]; then $(MAKE) $(MFLAGS) clean || $(TRUE); fi; \
if [ -f Makefile.old ]; then mv Makefile.old Makefile; fi; \
); \
fi
distclean: clean
-$(RM) config.log config.status config.cache
-$(RM) Makefile config.h js.pc js-config.sh
-$(RM) libtool
-$(RM) src/perlconnect/Makefile.PL
@@if [ ".$(WITH_PERL)" = ".yes" ]; then \
( cd src/perlconnect; \
if [ -f Makefile ]; then $(MAKE) $(MFLAGS) distclean || $(TRUE); fi; \
$(RM) -f Makefile Makefile.old || $(TRUE); \
); \
fi
realclean: distclean
-$(RM) configure config.h.in config.h.in~
-$(RM) shtool
-$(RM) ltmain.sh libtool.m4 config.guess config.sub
@
1.28
log
@move to exec_prefix area
@
text
@d194 1
@
1.27
log
@Add optional Dynamic Shared Object (DSO) support (see src/jsdso.[ch]).
This comes in two flavors:
1. Provide two public C API functions...
JSBool JS_DSOLoad (JSContext *cx, int *id, const char *filename);
JSBool JS_DSOUnload (JSContext *cx, int id);
...as an ultra-thin wrapper around the POSIX dlopen(3) API. It
especially mimics the BSD RTLD behaviour of calling pre-defined
functions (mandatory "js_DSO_load" and optional "js_DSO_unload")
inside the DSO after/before the dlopen/dlclose calls. This
allows the DSOs to perform their init/shutdown actions.
2. Provide a small JavaScript global object "DSO" which binds
the two public DSO C API functions into the JavaScript language
as "DSO.load" and "DSO.unload". The "DSO" object can be created
by the friend C API function js_InitDSOClass(). This function is
used by the command-linne interface "js" by default.
As a result the OSSP Mozilla JavaScript engine is now able to
dynamically load C extensions similar to what other programming
languages provide since a longer time.
@
text
@d38 1
a42 1
datarootdir = @@datarootdir@@
@
1.26
log
@Fix "make distclean": src/perlconnect/Makefile.PL is always generated
and hence has to be always deleted.
@
text
@d98 1
@
1.25
log
@Fix "make install": the executable "js" was not installed via GNU
libtool and this way under --enable-shared the wrapper script was
installed only.
Submitted by: Alfred Reibenschuh
@
text
@d205 4
a208 1
(cd src/perlconnect; $(MAKE) $(MFLAGS) clean || $(TRUE); mv Makefile.old Makefile || $(TRUE)); \
d215 1
d217 4
a220 1
(cd src/perlconnect; $(MAKE) $(MFLAGS) distclean || $(TRUE); $(RM) -f Makefile.PL Makefile Makefile.old); \
@
1.24
log
@Fix "make install": js-config.1 was not installed.
Submitted by: Alfred Reibenschuh
@
text
@a183 2
$(SHTOOL) install -c -m 755 js $(DESTDIR)$(bindir)/
$(SHTOOL) install -e 's;#!\./js;#!$(bindir)/js;' -c -m 755 jslint.js $(DESTDIR)$(bindir)/jslint
d189 1
d191 2
a192 1
$(SHTOOL) install -c -m 644 js.pc $(DESTDIR)$(libdir)/pkgconfig/
@
1.23
log
@Changed GNU libtool shared library versioning from 0:0 to 1:6
@
text
@d187 1
@
1.22
log
@Added jslint (see http://www.jslint.com/) together with some
home-brewn option parser. The result is installed as
a stand-alone "jslint" program.
@
text
@d157 1
a157 1
@@$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) -version-info 0:0
@
1.21
log
@o Install all src/js*.h headers during "make install" to allow
applications to at least optionally poke around in the internals.
This also allows an application to call js_InitFileClass() from
without us having to really call this function in the
standard API function JS_InitStandardClasses().
o Change the default of the --with-file/--without from --without-file
to --with-file (enable the File object by default), but activate
it only in the CLI (where it doesn't hurt and where it is actually
really required to get something useful running there in practice)
but explicitly _NOT_ in JS_InitStandardClasses() (as this is
what would hurt the security in applications which assume that
JS_InitStandardClasses() initialized only really the standard
classes).
@
text
@d185 1
@
1.20
log
@fix dependency
@
text
@a62 9
LIB_HDRS = src/jsautocfg.h \
src/jsapi.h \
src/jsdbgapi.h \
src/jscompat.h \
src/jslong.h \
src/jsosdep.h \
src/jsotypes.h \
src/jspubtd.h \
src/jstypes.h
d187 1
a187 1
$(SHTOOL) install -c -m 644 $(LIB_HDRS) $(DESTDIR)$(includedir)/js/
@
1.19
log
@provide js-config script
@
text
@d168 1
a168 1
$(CLI_NAME): $(CLI_OBJS)
@
1.18
log
@pass DESTDIR
@
text
@d186 1
a186 1
install:
d198 1
d217 1
a217 1
-$(RM) Makefile config.h js.pc
@
1.17
log
@install into subdir; install more files
@
text
@d200 1
a200 1
(cd src/perlconnect; $(MAKE) $(MFLAGS) install); \
@
1.16
log
@apply OpenPKG patches (which originally came from FreeBSD AFAIK)
@
text
@d63 4
a66 20
LIB_HDR_API = src/jsapi.h \
src/jsdbgapi.h
LIB_HDR_CPP = src/jsarena.h \
src/jsarray.h \
src/jsatom.h \
src/jsbool.h \
src/jsclist.h \
src/jscntxt.h \
src/jsconfig.h \
src/jsdate.h \
src/jsdhash.h \
src/jsdtoa.h \
src/jsemit.h \
src/jsexn.h \
src/jsfun.h \
src/jsgc.h \
src/jshash.h \
src/jsinterp.h \
src/jslibmath.h \
src/jslock.h \
a67 4
src/jsmath.h \
src/jsnum.h \
src/jsobj.h \
src/jsopcode.h \
d69 1
a69 2
src/jsparse.h \
src/jsprvtd.h \
d71 1
a71 19
src/jsregexp.h \
src/jsscan.h \
src/jsscope.h \
src/jsscript.h \
src/jsstr.h \
src/jstypes.h \
src/jsxdrapi.h \
src/jsxml.h \
src/jsfile.h
LIB_HDR_OTH = src/jsbit.h \
src/jscompat.h \
src/jscpucfg.h \
src/jsotypes.h \
src/jsstddef.h \
src/prmjtime.h \
src/resource.h \
src/jsopcode.tbl \
src/js.msg \
src/jsshell.msg
d147 1
a147 1
TARGETS = $(LIB_NAME) $(CLI_NAME) subdirs
d152 1
a152 1
all: $(TARGETS)
d166 1
a166 2
@@$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
-version-info 0:0
d191 1
a191 1
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(includedir)
d196 1
a196 1
$(SHTOOL) install -c -m 644 $(LIB_HDR_API) $(DESTDIR)$(includedir)/
@
1.15
log
@use the word distribution
@
text
@d206 1
a206 1
-version-info `$(SHTOOL) version -l txt -d libtool VERSION`
@
1.14
log
@more cleanup
@
text
@d5 1
a5 1
## This file is part of OSSP js, a repackaging of the Mozilla JavaScript
@
1.13
log
@more cleanups
@
text
@d263 1
a263 1
-$(RM) configure config.h.in
@
1.12
log
@more files, better versioning
@
text
@d251 1
a251 1
(cd src/perlconnect; $(MAKE) $(MFLAGS) clean); \
d259 1
a259 1
(cd src/perlconnect; $(RM) -f Makefile.PL Makefile Makefile.old); \
@
1.11
log
@install also a short manual page which guides to the reference documentation
@
text
@a262 1
-$(RM) js.1
@
1.10
log
@*** empty log message ***
@
text
@d230 1
d235 1
@
1.9
log
@cleanups
@
text
@d257 1
a257 1
(cd src/perlconnect; $(RM) -f Makefile.PL Makefile); \
@
1.8
log
@cleanup texts
@
text
@d248 3
d256 3
@
1.7
log
@remove more
@
text
@d3 1
a3 2
## Copyright (c) 2006 Ralf S. Engelschall
## Copyright (c) 2006 The OSSP Project
d5 1
a5 1
## This file is part of OSSP js, a packaged version of the Mozilla JavaScript
@
1.6
log
@remove more stuff
@
text
@d244 1
a244 1
-$(RM) $(LIB_NAME) $(LIB_OBJS)
@
1.5
log
@improve Perl support
@
text
@d247 1
@
1.4
log
@add optional EDITLINE support
@
text
@d51 1
d61 1
d180 1
d182 6
a187 1
TARGETS = libjs.la js
d194 5
d205 2
a206 2
libjs.la: $(LIB_OBJS)
@@$(LIBTOOL) --mode=link $(CC) -o libjs.la $(LIB_OBJS) -rpath $(libdir) \
d209 2
a210 2
js: src/js.o
@@$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(CLI_LDFLAGS) -o js src/js.o libjs.la $(LIBS) $(CLI_LIBS)
d212 3
a214 1
$(CC) $(CPPFLAGS) $(CFLAGS) $(CLI_CPPFLAGS) -o $@@ -c $<
d236 1
a236 1
@@$(LIBTOOL) --mode=install $(SHTOOL) install -c -m 644 libjs.la $(DESTDIR)$(libdir)/
d238 3
d244 1
a244 1
-$(RM) libjs.la $(LIB_OBJS)
@
1.3
log
@fix install target
@
text
@d32 146
a177 143
VPATH = @@srcdir@@
srcdir = @@srcdir@@
top_srcdir = @@top_srcdir@@
DESTDIR =
prefix = @@prefix@@
exec_prefix = @@exec_prefix@@
bindir = @@bindir@@
libdir = @@libdir@@
includedir = @@includedir@@
mandir = @@mandir@@
datarootdir = @@datarootdir@@
CXX = @@CXX@@
CPPFLAGS = @@CPPFLAGS@@ @@DEFS@@ -Isrc
CFLAGS = @@CFLAGS@@
CXXFLAGS = @@CXXFLAGS@@
LDFLAGS = @@LDFLAGS@@
LIBS = @@LIBS@@
RM = rm -f
CP = cp
RMDIR = rmdir
SHTOOL = ./shtool
LIBTOOL = ./libtool
TRUE = true
LIB_HDR_API = src/jsapi.h \
src/jsdbgapi.h
LIB_HDR_CPP = src/jsarena.h \
src/jsarray.h \
src/jsatom.h \
src/jsbool.h \
src/jsclist.h \
src/jscntxt.h \
src/jsconfig.h \
src/jsdate.h \
src/jsdhash.h \
src/jsdtoa.h \
src/jsemit.h \
src/jsexn.h \
src/jsfun.h \
src/jsgc.h \
src/jshash.h \
src/jsinterp.h \
src/jslibmath.h \
src/jslock.h \
src/jslong.h \
src/jsmath.h \
src/jsnum.h \
src/jsobj.h \
src/jsopcode.h \
src/jsosdep.h \
src/jsparse.h \
src/jsprvtd.h \
src/jspubtd.h \
src/jsregexp.h \
src/jsscan.h \
src/jsscope.h \
src/jsscript.h \
src/jsstr.h \
src/jstypes.h \
src/jsxdrapi.h \
src/jsxml.h \
src/jsfile.h
LIB_HDR_OTH = src/jsbit.h \
src/jscompat.h \
src/jscpucfg.h \
src/jsotypes.h \
src/jsstddef.h \
src/prmjtime.h \
src/resource.h \
src/jsopcode.tbl \
src/js.msg \
src/jsshell.msg
LIB_OBJS = src/jsapi.lo \
src/jsarena.lo \
src/jsarray.lo \
src/jsatom.lo \
src/jsbool.lo \
src/jscntxt.lo \
src/jsdate.lo \
src/jsdbgapi.lo \
src/jsdhash.lo \
src/jsdtoa.lo \
src/jsemit.lo \
src/jsexn.lo \
src/jsfile.lo \
src/jsfun.lo \
src/jsgc.lo \
src/jshash.lo \
src/jsinterp.lo \
src/jslock.lo \
src/jslog2.lo \
src/jslong.lo \
src/jsmath.lo \
src/jsnum.lo \
src/jsobj.lo \
src/jsopcode.lo \
src/jsparse.lo \
src/jsprf.lo \
src/jsregexp.lo \
src/jsscan.lo \
src/jsscope.lo \
src/jsscript.lo \
src/jsstr.lo \
src/jsutil.lo \
src/jsxdrapi.lo \
src/jsxml.lo \
src/prmjtime.lo \
src/fdlibm/e_acos.lo \
src/fdlibm/e_asin.lo \
src/fdlibm/e_atan2.lo \
src/fdlibm/e_exp.lo \
src/fdlibm/e_fmod.lo \
src/fdlibm/e_log.lo \
src/fdlibm/e_pow.lo \
src/fdlibm/e_rem_pio2.lo \
src/fdlibm/s_scalbn.lo \
src/fdlibm/e_sqrt.lo \
src/fdlibm/k_cos.lo \
src/fdlibm/k_sin.lo \
src/fdlibm/k_rem_pio2.lo \
src/fdlibm/k_tan.lo \
src/fdlibm/s_atan.lo \
src/fdlibm/s_ceil.lo \
src/fdlibm/s_copysign.lo \
src/fdlibm/s_cos.lo \
src/fdlibm/s_fabs.lo \
src/fdlibm/s_finite.lo \
src/fdlibm/s_floor.lo \
src/fdlibm/s_isnan.lo \
src/fdlibm/s_lib_version.lo \
src/fdlibm/s_sin.lo \
src/fdlibm/s_tan.lo \
src/fdlibm/w_acos.lo \
src/fdlibm/w_asin.lo \
src/fdlibm/w_atan2.lo \
src/fdlibm/w_exp.lo \
src/fdlibm/w_fmod.lo \
src/fdlibm/w_log.lo \
src/fdlibm/w_pow.lo \
src/fdlibm/w_sqrt.lo
LIB_NAME = libjs.la
d179 1
a179 4
PRG_NAME = js
PRG_OBJS = src/js.o
TARGETS = $(LIB_NAME) $(PRG_NAME)
d192 2
a193 2
$(LIB_NAME): $(LIB_OBJS)
@@$(LIBTOOL) --mode=link $(CC) -o $(LIB_NAME) $(LIB_OBJS) -rpath $(libdir) \
d196 4
a199 2
$(PRG_NAME): $(PRG_OBJS) $(LIB_NAME)
@@$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $(PRG_NAME) $(PRG_OBJS) $(LIB_NAME) $(LIBS)
d226 2
a227 2
-$(RM) $(LIB_NAME) $(LIB_OBJS)
-$(RM) $(PRG_NAME) $(PRG_OBJS)
@
1.2
log
@add more OSSP stuff
@
text
@d213 1
d216 4
a219 2
$(SHTOOL) mkdir -f -p -m 755 $(DESTDIR)$(mandir)/man1
$(SHTOOL) install -c -m 755 uuid-config $(DESTDIR)$(bindir)/
a220 2
$(SHTOOL) install -c -m 644 $(LIB_HDR_API) $(DESTDIR)$(includedir)/
$(SHTOOL) install -c -m 644 js.1 $(DESTDIR)$(mandir)/man1/
@
1.1
log
@add our own files
@
text
@d43 1
a43 1
d46 1
a46 1
CPPFLAGS = -I. -I$(S) -Isrc -I($S)/src @@CPPFLAGS@@ @@DEFS@@
a111 1
src/jscpucfg.lo \
d140 34
a173 1
src/prmjtime.lo
d187 1
a187 1
$(CC) $(CPPFLAGS) $(CFLAGS) -c $<
d190 1
a190 1
@@$(LIBTOOL) --mode=compile $(CC) $(CPPFLAGS) $(CFLAGS) -c $<
d199 10
@