Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (14 sloc) 511 Bytes
SRCS=$(wildcard src/*.js)
OBJS=$(SRCS:.js=.jspp)
all: ids
ids:
cd webserver && python app.py
%.jspp: %.js
cpp -P -undef -CC -Wundef -std=c99 -nostdinc -Wtrigraphs -fdollars-in-identifiers $< `echo $@ | sed s/src/build/`
builddir:
mkdir -p build
preprocess: builddir $(OBJS)
compile: preprocess
java -jar lib/compiler.jar --warning_level VERBOSE --compilation_level ADVANCED_OPTIMIZATIONS `find build/ -name *.jspp -exec echo --js {} \;` --js_output_file build/jvm.js
clean:
rm -dR build