SFML/examples/build/make/Makefile.opengl
2010-08-19 15:59:24 +00:00

22 lines
386 B
Makefile

EXE = opengl
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
OBJ = $(SRC:.cpp=.o)
LDFLAGS = -lsfml-graphics -lsfml-window -lsfml-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)