aboutsummaryrefslogtreecommitdiffstats
path: root/examples/hashtable/Makefile
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2024-06-21 16:49:55 -0400
committerGravatar Peter McGoron 2024-06-21 16:49:55 -0400
commit70df63c28e04c21e495f05669a566eb68bdf072f (patch)
treede35ef2e0861c7ec26d50aa4acdb14be1981c235 /examples/hashtable/Makefile
parentfix root push and pop issue; make shared library for examples (diff)
delete for hashtables
Diffstat (limited to '')
-rw-r--r--examples/hashtable/Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/examples/hashtable/Makefile b/examples/hashtable/Makefile
index c06e482..5eaf054 100644
--- a/examples/hashtable/Makefile
+++ b/examples/hashtable/Makefile
@@ -1,9 +1,12 @@
.PHONY: test clean
-TESTS=test_insert.test
+TESTS=test_insert.test test_insert_delete.test
COMMON_OBJS=../test_common.o uns_hashtable.o
.SUFFIXES: .test
CFLAGS=-Wall -std=c89 -Werror -pedantic -fPIC -g -Iinclude
+libunshashtable.so: uns_hashtable.o
+ $(CC) -shared -I../../include $(CFLAGS) $< -o libunshashtable.so
+
test: $(TESTS) $(COMMON_OBJS)
for i in $(TESTS); do \
LD_LIBRARY_PATH=$$(pwd)/../../ valgrind ./$$i || exit 1; \
@@ -17,4 +20,4 @@ test_insert.test: $(COMMON_OBJS)
$(CC) -I../../include $(CFLAGS) $< -c -o $@
clean:
- rm -f $(TESTS) $(COMMON_OBJS)
+ rm -f $(TESTS) $(COMMON_OBJS) libunshashtable.so