mirror of
https://github.com/SFML/SFML.git
synced 2024-11-25 04:41:05 +08:00
19 lines
304 B
Makefile
19 lines
304 B
Makefile
|
EXEC = pong
|
||
|
OBJ = Pong.o
|
||
|
|
||
|
all: $(EXEC)
|
||
|
|
||
|
pong: $(OBJ)
|
||
|
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-audio -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)
|