From 5a2665c21b511ef90967af053f6a1d504b78afff Mon Sep 17 00:00:00 2001 From: Maksymilian Jopek Date: Sun, 26 Mar 2023 15:53:00 +0200 Subject: Stack, queue and graph data structures implemented in C using linked lists. --- Makefile | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..623af48 --- /dev/null +++ b/Makefile @@ -0,0 +1,20 @@ +DIRS=target target/bin target/objs +BIN=target/bin/main +CC=gcc +# CFLAGS=-g -Wall -Wextra -Wpedantic -O1 -std=c17 +CFLAGS=-Wall -Wextra -Wpedantic -O1 -std=c17 +OBJS=target/objs/main.o target/objs/graph.o target/objs/queue.o target/objs/stack.o target/objs/any_stack.o + +$(shell mkdir -p $(DIRS)) +all: $(BIN) + +target/bin/main: $(OBJS) + $(CC) $(CFLAGS) -fsanitize=leak,undefined,address $(OBJS) -o $@ + # $(CC) $(CFLAGS) $(OBJS) -o $@ + +target/objs/%.o: src/%.c + $(CC) $(CFLAGS) -c $< -o $@ + +clean: + rm -rf target/ + -- cgit v1.3.1