2010-03-23 23:55:07 +08:00
|
|
|
EXE = sound
|
|
|
|
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
|
|
|
|
OBJ = $(SRC:.cpp=.o)
|
2010-08-28 05:37:50 +08:00
|
|
|
LDFLAGS = -lsfml2-audio -lsfml2-system
|
2010-08-19 23:59:24 +08:00
|
|
|
|
|
|
|
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)
|