2009-11-03 17:04:40 +08:00
|
|
|
EXEC = shader
|
|
|
|
OBJ = Shader.o
|
2009-01-29 00:18:34 +08:00
|
|
|
|
|
|
|
all: $(EXEC)
|
|
|
|
|
2009-11-11 17:55:11 +08:00
|
|
|
shader: $(OBJ)
|
2009-01-29 00:18:34 +08:00
|
|
|
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
$(CC) -o $@ -c $< $(CFLAGS)
|
|
|
|
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf *.o
|
|
|
|
|
|
|
|
mrproper: clean
|
|
|
|
@rm -rf $(EXECPATH)/$(EXEC)
|