aboutsummaryrefslogtreecommitdiff
path: root/core/Makefile
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-10-05 16:34:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-12-22 11:56:35 +0100
commit4efd8084ecf47132ba51577ee3f79d2ed2637b44 (patch)
tree09f6c30c079be1de57af19c450dd6cb5fa4ff036 /core/Makefile
parentcca3d303023d53b5d0af96751f379b2d0e28cd18 (diff)
downloadvis-4efd8084ecf47132ba51577ee3f79d2ed2637b44.tar.gz
vis-4efd8084ecf47132ba51577ee3f79d2ed2637b44.tar.xz
test/core: tweak tests to work with tis-interpreter
$ tis-inertpreter.sh --cc "-I. -I../.." text.c ../../text.c or more conveniently $ make tis
Diffstat (limited to 'core/Makefile')
-rw-r--r--core/Makefile8
1 files changed, 6 insertions, 2 deletions
diff --git a/core/Makefile b/core/Makefile
index d3d0fdd..b2b0406 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -1,9 +1,10 @@
-include ../../config.mk
+ALL = text buffer map array
SRC = $(wildcard ccan/*/*.c)
CFLAGS += -I. -I../..
-test: text buffer map array
+test: $(ALL)
@./text
@./buffer
@./map
@@ -35,6 +36,9 @@ debug: clean
coverage: clean
$(MAKE) CFLAGS_EXTRA='--coverage'
+tis: clean
+ $(MAKE) CC="tis-interpreter.sh --cc" CFLAGS='"${CFLAGS} ${CFLAGS_STD} -DTIS_INTERPRETER=1"' CFLAGS_STD='' LDFLAGS='#' $(ALL)
+
clean:
@echo cleaning
@rm -f text
@@ -43,4 +47,4 @@ clean:
@rm -f array
@rm -f *.gcov *.gcda *.gcno
-.PHONY: clean debug coverage
+.PHONY: clean debug coverage tis