BCI-dev/test/Makefile

30 lines
588 B
Makefile
Raw Normal View History

2018-10-27 14:54:33 +00:00
CC=gcc
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 \
2018-10-27 14:54:33 +00:00
main.o
all: clean lib $(objects) test
clean:
- rm code.bin
- rm main
lib:
cd ../interpreter/interpreter && make -s
2018-10-27 14:54:33 +00:00
%.o: %.c
$(CC) $(CFLAG) $@ $<
main: main.o
$(CC) -O -g $(objects) -o main
test: main code.bin
cd ../assembler/assembler && make test
2018-10-27 14:54:33 +00:00
valgrind ./main
code.bin:
python3 test.py