| 1 | # (c) 2019 Aaron Taylor <ataylor at subgeniuskitty dot com> |
| 2 | # All rights reserved. |
| 3 | |
| 4 | #################################################################################################### |
| 5 | # Configuration |
| 6 | |
| 7 | CC = cc |
| 8 | CC_FLAGS = -Wall -std=c99 |
| 9 | |
| 10 | #################################################################################################### |
| 11 | # Build |
| 12 | |
| 13 | all: vvc vvi |
| 14 | |
| 15 | vvi: |
| 16 | $(CC) $(CC_FLAGS) -o $@ vv_interpreter.c |
| 17 | |
| 18 | vvc: |
| 19 | $(CC) $(CC_FLAGS) -o $@ vv_compiler.c |
| 20 | |
| 21 | clean: |
| 22 | @rm -f vvc vvc.core vvi vvi.core |
| 23 | |
| 24 | test: testvvi teststdlib |
| 25 | |
| 26 | testvvi: all |
| 27 | @cd tests; make test |
| 28 | |
| 29 | teststdlib: all |
| 30 | @cd stdlib_tests; make test |
| 31 | |
| 32 | testclean: |
| 33 | @cd tests; make clean |
| 34 | @cd stdlib_tests; make clean |