SFML/examples/build/make/Makefile.opengl

22 lines
389 B
Makefile
Raw Normal View History

EXE = opengl
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
OBJ = $(SRC:.cpp=.o)
LDFLAGS = -lsfml2-graphics -lsfml2-window -lsfml2-system -lGLU -lGL
all: $(EXE)
$(EXE): $(OBJ)
$(CPP) -o $(SRCROOT)/$(EXE)/$(EXE) $(OBJ) $(LDFLAGS)
$(OBJ): %.o: %.cpp
$(CPP) -o $@ -c $< $(CFLAGS)
.PHONY: clean mrproper
clean:
@rm -rf $(OBJ)
mrproper: clean
@rm -rf $(SRCROOT)/$(EXE)/$(EXE)