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

21 lines
374 B
GLSL

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