add sfml lib
This commit is contained in:
parent
afaa1ff7eb
commit
ba0848b5f4
1 changed files with 4 additions and 2 deletions
6
Makefile
6
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
|
||||
|
|
Reference in a new issue