EXEC = voip OBJ = VoIP.o Client.o Server.o all: $(EXEC) voip: $(OBJ) $(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-audio -lsfml-network -lsfml-system %.o: %.cpp $(CC) -o $@ -c $< $(CFLAGS) .PHONY: clean mrproper clean: @rm -rf *.o mrproper: clean @rm -rf $(EXECPATH)/$(EXEC)