aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/makefile b/makefile
index c83159e..14f5db3 100644
--- a/makefile
+++ b/makefile
@@ -1,8 +1,9 @@
1.PHONY: all clean 1.PHONY: all clean
2 2
3CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g 3CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g
4BINS=list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist insertsort shellsort
4 5
5all: list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist 6all: $(BINS)
6 7
7list: list.c util.h 8list: list.c util.h
8 cc $(CFLAGS) $< -o $@ 9 cc $(CFLAGS) $< -o $@
@@ -52,6 +53,12 @@ allocator: allocator.c allocator.h
52arraylist: arraylist.c util.h 53arraylist: arraylist.c util.h
53 cc $(CFLAGS) $< -o $@ 54 cc $(CFLAGS) $< -o $@
54 55
56insertsort: insertsort.c util.h
57 cc $(CFLAGS) $< -o $@
58
59shellsort: shellsort.c util.h
60 cc $(CFLAGS) $< -o $@
61
55clean: 62clean:
56 rm -f list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist 63 rm -f $(BINS)
57 64