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

21 lines
369 B
Makefile

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