diff options
| author | 2024-06-13 20:57:07 -0400 | |
|---|---|---|
| committer | 2024-06-13 20:57:07 -0400 | |
| commit | 3d7e39cfd2ac5c617c0d7e059d7b90a918307507 (patch) | |
| tree | 1c3ddbd744c3221c0c3a015df639061b4c412637 /examples/hashtable/Makefile | |
| parent | change uns_root_ptr to uns_ctr (diff) | |
hashtable test
Diffstat (limited to '')
| -rw-r--r-- | examples/hashtable/Makefile | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/examples/hashtable/Makefile b/examples/hashtable/Makefile new file mode 100644 index 0000000..c06e482 --- /dev/null +++ b/examples/hashtable/Makefile @@ -0,0 +1,20 @@ +.PHONY: test clean +TESTS=test_insert.test +COMMON_OBJS=../test_common.o uns_hashtable.o +.SUFFIXES: .test +CFLAGS=-Wall -std=c89 -Werror -pedantic -fPIC -g -Iinclude + +test: $(TESTS) $(COMMON_OBJS) + for i in $(TESTS); do \ + LD_LIBRARY_PATH=$$(pwd)/../../ valgrind ./$$i || exit 1; \ + done + +test_insert.test: $(COMMON_OBJS) + +.c.test: + $(CC) -I../../include $(CFLAGS) $< $(COMMON_OBJS) -L../../ -luniversalservice -o $@ +.c.o: + $(CC) -I../../include $(CFLAGS) $< -c -o $@ + +clean: + rm -f $(TESTS) $(COMMON_OBJS) |
