blob: 97d4e2fb4cfc6526f929856a0b862dbbc8b045fa [file] [log] [blame]
default: all
all: jsshell
MACOS_JS_PATH=/System/Library/Frameworks/JavaScriptCore.framework/Versions/Current/Resources/jsc
jsshell: v8shell.cc
rm -f $@
[ -e "${MACOS_JS_PATH}" ] && \
ln -s "${MACOS_JS_PATH}" jsshell || \
g++ -g -o $@ v8shell.cc -lv8
runtests: $(patsubst %.js,%.js.run,$(wildcard t/t*.js))
%.js.run: %.js jsshell
./jsshell wvtest.js $*.js
test: jsshell
../wvtestrun $(MAKE) runtests
clean:
rm -f *~ */*~ v8shell jsshell
find . -name '*~' -exec rm -f {} \;