aboutsummaryrefslogtreecommitdiffstats
path: root/examples/string/Makefile
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2024-06-20 23:14:25 -0400
committerGravatar Peter McGoron 2024-06-20 23:14:25 -0400
commit62f299dcf7eaa1821cd3ea736bc9f40b93d2bac8 (patch)
tree810206978544b653da78e2d3ebf739841eca9a56 /examples/string/Makefile
parentadd fake struct to help with type checker (diff)
fix root push and pop issue; make shared library for examples
Diffstat (limited to '')
-rw-r--r--examples/string/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/string/Makefile b/examples/string/Makefile
index bf70827..6ec8882 100644
--- a/examples/string/Makefile
+++ b/examples/string/Makefile
@@ -4,6 +4,9 @@ COMMON_OBJS=../test_common.o uns_string.o
.SUFFIXES: .test
CFLAGS=-Wall -Wno-overlength-strings -std=c89 -Werror -pedantic -fPIC -g -Iinclude
+libunsstring.so: uns_string.o
+ $(CC) -shared -I../../include $(CFLAGS) $< -o libunsstring.so
+
test: $(TESTS) $(COMMON_OBJS)
for i in $(TESTS); do \
LD_LIBRARY_PATH=$$(pwd)/../../ valgrind ./$$i || exit 1; \