diff options
| author | Thomas Schmucker <ts@its1.de> | 2022-04-09 09:46:17 +0200 |
|---|---|---|
| committer | Thomas Schmucker <ts@its1.de> | 2022-04-09 09:46:17 +0200 |
| commit | 38f5e364f73967c01f9ed442fe6646e70cb1dde0 (patch) | |
| tree | 274817eb2793584b0e3d856de5504a614f2b4e89 /makefile | |
| parent | 2863f4f1d2a6a6a8704454824d6c291d2e0d4b5c (diff) | |
| parent | 154874afda4a8df885e51c01f7681f04fb0b8e61 (diff) | |
| download | data-structures-38f5e364f73967c01f9ed442fe6646e70cb1dde0.tar.gz data-structures-38f5e364f73967c01f9ed442fe6646e70cb1dde0.tar.bz2 data-structures-38f5e364f73967c01f9ed442fe6646e70cb1dde0.zip | |
Merge branch 'rework-directory-structure'
Diffstat (limited to 'makefile')
| -rw-r--r-- | makefile | 59 |
1 files changed, 7 insertions, 52 deletions
| @@ -1,64 +1,19 @@ | |||
| 1 | .PHONY: all clean | 1 | .PHONY: all clean |
| 2 | 2 | ||
| 3 | BINS=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 | |||
| 3 | CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g | 5 | CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g |
| 4 | BINS=list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist insertsort shellsort | ||
| 5 | 6 | ||
| 6 | all: $(BINS) | 7 | all: $(BINS) |
| 7 | 8 | ||
| 8 | list: list.c util.h | 9 | bin: |
| 9 | cc $(CFLAGS) $< -o $@ | 10 | mkdir -p $@ |
| 10 | 11 | ||
| 11 | list-tail-node: list-tail-node.c util.h | 12 | bin/allocator: src/allocator.h |
| 12 | cc $(CFLAGS) $< -o $@ | ||
| 13 | |||
| 14 | dlist: dlist.c util.h | ||
| 15 | cc $(CFLAGS) $< -o $@ | ||
| 16 | |||
| 17 | stack: stack.c util.h | ||
| 18 | cc $(CFLAGS) $< -o $@ | ||
| 19 | |||
| 20 | stack2: stack2.c util.h | ||
| 21 | cc $(CFLAGS) $< -o $@ | ||
| 22 | |||
| 23 | queue: queue.c util.h | ||
| 24 | cc $(CFLAGS) $< -o $@ | ||
| 25 | |||
| 26 | ringbuff: ringbuff.c util.h | ||
| 27 | cc $(CFLAGS) $< -o $@ | ||
| 28 | |||
| 29 | hashtab: hashtab.c util.h | ||
| 30 | cc $(CFLAGS) $< -o $@ | ||
| 31 | |||
| 32 | tree: tree.c util.h | ||
| 33 | cc $(CFLAGS) $< -o $@ | ||
| 34 | |||
| 35 | avl: avl.c util.h | ||
| 36 | cc $(CFLAGS) $< -o $@ | ||
| 37 | |||
| 38 | rb: rb.c util.h | ||
| 39 | cc $(CFLAGS) $< -o $@ | ||
| 40 | |||
| 41 | deque: deque.c util.h | ||
| 42 | cc $(CFLAGS) $< -o $@ | ||
| 43 | |||
| 44 | heap: heap.c util.h | ||
| 45 | cc $(CFLAGS) $< -o $@ | ||
| 46 | |||
| 47 | quicksort: quicksort.c util.h | ||
| 48 | cc $(CFLAGS) $< -o $@ | ||
| 49 | |||
| 50 | allocator: allocator.c allocator.h | ||
| 51 | cc $(CFLAGS) $< -o $@ | ||
| 52 | |||
| 53 | arraylist: arraylist.c util.h | ||
| 54 | cc $(CFLAGS) $< -o $@ | ||
| 55 | |||
| 56 | insertsort: insertsort.c util.h | ||
| 57 | cc $(CFLAGS) $< -o $@ | ||
| 58 | 13 | ||
| 59 | shellsort: shellsort.c util.h | 14 | bin/%: src/%.c src/util.h | bin |
| 60 | cc $(CFLAGS) $< -o $@ | 15 | cc $(CFLAGS) $< -o $@ |
| 61 | 16 | ||
| 62 | clean: | 17 | clean: |
| 63 | rm -f $(BINS) | 18 | rm -rf bin |
| 64 | 19 | ||
