mirror of
https://github.com/SFML/SFML.git
synced 2024-11-29 14:51:06 +08:00
21 lines
372 B
Makefile
21 lines
372 B
Makefile
|
EXE = voip
|
||
|
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
|
||
|
OBJ = $(SRC:.cpp=.o)
|
||
|
LDFLAGS = -lsfml-audio -lsfml-network -lsfml-system
|
||
|
|
||
|
all: $(EXE)
|
||
|
|
||
|
$(EXE): $(OBJ)
|
||
|
$(CPP) -o $(BINPATH)/$(EXE) $(OBJ) $(LDFLAGS)
|
||
|
|
||
|
$(OBJ): %.o: %.cpp
|
||
|
$(CPP) -o $@ -c $< $(CFLAGS)
|
||
|
|
||
|
.PHONY: clean mrproper
|
||
|
|
||
|
clean:
|
||
|
@rm -rf $(OBJ)
|
||
|
|
||
|
mrproper: clean
|
||
|
@rm -rf $(BINPATH)/$(EXE)
|