aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
authorThomas Schmucker <ts@its1.de>2020-07-22 17:30:45 +0200
committerThomas Schmucker <ts@its1.de>2020-07-22 17:30:45 +0200
commitac55496d881e0a17b3eff85f1faae5aafbc53b50 (patch)
tree65b954e994d7bbfc76bc959876e28f7ea9fa708c /makefile
downloaddata-structures-ac55496d881e0a17b3eff85f1faae5aafbc53b50.tar.gz
data-structures-ac55496d881e0a17b3eff85f1faae5aafbc53b50.tar.bz2
data-structures-ac55496d881e0a17b3eff85f1faae5aafbc53b50.zip
erster Commit
Diffstat (limited to 'makefile')
-rw-r--r--makefile51
1 files changed, 51 insertions, 0 deletions
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..0c229d6
--- /dev/null
+++ b/makefile
@@ -0,0 +1,51 @@
1.PHONY: all clean
2
3CFLAGS=-O3 -Wall -Werror -Wno-unused-function -pedantic -std=c99 -g
4
5all: list dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque
6
7list: list.c util.h
8 cc $(CFLAGS) $< -o $@
9
10dlist: dlist.c util.h
11 cc $(CFLAGS) $< -o $@
12
13stack: stack.c util.h
14 cc $(CFLAGS) $< -o $@
15
16stack2: stack2.c util.h
17 cc $(CFLAGS) $< -o $@
18
19queue: queue.c util.h
20 cc $(CFLAGS) $< -o $@
21
22ringbuff: ringbuff.c util.h
23 cc $(CFLAGS) $< -o $@
24
25hashtab: hashtab.c util.h
26 cc $(CFLAGS) $< -o $@
27
28tree: tree.c util.h
29 cc $(CFLAGS) $< -o $@
30
31avl: avl.c util.h
32 cc $(CFLAGS) $< -o $@
33
34rb: rb.c util.h
35 cc $(CFLAGS) $< -o $@
36
37deque: deque.c util.h
38 cc $(CFLAGS) $< -o $@
39
40heap: heap.c util.h
41 cc $(CFLAGS) $< -o $@
42
43quicksort: quicksort.c util.h
44 cc $(CFLAGS) $< -o $@
45
46allocator: allocator.c allocator.h
47 cc $(CFLAGS) $< -o $@
48
49clean:
50 rm -f list dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque
51