18 lines
299 B
Makefile
18 lines
299 B
Makefile
|
# Compiler
|
||
|
CXX = g++
|
||
|
# Flags
|
||
|
CXXFLAGS = -Wall -Wextra -pedantic -std=c++11
|
||
|
# Libraries
|
||
|
LIBS = -lSDL2 -lSDL2_image -lSDL2_ttf
|
||
|
|
||
|
# Executable name
|
||
|
EXECUTABLE = display
|
||
|
|
||
|
all: $(EXECUTABLE)
|
||
|
|
||
|
$(EXECUTABLE): display.cpp
|
||
|
$(CXX) $(CXXFLAGS) -o $(EXECUTABLE) display.cpp $(LIBS)
|
||
|
|
||
|
clean:
|
||
|
rm -f $(EXECUTABLE)
|