aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorjustanothercatgirl <sotov2070@gmail.com>2024-06-22 18:16:54 +0300
committerjustanothercatgirl <sotov2070@gmail.com>2024-06-22 18:16:54 +0300
commit57033d0ef1810abf4edd9d8e57a95a5795e5a5a9 (patch)
treeb736fc7f72a7d8d720d5c4b86e736a522e07c53e /Makefile
parent437c40d8bcd533c8af6804f299f5e0cb974f7a9d (diff)
added `rstypes` header.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 12 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 9db2e69..427fcdb 100644
--- a/Makefile
+++ b/Makefile
@@ -3,24 +3,27 @@ CC := gcc
CFLAGS := -g -Wall -Wextra -Wpedantic -Werror -Wno-language-extension-token
-tests: dynarray
+tests: container
-dynarray: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c tests/binary_search.c
+container: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c tests/binary_search.c tests/types.c
$(CC) $(CFLAGS) -o $@ $< -DTT_CHAR
- ./dynarray
+ ./$@
$(CC) $(CFLAGS) -o $@ $< -DTT_SHORT
- ./dynarray
+ ./$@
$(CC) $(CFLAGS) -o $@ $< -DTT_INT
- ./dynarray
+ ./$@
$(CC) $(CFLAGS) -o $@ $< -DTT_LONG
- ./dynarray
+ ./$@
$(CC) $(CFLAGS) -o $@ tests/dynarray_struct.c
- ./dynarray
+ ./$@
$(CC) $(CFLAGS) -o $@ tests/obscure.c
- ./dynarray
+ ./$@
$(CC) $(CFLAGS) -o $@ tests/binary_search.c
- ./dynarray
+ ./$@
+ $(CC) $(CFLAGS) -o $@ tests/types.c
+ ./$@
+
rm $@