2010-03-23 23:55:07 +08:00
|
|
|
EXE = ftp
|
|
|
|
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
|
|
|
|
OBJ = $(SRC:.cpp=.o)
|
2010-08-19 23:59:24 +08:00
|
|
|
LDFLAGS = -lsfml-network -lsfml-system
|
|
|
|
|
|
|
|
all: $(EXE)
|
|
|
|
|
2010-03-23 23:55:07 +08:00
|
|
|
$(EXE): $(OBJ)
|
2010-08-19 23:59:24 +08:00
|
|
|
$(CPP) -o $(SRCROOT)/$(EXE)/$(EXE) $(OBJ) $(LDFLAGS)
|
|
|
|
|
|
|
|
$(OBJ): %.o: %.cpp
|
|
|
|
$(CPP) -o $@ -c $< $(CFLAGS)
|
|
|
|
|
|
|
|
.PHONY: clean mrproper
|
|
|
|
|
|
|
|
clean:
|
|
|
|
@rm -rf $(OBJ)
|
|
|
|
|
|
|
|
mrproper: clean
|
|
|
|
@rm -rf $(SRCROOT)/$(EXE)/$(EXE)
|