From ba0848b5f443101661b9bf57f05e71b5eb740694 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 24 Nov 2023 19:19:19 +0100 Subject: [PATCH] add sfml lib --- Makefile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 4097378..57693fe 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,4 @@ CXX = g++ -CXXFLAGS = --std=c++11 RM = rm -r TAR = tar -cf CP = cp -r @@ -10,6 +9,9 @@ INC_DIR = includes SOURCES = $(wildcard $(SRC_DIR)/*.cpp) OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES))) +CXXFLAGS = --std=c++11 +LIBS = -lsfml-graphics -lsfml-window -lsfml-system + EXE = projet EXE_EXT = out @@ -28,7 +30,7 @@ dev: CXXFLAGS += -Wold-style-cast -Wsign-conversion dev: compilation compilation: $(OBJETS) - $(CXX) -o $(EXE).$(EXE_EXT) $(OBJETS) + $(CXX) -o $(EXE).$(EXE_EXT) $(OBJETS) $(LIBS) all: main