improved testing and added general Makefile

This commit is contained in:
2018-10-27 12:14:57 +02:00
parent 1c0feb04d6
commit 8fbff510cc
3 changed files with 27 additions and 1 deletions

16
interpreter/Makefile Normal file
View File

@@ -0,0 +1,16 @@
CC=gcc
objects= stack.o method_dispatcher/method_dispatcher.o interpreter/core_methods.o interpreter/interpreter.o
all: $(objects) test
CFLAG= -c -O -o
%.o: %.c
$(CC) $(CFLAG) $@ $<
.PHONY: test
test:
cd test && make
cd method_dispatcher/test && make
cd interpreter/test && make