SFML/samples/sound_capture/Makefile

19 lines
282 B
Makefile

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