diff options
| author | Thomas Schmucker <ts@its1.de> | 2020-07-22 17:30:45 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2020-07-22 17:30:45 +0200 |
| commit | ac55496d881e0a17b3eff85f1faae5aafbc53b50 (patch) | |
| tree | 65b954e994d7bbfc76bc959876e28f7ea9fa708c /makefile | |
| download | data-structures-ac55496d881e0a17b3eff85f1faae5aafbc53b50.tar.gz data-structures-ac55496d881e0a17b3eff85f1faae5aafbc53b50.tar.bz2 data-structures-ac55496d881e0a17b3eff85f1faae5aafbc53b50.zip | |
erster Commit
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 51 |
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 | |||
| 3 | CFLAGS=-O3 -Wall -Werror -Wno-unused-function -pedantic -std=c99 -g | ||
| 4 | |||
| 5 | all: list dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque | ||
| 6 | |||
| 7 | list: list.c util.h | ||
| 8 | cc $(CFLAGS) $< -o $@ | ||
| 9 | |||
| 10 | dlist: dlist.c util.h | ||
| 11 | cc $(CFLAGS) $< -o $@ | ||
| 12 | |||
| 13 | stack: stack.c util.h | ||
| 14 | cc $(CFLAGS) $< -o $@ | ||
| 15 | |||
| 16 | stack2: stack2.c util.h | ||
| 17 | cc $(CFLAGS) $< -o $@ | ||
| 18 | |||
| 19 | queue: queue.c util.h | ||
| 20 | cc $(CFLAGS) $< -o $@ | ||
| 21 | |||
| 22 | ringbuff: ringbuff.c util.h | ||
| 23 | cc $(CFLAGS) $< -o $@ | ||
| 24 | |||
| 25 | hashtab: hashtab.c util.h | ||
| 26 | cc $(CFLAGS) $< -o $@ | ||
| 27 | |||
| 28 | tree: tree.c util.h | ||
| 29 | cc $(CFLAGS) $< -o $@ | ||
| 30 | |||
| 31 | avl: avl.c util.h | ||
| 32 | cc $(CFLAGS) $< -o $@ | ||
| 33 | |||
| 34 | rb: rb.c util.h | ||
| 35 | cc $(CFLAGS) $< -o $@ | ||
| 36 | |||
| 37 | deque: deque.c util.h | ||
| 38 | cc $(CFLAGS) $< -o $@ | ||
| 39 | |||
| 40 | heap: heap.c util.h | ||
| 41 | cc $(CFLAGS) $< -o $@ | ||
| 42 | |||
| 43 | quicksort: quicksort.c util.h | ||
| 44 | cc $(CFLAGS) $< -o $@ | ||
| 45 | |||
| 46 | allocator: allocator.c allocator.h | ||
| 47 | cc $(CFLAGS) $< -o $@ | ||
| 48 | |||
| 49 | clean: | ||
| 50 | rm -f list dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque | ||
| 51 | |||
