This commit is contained in:
Tančáková 2024-05-15 13:33:32 +02:00
parent 863778baa7
commit 8f6e1ba7f2

View File

@ -3,12 +3,27 @@ CFLAGS = -Wall -Wextra -std=c99
all: game all: game
game: game.c world.o game: game.o world.o
$(CC) $(CFLAGS) -o game game.c 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 world.o: world.c world.h
$(CC) $(CFLAGS) -c world.c $(CC) $(CFLAGS) -c world.c
clean: clean:
rm -f game world.o rm -f game game.o world.o