From 20ad66e839dbc632b844f1c03137efa1a457f5fd Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sat, 1 Jan 2022 12:27:32 +0100 Subject: feat: implement shellsort --- makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 6bbb98a..14f5db3 100644 --- a/makefile +++ b/makefile @@ -1,8 +1,9 @@ .PHONY: all clean CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g +BINS=list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist insertsort shellsort -all: list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist insertsort +all: $(BINS) list: list.c util.h cc $(CFLAGS) $< -o $@ @@ -55,6 +56,9 @@ arraylist: arraylist.c util.h insertsort: insertsort.c util.h cc $(CFLAGS) $< -o $@ +shellsort: shellsort.c util.h + cc $(CFLAGS) $< -o $@ + clean: - rm -f list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist insertsort + rm -f $(BINS) -- cgit v1.3