summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJakob Kaivo <jkk@ung.org>2020-06-30 12:54:40 -0400
committerJakob Kaivo <jkk@ung.org>2020-06-30 12:54:40 -0400
commit49ad475df150584a9e59649b48dec1f3bed2bffb (patch)
tree8e31c79b00356460335de9bb6652f2918a138b98 /Makefile
parent3462b7ff75ce899b8761cd77b8b049658657593c (diff)
add simple realloc() test
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 9 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index e8a413f..accf611 100644
--- a/Makefile
+++ b/Makefile
@@ -9,9 +9,11 @@ TESTDIR=test
CFLAGS=-I$(INCDIR) -Wall -Wextra -Wpedantic -g
OBJECTS=$(OBJDIR)/mapalloc.o
-TESTS=$(BINDIR)/overflow $(BINDIR)/underflow $(BINDIR)/zero
+TESTS=$(BINDIR)/overflow $(BINDIR)/underflow $(BINDIR)/zero $(BINDIR)/realloc
-all: $(LIBDIR)/libmapalloc.a $(LIBDIR)/libmapalloc.so
+all: $(LIBDIR)/libmapalloc.a
+
+#$(LIBDIR)/libmapalloc.so
tests: $(TESTS)
@@ -27,9 +29,11 @@ $(LIBDIR)/libmapalloc.so: $(OBJECTS)
@mkdir -p $(@D)
$(CC) -o $@ -shared $(OBJECTS)
-$(BINDIR)/overflow: $(TESTDIR)/overflow.c $(LIBDIR)/libmapalloc.a
-$(BINDIR)/underflow: $(TESTDIR)/underflow.c $(LIBDIR)/libmapalloc.a
-$(BINDIR)/zero: $(TESTDIR)/zero.c $(LIBDIR)/libmapalloc.a
+$(TESTS): $(LIBDIR)/libmapalloc.a
+$(BINDIR)/overflow: $(TESTDIR)/overflow.c
+$(BINDIR)/underflow: $(TESTDIR)/underflow.c
+$(BINDIR)/zero: $(TESTDIR)/zero.c
+$(BINDIR)/realloc: $(TESTDIR)/realloc.c
$(TESTS):
@mkdir -p $(@D)