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

View File

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