diff options
author | justanothercatgirl <sotov2070@gmail.com> | 2024-06-20 15:17:05 +0300 |
---|---|---|
committer | justanothercatgirl <sotov2070@gmail.com> | 2024-06-20 21:14:56 +0300 |
commit | 437c40d8bcd533c8af6804f299f5e0cb974f7a9d (patch) | |
tree | c6e561b4bcd629b732cde05a8b7460115f60245b /Makefile | |
parent | 86263835b2f9727531d8941733df8e05705354bf (diff) |
added binary search function & tests
Also fallthrough attribute
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,7 +6,7 @@ CFLAGS := -g -Wall -Wextra -Wpedantic -Werror -Wno-language-extension-token tests: dynarray -dynarray: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c +dynarray: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c tests/binary_search.c $(CC) $(CFLAGS) -o $@ $< -DTT_CHAR ./dynarray $(CC) $(CFLAGS) -o $@ $< -DTT_SHORT @@ -19,6 +19,8 @@ dynarray: tests/dynarray.c tests/dynarray_struct.c tests/obscure.c ./dynarray $(CC) $(CFLAGS) -o $@ tests/obscure.c ./dynarray + $(CC) $(CFLAGS) -o $@ tests/binary_search.c + ./dynarray rm $@ |