summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2018-07-29 10:10:51 +0100
committerVincent Sanders <vince@kyllikki.org>2018-07-29 10:10:51 +0100
commitc8f5b9a37174f7184db1e3e57c0f588a59306c90 (patch)
tree4ca9164782bb94af43772943fb5d54773dbfedfe /Makefile
parent8f19e4ea8242a46db7c59ddad1edc5f6a9a5656b (diff)
downloadlibrosprite-c8f5b9a37174f7184db1e3e57c0f588a59306c90.tar.gz
librosprite-c8f5b9a37174f7184db1e3e57c0f588a59306c90.tar.bz2
fix tests
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b82e633..d432327 100644
--- a/Makefile
+++ b/Makefile
@@ -13,6 +13,9 @@ PREFIX ?= /opt/netsurf
NSSHARED ?= $(PREFIX)/share/netsurf-buildsystem
include $(NSSHARED)/makefiles/Makefile.tools
+# Reevaluate when used, as BUILDDIR won't be defined yet
+TESTRUNNER = test/runtest.sh $(BUILDDIR) $(EXEEXT)
+
# Toolchain flags
WARNFLAGS := -Wall -Wextra -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes \
@@ -36,6 +39,9 @@ else
CFLAGS := $(CFLAGS) -Dinline="__inline__"
endif
+TESTCFLAGS := -g -O2
+TESTLDFLAGS := -lm -l$(COMPONENT) $(TESTLDFLAGS)
+
include $(NSBUILD)/Makefile.top
# Extra installation rules