ref: 3e050a949ee5249209b38a92b70640a4ad6cde56
parent: d366e4b85299d5951d137ba3bf37155954acb448
author: Tor Andersson <tor@ccxvii.net>
date: Wed Mar 12 12:48:40 EDT 2014
Rename libjs.c to one.c and commit it.
--- a/Makefile
+++ b/Makefile
@@ -24,18 +24,18 @@
jsdump.c : astnames.h opnames.h
+one.c : $(SRCS)
+ ls $(SRCS) | awk '{print "#include \""$$1"\""}' > $@
+
js: build/main.o build/libjs.a
$(CC) -o $@ $^ -lm
+jsone: build/main.o build/one.o
+ $(CC) -o $@ $^ -lm
+
re: regex.c utf.c utftype.c
$(CC) $(CFLAGS) -DTEST -o $@ $^
-libjs.c : $(SRCS)
- ls $(SRCS) | awk '{print "#include \""$$1"\""}' > $@
-
-jsone: build/main.o build/libjs.o
- $(CC) $(CFLAGS) -o $@ $^ -lm
-
tags: $(SRCS) main.c $(HDRS)
ctags $^
@@ -43,6 +43,6 @@
python tests/sputniktests/tools/sputnik.py --tests=tests/sputniktests --command ./js --summary
clean:
- rm -f astnames.h opnames.h libjs.c build/* js
+ rm -f astnames.h opnames.h one.c build/* js
.PHONY: default test clean
--- /dev/null
+++ b/one.c
@@ -1,0 +1,25 @@
+#include "jsarray.c"
+#include "jsboolean.c"
+#include "jsbuiltin.c"
+#include "jscompile.c"
+#include "jsdate.c"
+#include "jsdump.c"
+#include "jserror.c"
+#include "jsfunction.c"
+#include "jsgc.c"
+#include "jsintern.c"
+#include "jslex.c"
+#include "jsmath.c"
+#include "jsnumber.c"
+#include "jsobject.c"
+#include "json.c"
+#include "jsparse.c"
+#include "jsproperty.c"
+#include "jsregexp.c"
+#include "jsrun.c"
+#include "jsstate.c"
+#include "jsstring.c"
+#include "jsvalue.c"
+#include "regex.c"
+#include "utf.c"
+#include "utftype.c"