SFML/samples/sockets/Makefile

19 lines
279 B
Makefile
Raw Normal View History

EXEC = sockets
OBJ = Sockets.o TCP.o UDP.o
all: $(EXEC)
sockets: $(OBJ)
$(CC) $(LDFLAGS) -o $(EXECPATH)/$@ $(OBJ) -lsfml-network -lsfml-system
%.o: %.cpp
$(CC) -o $@ -c $< $(CFLAGS)
.PHONY: clean mrproper
clean:
@rm -rf *.o
mrproper: clean
@rm -rf $(EXECPATH)/$(EXEC)