ouverture de fenetre possible

faire le Game::run
This commit is contained in:
YANNIS
2025-05-29 18:25:10 +02:00
parent bd9bc5e2e2
commit 62a0b9719f
10 changed files with 91 additions and 68 deletions
+9 -4
View File
@@ -1,19 +1,24 @@
NAME = Bomberman
CC = g++
CFLAGS = -Wall -Wextra -Werror -g3
CFLAGS = -Wall -Wextra -Werror -g3 -I/usr/include/SDL2 -D_GNU_SOURCE=1 -D_REENTRANT
LDFLAGS = -lSDL2
SRC = main.cpp \
Bomberman.cpp \
Game.cpp \
DEPS = Bomberman.hpp \
Game.hpp \
OBJ = $(SRC:.cpp=.o)
$(NAME): $(OBJ)
$(CC) $(CFLAGS) -o $@ $(OBJ)
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(OBJ)
$(OBJ): $(SRC)
$(CC) $(CFLAGS) -c $(SRC)
$(OBJ): $(SRC) $(DEPS)
$(CC) $(CFLAGS) $(LDFLAGS) -c $(SRC) $(DEPS)
all: $(NAME)