aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Peter McGoron 2024-06-12 08:56:49 -0400
committerGravatar Peter McGoron 2024-06-12 08:56:49 -0400
commit26afacd565bff3a016b769cb7ee644b3b75b809d (patch)
treeef65b2ed0bf6dbb77d91307ee7519a9b4b92b58e /Makefile
parentcheney copying collector (diff)
strings: add more tests
cheney_c89: fix memory leak errors
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 5 insertions, 17 deletions
diff --git a/Makefile b/Makefile
index 6a20cbb..86991e5 100644
--- a/Makefile
+++ b/Makefile
@@ -1,33 +1,21 @@
-.PHONY: test_strings clean
+.PHONY: test clean
COMMON_OBJECTS=uns.o
CHENEY_C89_OBJECTS=cheney_c89.o c89_relo.o
-CFLAGS=-Wall -Wno-overlength-strings -std=c89 -Werror -pedantic -fPIC -g -Iinclude
+CFLAGS=-Wall -std=c89 -Werror -pedantic -fPIC -g -Iinclude
libuniversalservice.so: $(COMMON_OBJECTS) $(CHENEY_C89_OBJECTS)
$(CC) -shared $(COMMON_OBJECTS) $(CHENEY_C89_OBJECTS) -o libuniversalservice.so
.c.o:
$(CC) $(CFLAGS) $< -c -o $@
-#############################################
-## Examples
-#############################################
-
-STRING_TEST_OBJS=examples/string/test_common.o examples/string/uns_string.o
-STRING_TESTS= examples/string/test_small
-
-examples/string/test_small: examples/string/test_small.c $(STRING_TEST_OBJS) libuniversalservice.so
- $(CC) -I. -Iext $(CFLAGS) examples/string/test_small.c $(STRING_TEST_OBJS) -L. -luniversalservice -o examples/string/test_small
-
-test_strings: $(STRING_TESTS)
- for i in $(STRING_TESTS); do \
- LD_LIBRARY_PATH=$$(pwd) valgrind $$i; \
- done
+test:
+
###################
## Clean
##################
clean:
- rm -f $(STRING_TEST_OBJS) $(STRING_TESTS) $(COMMON_OBJECTS) $(CHENEY_STRING_OBJECTS)
+ rm -f $(COMMON_OBJECTS) $(CHENEY_C89_OBJECTS) libuniversalservice.so