From 16ce76ec60fe534b4f5f79f60a42859960b69f29 Mon Sep 17 00:00:00 2001 From: audorival Date: Sun, 15 Dec 2024 17:39:33 +0100 Subject: [PATCH] change makefile --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c4b98a8..616252e 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,14 @@ # Variable CC = gcc CFLAGS = -Wall -Wextra $(shell pkg-config --cflags --libs sdl2 SDL2_image) +LIBFLAGS = $(shell pkg-config --cflags --libs sdl2 SDL2_image) OBJ = main.o function.o display.o read.o TARGET = sokoban all: $(TARGET) $(TARGET): $(OBJ) - $(CC) $(CFLAGS) $(OBJ) -o $(TARGET) + $(CC) $(CFLAGS) $(OBJ) -o $(TARGET) $(LIBFLAGS) main.o : main.c function.h display.h read.h $(CC) $(CFLAGS) -c main.c