mirror of
https://github.com/SFML/SFML.git
synced 2024-12-02 00:01:05 +08:00
19 lines
290 B
Makefile
19 lines
290 B
Makefile
|
EXEC = opengl
|
||
|
OBJ = OpenGL.o
|
||
|
|
||
|
all: $(EXEC)
|
||
|
|
||
|
opengl: $(OBJ)
|
||
|
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-graphics -lsfml-window -lsfml-system -lGLU -lGL
|
||
|
|
||
|
%.o: %.cpp
|
||
|
$(CC) -o $@ -c $< $(CFLAGS)
|
||
|
|
||
|
.PHONY: clean mrproper
|
||
|
|
||
|
clean:
|
||
|
@rm -rf *.o
|
||
|
|
||
|
mrproper: clean
|
||
|
@rm -rf $(EXECPATH)/$(EXEC)
|