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++
|
CXX = g++
|
||||||
CXXFLAGS = --std=c++11
|
|
||||||
RM = rm -r
|
RM = rm -r
|
||||||
TAR = tar -cf
|
TAR = tar -cf
|
||||||
CP = cp -r
|
CP = cp -r
|
||||||
|
@ -10,6 +9,9 @@ INC_DIR = includes
|
||||||
SOURCES = $(wildcard $(SRC_DIR)/*.cpp)
|
SOURCES = $(wildcard $(SRC_DIR)/*.cpp)
|
||||||
OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
|
OBJETS = $(patsubst %.cpp,%.cpp.o,$(notdir $(SOURCES)))
|
||||||
|
|
||||||
|
CXXFLAGS = --std=c++11
|
||||||
|
LIBS = -lsfml-graphics -lsfml-window -lsfml-system
|
||||||
|
|
||||||
EXE = projet
|
EXE = projet
|
||||||
EXE_EXT = out
|
EXE_EXT = out
|
||||||
|
|
||||||
|
@ -28,7 +30,7 @@ dev: CXXFLAGS += -Wold-style-cast -Wsign-conversion
|
||||||
dev: compilation
|
dev: compilation
|
||||||
|
|
||||||
compilation: $(OBJETS)
|
compilation: $(OBJETS)
|
||||||
$(CXX) -o $(EXE).$(EXE_EXT) $(OBJETS)
|
$(CXX) -o $(EXE).$(EXE_EXT) $(OBJETS) $(LIBS)
|
||||||
|
|
||||||
all:
|
all:
|
||||||
main
|
main
|
||||||
|
|
Reference in a new issue