aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile59
1 files changed, 7 insertions, 52 deletions
diff --git a/makefile b/makefile
index 14f5db3..4b6f5b8 100644
--- a/makefile
+++ b/makefile
@@ -1,64 +1,19 @@
1.PHONY: all clean 1.PHONY: all clean
2 2
3BINS=bin/list bin/list-tail-node bin/dlist bin/stack bin/stack2 bin/queue bin/ringbuff bin/hashtab bin/tree bin/avl bin/heap bin/quicksort bin/allocator bin/rb bin/deque bin/arraylist bin/insertsort bin/shellsort
4
3CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g 5CFLAGS=-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
5 6
6all: $(BINS) 7all: $(BINS)
7 8
8list: list.c util.h 9bin:
9 cc $(CFLAGS) $< -o $@ 10 mkdir -p $@
10 11
11list-tail-node: list-tail-node.c util.h 12bin/allocator: src/allocator.h
12 cc $(CFLAGS) $< -o $@
13
14dlist: dlist.c util.h
15 cc $(CFLAGS) $< -o $@
16
17stack: stack.c util.h
18 cc $(CFLAGS) $< -o $@
19
20stack2: stack2.c util.h
21 cc $(CFLAGS) $< -o $@
22
23queue: queue.c util.h
24 cc $(CFLAGS) $< -o $@
25
26ringbuff: ringbuff.c util.h
27 cc $(CFLAGS) $< -o $@
28
29hashtab: hashtab.c util.h
30 cc $(CFLAGS) $< -o $@
31
32tree: tree.c util.h
33 cc $(CFLAGS) $< -o $@
34
35avl: avl.c util.h
36 cc $(CFLAGS) $< -o $@
37
38rb: rb.c util.h
39 cc $(CFLAGS) $< -o $@
40
41deque: deque.c util.h
42 cc $(CFLAGS) $< -o $@
43
44heap: heap.c util.h
45 cc $(CFLAGS) $< -o $@
46
47quicksort: quicksort.c util.h
48 cc $(CFLAGS) $< -o $@
49
50allocator: allocator.c allocator.h
51 cc $(CFLAGS) $< -o $@
52
53arraylist: arraylist.c util.h
54 cc $(CFLAGS) $< -o $@
55
56insertsort: insertsort.c util.h
57 cc $(CFLAGS) $< -o $@
58 13
59shellsort: shellsort.c util.h 14bin/%: src/%.c src/util.h | bin
60 cc $(CFLAGS) $< -o $@ 15 cc $(CFLAGS) $< -o $@
61 16
62clean: 17clean:
63 rm -f $(BINS) 18 rm -rf bin
64 19