]> mj.ucw.cz Git - xsv.git/blobdiff - Makefile
Added a test suite
[xsv.git] / Makefile
index bc54c019f48607c96573c3e51907fb590f201dd7..e92d2253303e907742a914a59e7459f8270a1125 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,15 @@
 PCRE_CFLAGS:=$(shell pcre-config --cflags)
 PCRE_LIBS:=$(shell pcre-config --libs)
 
-CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(PCRE_CFLAGS)
+CFLAGS=-O2 -Wall -W -Wno-parentheses -Wstrict-prototypes -Wmissing-prototypes -Wundef -Wredundant-decls -std=gnu99 $(PCRE_CFLAGS) -g
 LDLIBS=$(PCRE_LIBS)
 
 all: xsv
 
+tests: xsv
+       ./run-tests
+
 clean:
        rm -f `find . -name "*~" -or -name "*.[oa]" -or -name "\#*\#" -or -name TAGS -or -name core -or -name .depend -or -name .#*`
+       rm -f xsv
+       rm -rf tmp