add sfml lib

This commit is contained in:
Mylloon 2023-11-24 19:19:19 +01:00
parent afaa1ff7eb
commit ba0848b5f4
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -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