From 57033d0ef1810abf4edd9d8e57a95a5795e5a5a9 Mon Sep 17 00:00:00 2001 From: justanothercatgirl Date: Sat, 22 Jun 2024 18:16:54 +0300 Subject: added `rstypes` header. --- Makefile | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'Makefile') 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 $@ -- cgit v1.2.3-70-g09d2