aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-06-19 14:17:30 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-06-19 14:17:30 +0300
commitb2df541c5d0dc00368754fd35e0af2341d1458eb (patch)
treee657b490c7b97814120026f1112fa1a7265d5a10 /Makefile
parentdff89dcae590315c6916bc24407f9c80dd74f049 (diff)
moved all containers to a single header "container.h"
TODO: add linked list, hash map and other shit like this to the header
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 8 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0fb81ad..2bb58db 100644
--- a/Makefile
+++ b/Makefile
@@ -6,15 +6,17 @@ CFLAGS := -g -Wall -Wextra -Wpedantic -Werror -Wno-language-extension-token
tests: dynarray
-dynarray: tests/dynarray.c
- $(CC) $(CFLAGS) -o $@ $^ -DTT_CHAR
+dynarray: tests/dynarray.c tests/dynarray_struct.c
+ $(CC) $(CFLAGS) -o $@ $< -DTT_CHAR
./dynarray
- $(CC) $(CFLAGS) -o $@ $^ -DTT_SHORT
+ $(CC) $(CFLAGS) -o $@ $< -DTT_SHORT
./dynarray
- $(CC) $(CFLAGS) -o $@ $^ -DTT_INT
+ $(CC) $(CFLAGS) -o $@ $< -DTT_INT
./dynarray
- $(CC) $(CFLAGS) -o $@ $^ -DTT_LONG
+ $(CC) $(CFLAGS) -o $@ $< -DTT_LONG
+ ./dynarray
+ $(CC) $(CFLAGS) -o $@ tests/dynarray_struct.c
./dynarray
- rm dynarray
+ rm $@