From 8f6e1ba7f2168019be5a8e78da02c6fb84470fd0 Mon Sep 17 00:00:00 2001 From: st529yr Date: Wed, 15 May 2024 13:33:32 +0200 Subject: [PATCH] funguje --- final/Makefile | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) diff --git a/final/Makefile b/final/Makefile index a46a6d8..eabf328 100644 --- a/final/Makefile +++ b/final/Makefile @@ -3,12 +3,27 @@ CFLAGS = -Wall -Wextra -std=c99 all: game -game: game.c world.o - $(CC) $(CFLAGS) -o game game.c world.o +game: game.o world.o + $(CC) $(CFLAGS) -o game game.o world.o -lncurses + +game.o: game.c world.h + $(CC) $(CFLAGS) -c game.c world.o: world.c world.h $(CC) $(CFLAGS) -c world.c clean: - rm -f game world.o + rm -f game game.o world.o + + + + + + + + + + + +