tests now can use runtime infrostructure

This commit is contained in:
Vasily Levchenko
2016-10-20 12:31:11 +03:00
parent 767acbda1a
commit badcccac58
2 changed files with 24 additions and 3 deletions
+4 -2
View File
@@ -4,7 +4,7 @@ TESTS := sum \
BIN_TESTS=$(foreach t, ${TESTS},${t}_test)
VPATH=codegen/function
VPATH=codegen/function:${TOP}/runtime/build
LLC=llc-mp-3.8
CC=clang-mp-3.8
@@ -19,7 +19,7 @@ KOTLIN_NATIVE_CLASSPATH=${BACKEND_CLASSES}/bc_frontend:${BACKEND_CLASSES}/cli_bc
define PROTO
$(1)_test: main.c $1-test.c $1.S
$(1)_test: $1-test.c $1.S runtime.S main.c
$(CC) -o $$@ $$^
${1}_run:${1}_test
@@ -35,6 +35,8 @@ run:$(foreach test,${TESTS},${test}_run)
clean:
${RM} *.o *.S *.BCkt ${BIN_TESTS}
%.S:%.bc
${LLC} -o $@ $<
%.S:%.BCkt
${LLC} -o $@ $<