aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2018-08-19 13:23:21 +0200
committerMattias Andrée <maandree@kth.se>2018-08-19 13:23:21 +0200
commita405c151df74d4d3b4d06c38feff6458bef375a9 (patch)
tree7a06fe944e440134ab278623b909e73e9f83d3a7 /Makefile
parentAdd str[r]n[case]str and str[n][case]cmpnul (diff)
downloadlibsimple-a405c151df74d4d3b4d06c38feff6458bef375a9.tar.gz
libsimple-a405c151df74d4d3b4d06c38feff6458bef375a9.tar.bz2
libsimple-a405c151df74d4d3b4d06c38feff6458bef375a9.tar.xz
Add str[n]caseeq[null] and some tests
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 19cebc6..42f7f4d 100644
--- a/Makefile
+++ b/Makefile
@@ -76,7 +76,8 @@ TESTS =\
strrcasestr.test\
strrstr.test\
strstarts.test\
- vasprintf.test
+ vasprintf.test\
+ libsimple.test
all: libsimple.a $(TESTS)
$(OBJ): $(@:.o=.c) libsimple.h
@@ -94,7 +95,7 @@ libsimple.a: $(OBJ)
$(CC) -c -o $@ $< $(CFLAGS) -DTEST
check: $(TESTS)
- @set -e; for t in $(TESTS); do printf '%s\n' "./$$t"; "./$$t"; done
+ @set -e; for t in $(TESTS); do printf '%s\n' "./$$t"; $(CHECK_PREFIX) "./$$t"; done
clean:
-rm -rf -- *.o *.su *.a *.so *.so.* *.gch *.gcda *.gcno *.gcov *.lo *.test