aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMosder <xmosder12@gmail.com>2026-08-21 11:50:51 +0200
committerMosder <xmosder12@gmail.com>2026-08-21 11:50:51 +0200
commitb6b7a01987dca604a161c8c73a240ec4430baed0 (patch)
treeb9fdeb674ad767ccb16d1a3cdc2c6c975ea11737 /Makefile
parent890a52b9af6e24015048eb2754552b9613484b3f (diff)
refactor: renamed mem/alloc.h to safe.h and made it be a collection of "safe" wrappers for "unsafe" functions
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 0c4622b..6fc62cd 100644
--- a/Makefile
+++ b/Makefile
@@ -16,19 +16,17 @@ static: compile headers
headers:
sudo cp -r include/* /usr/local/include
-compile: memory structures
+compile: structures
$(CC) $(CFLAGS) -c src/tester.c
+ $(CC) $(CFLAGS) -c src/safe.c
$(CC) $(CFLAGS) -c src/string.c
-memory:
- $(CC) $(CFLAGS) -c src/mem/alloc.c
-
structures:
$(CC) $(CFLAGS) -c src/ds/array.c
$(CC) $(CFLAGS) -c src/ds/hashmap.c
test:
- $(CC) $(CFLAGS_TEST) -c tests/mem/alloc_tests.c
+ $(CC) $(CFLAGS_TEST) -c tests/safe_tests.c
$(CC) $(CFLAGS_TEST) -c tests/ds/array_tests.c
$(CC) $(CFLAGS_TEST) -c tests/string_tests.c
$(CC) $(CFLAGS_TEST) -c tests/ds/hashmap_tests.c