Commit | Line | Data |
---|---|---|
249fb9ba | 1 | # (c) 2019 Aaron Taylor <ataylor at subgeniuskitty dot com> |
a41cabb1 | 2 | # See LICENSE.txt file for copyright and license details. |
249fb9ba AT |
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 | |
a805b721 AT |
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 |