finished migrating BCI-base and BCI-assembler

This commit is contained in:
Daniel Knüttel 2018-10-27 19:58:34 +02:00
parent db0a1b5d45
commit e12be1653c
2 changed files with 8 additions and 8 deletions

View File

@ -1,9 +1,9 @@
CC=gcc
CFLAG= -c -g -O -I ../interpreter -o
objects=../interpreter/stack.o \
../interpreter/interpreter/core_methods.o \
../interpreter/interpreter/interpreter.o \
../interpreter/method_dispatcher/method_dispatcher.o \
CFLAG= -c -g -O -I ../interpreter/interpreter -o
objects=../interpreter/interpreter/stack.o \
../interpreter/interpreter/interpreter/core_methods.o \
../interpreter/interpreter/interpreter/interpreter.o \
../interpreter/interpreter/method_dispatcher/method_dispatcher.o \
main.o
@ -12,7 +12,7 @@ clean:
- rm code.bin
- rm main
lib:
cd ../interpreter && make -s
cd ../interpreter/interpreter && make -s
%.o: %.c
$(CC) $(CFLAG) $@ $<
@ -21,7 +21,7 @@ main: main.o
$(CC) -O -g $(objects) -o main
test: main code.bin
cd ../assembler && make test
cd ../assembler/assembler && make test
valgrind ./main
code.bin:

View File

@ -1,7 +1,7 @@
import sys
from io import StringIO
sys.path.append("../assembler")
sys.path.append("../assembler/assembler")
from assembler.assembler import Assembler