mirror of
https://github.com/ccxvii/mujs.git
synced 2026-02-06 01:41:37 +08:00
Rename libjs.c to one.c and commit it.
This commit is contained in:
14
Makefile
14
Makefile
@@ -24,18 +24,18 @@ opnames.h : jscompile.h
|
||||
|
||||
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 @@ test: js
|
||||
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
|
||||
|
||||
25
one.c
Normal file
25
one.c
Normal file
@@ -0,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"
|
||||
Reference in New Issue
Block a user