aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 63a9aed3d91b1303e07c63cfb17f00406608c826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
.PHONY: all clean

CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g

all: list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist

list: list.c util.h
	cc $(CFLAGS) $< -o $@

list-tail-node: list-tail-node.c util.h
	cc $(CFLAGS) $< -o $@

dlist: dlist.c util.h
	cc $(CFLAGS) $< -o $@

stack: stack.c util.h
	cc $(CFLAGS) $< -o $@

stack2: stack2.c util.h
	cc $(CFLAGS) $< -o $@

queue: queue.c util.h
	cc $(CFLAGS) $< -o $@

ringbuff: ringbuff.c util.h
	cc $(CFLAGS) $< -o $@

hashtab: hashtab.c util.h
	cc $(CFLAGS) $< -o $@

tree: tree.c util.h
	cc $(CFLAGS) $< -o $@

avl: avl.c util.h
	cc $(CFLAGS) $< -o $@

rb: rb.c util.h
	cc $(CFLAGS) $< -o $@

deque: deque.c util.h
	cc $(CFLAGS) $< -o $@

heap: heap.c util.h
	cc $(CFLAGS) $< -o $@

quicksort: quicksort.c util.h
	cc $(CFLAGS) $< -o $@

allocator: allocator.c allocator.h
	cc $(CFLAGS) $< -o $@

arraylist: arraylist.c
	cc $(CFLAGS) $< -o $@

clean:
	rm -f list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist