summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-09-01 15:05:27 +0100
committerVincent Sanders <vince@kyllikki.org>2015-09-01 15:05:27 +0100
commitf2d8f433391919bc13041fe850aefb502fa6f348 (patch)
tree017f5c657746b5ecf28aad956a594e667b2c2ec2 /Makefile
parenta9eb97707b3960c052d05bb85a41fdb5c9ef777c (diff)
downloadlibnsbmp-f2d8f433391919bc13041fe850aefb502fa6f348.tar.gz
libnsbmp-f2d8f433391919bc13041fe850aefb502fa6f348.tar.bz2
add decode test suite
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 5837e5d..3250af7 100644
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,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 -W -Wundef -Wpointer-arith -Wcast-align \
-Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \
@@ -34,6 +37,9 @@ else
CFLAGS := $(CFLAGS) -Dinline="__inline__"
endif
+TESTCFLAGS := -g -O2
+TESTLDFLAGS := -lm -l$(COMPONENT) $(TESTLDFLAGS)
+
include $(NSBUILD)/Makefile.top
# Extra installation rules