From 154874afda4a8df885e51c01f7681f04fb0b8e61 Mon Sep 17 00:00:00 2001 From: Thomas Schmucker Date: Sat, 9 Apr 2022 09:43:53 +0200 Subject: neue Verzeichnisstruktur --- makefile | 59 +++++++---------------------------------------------------- 1 file changed, 7 insertions(+), 52 deletions(-) (limited to 'makefile') diff --git a/makefile b/makefile index 14f5db3..4b6f5b8 100644 --- a/makefile +++ b/makefile @@ -1,64 +1,19 @@ .PHONY: all clean +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 + CFLAGS=-Wall -Werror -Wextra -Wno-unused-function -Wsign-conversion -pedantic -std=c99 -g -BINS=list list-tail-node dlist stack stack2 queue ringbuff hashtab tree avl heap quicksort allocator rb deque arraylist insertsort shellsort all: $(BINS) -list: list.c util.h - cc $(CFLAGS) $< -o $@ +bin: + mkdir -p $@ -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 util.h - cc $(CFLAGS) $< -o $@ - -insertsort: insertsort.c util.h - cc $(CFLAGS) $< -o $@ +bin/allocator: src/allocator.h -shellsort: shellsort.c util.h +bin/%: src/%.c src/util.h | bin cc $(CFLAGS) $< -o $@ clean: - rm -f $(BINS) + rm -rf bin -- cgit v1.3