summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2015-09-01 23:56:23 +0100
committerVincent Sanders <vince@kyllikki.org>2015-09-01 23:56:23 +0100
commit0c97f24173d461cd07e06da5f419bd1238cbd6e6 (patch)
tree62f438e88951e0bba01562cd7cb868bc2c7d6df7 /Makefile
parentf9ad837e326e72f5959e4a90787f48c805b4cb2b (diff)
downloadlibnsgif-0c97f24173d461cd07e06da5f419bd1238cbd6e6.tar.gz
libnsgif-0c97f24173d461cd07e06da5f419bd1238cbd6e6.tar.bz2
add a basic decode test
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 8504332..c78ee16 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