21 lines
366 B
Makefile
21 lines
366 B
Makefile
|
EXE = sound_capture
|
||
|
SRC = $(wildcard $(SRCROOT)/$(EXE)/*.cpp)
|
||
|
OBJ = $(SRC:.cpp=.o)
|
||
|
LDFLAGS = -lsfml-audio -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)
|