From b29c8bec16196b2e31a909e28c38cc8137f0760b Mon Sep 17 00:00:00 2001 From: Kirill Petrashin Date: Thu, 26 Mar 2026 22:46:16 +0300 Subject: Use globbing in Makefile --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7ce769f..ae80767 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ CC=gcc EXECUTABLE=astar -astar: main.c map.c map.h stack.c stack.h config.h priority_queue.h priority_queue.c path.c path.h error.h structs.h +astar: *.c *.h $(CC) -Wall -Wpedantic -Wextra -Werror -O3 -o $(EXECUTABLE) priority_queue.c map.c stack.c path.c main.c -lncurses -debug: main.c map.c map.h stack.c stack.h config.h priority_queue.h priority_queue.c path.c path.h error.h structs.h +debug: *.c *.h $(CC) -Wall -g -o $(EXECUTABLE) priority_queue.c map.c stack.c path.c main.c -lncurses clean: -- cgit v1.2.3