From a7fcc59ecdb3e8a93d1d1f4f40c80db7fcfe6817 Mon Sep 17 00:00:00 2001 From: Denis Landa Date: Sun, 8 Jun 2025 15:48:17 +0200 Subject: [PATCH] 1233 --- du8/Makefile | 9 ++++----- du8/world.h | 8 ++++---- 2 files changed, 8 insertions(+), 9 deletions(-) diff --git a/du8/Makefile b/du8/Makefile index 2e32c1f..355f24f 100644 --- a/du8/Makefile +++ b/du8/Makefile @@ -1,10 +1,9 @@ CC=gcc -CFLAGS=-Wall -std=c99 +CFLAGS=-Wall -std=c99 -g +OBJS=main.o game.o world.o -all: game - -game: main.o game.o world.o - $(CC) $(CFLAGS) -o game main.o game.o world.o -lncurses +game: $(OBJS) + $(CC) $(CFLAGS) $(OBJS) -lncurses -o game main.o: main.c game.h world.h $(CC) $(CFLAGS) -c main.c diff --git a/du8/world.h b/du8/world.h index 73be057..28fe3d4 100644 --- a/du8/world.h +++ b/du8/world.h @@ -1,13 +1,13 @@ #ifndef _WORLD_H_ #define _WORLD_H_ -#include +#include /** * World represented as a rectangular matrix of colorful characters. - * + * * Point [0,0] is displayed the upper left corner of the screen. - * + * */ enum event_type { @@ -67,7 +67,7 @@ struct event { /** * Sets cell to a state. - * @param event + * @param event * @param x coordinate of cell * @param y coordinate of cell * @param new state of the cell