aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKirill Petrashin <kirill8201@yandex.ru>2026-03-26 22:46:16 +0300
committerKirill Petrashin <kirill8201@yandex.ru>2026-03-26 22:46:16 +0300
commitb29c8bec16196b2e31a909e28c38cc8137f0760b (patch)
tree94b9b4ef383eb8b0c93bc66dbf08fe5aa34cdd08 /Makefile
parent8ebdfdb2949af07219ea57b36352007b5f96d437 (diff)
downloadastar-b29c8bec16196b2e31a909e28c38cc8137f0760b.tar.xz
Use globbing in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
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: