aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
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 $@