OVMS3/OVMS.V3/components/duktape/extras/duk-v1-compat/Makefile

16 lines
339 B
Makefile
Raw Normal View History

# For manual testing; say 'make' in extras/duk-v1-compat and run ./test.
CC = gcc
.PHONY: test
test:
-rm -rf ./prep
python2 ../../tools/configure.py --quiet --output-directory ./prep
$(CC) -std=c99 -Wall -Wextra -o $@ -I./prep -I. ./prep/duktape.c duk_v1_compat.c test.c -lm
./test
.PHONY: clean
clean:
-rm -rf ./prep
-rm -f test