picrin/Makefile

22 lines
533 B
Makefile
Raw Normal View History

2013-10-09 04:10:58 -04:00
all: build run
build:
2013-10-11 02:20:53 -04:00
cd src; \
yacc -d parse.y; \
lex scan.l
2013-10-11 04:36:51 -04:00
gcc -o bin/picrin -I./include src/main.c src/state.c src/gc.c src/pair.c src/write.c src/symbol.c src/value.c src/y.tab.c src/lex.yy.c src/eval.c src/bool.c
2013-10-09 04:10:58 -04:00
2013-10-11 11:16:19 -04:00
test-vm:
cd src; \
yacc -d parse.y; \
lex scan.l
gcc -o bin/picrin -I./include src/vm.c src/state.c src/gc.c src/pair.c src/write.c src/symbol.c src/value.c src/y.tab.c src/lex.yy.c src/eval.c src/bool.c
bin/picrin
2013-10-10 03:45:23 -04:00
clean:
2013-10-11 02:20:53 -04:00
rm -f src/y.tab.c src/y.tab.h src/lex.yy.c
rm -f bin/picrin
2013-10-10 03:45:23 -04:00
2013-10-09 04:10:58 -04:00
run:
bin/picrin