From ac55496d881e0a17b3eff85f1faae5aafbc53b50 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Wed, 22 Jul 2020 17:30:45 +0200 Subject: erster Commit --- makefile | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 makefile (limited to 'makefile') diff --git a/makefile b/makefile new file mode 100644 index 0000000..0c229d6 --- /dev/null +++ b/makefile @@ -0,0 +1,51 @@ +.PHONY: all clean + +CFLAGS=-O3 -Wall -Werror -Wno-unused-function -pedantic -std=c99 -g + +all: list dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque + +list: list.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 $@ + +clean: + rm -f list dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque + -- cgit v1.3