This organizes some components like deepgram into own module, and also allows gets the full flow to work every time we run the program.
15 lines
380 B
Makefile
15 lines
380 B
Makefile
CC = gcc
|
|
CFLAGS = -Wall -g
|
|
TARGET = audio_capture
|
|
SRC = audio_capture.c deepgram_client.c utils.c
|
|
LIBS = -lavdevice -lavformat -lavcodec -lavutil -lasound -lcurl
|
|
|
|
$(TARGET): $(SRC)
|
|
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LIBS)
|
|
|
|
clean:
|
|
rm -f *.o $(TARGET)
|
|
|
|
install-deps:
|
|
sudo apt install build-essential libavformat-dev libavdevice-dev libavcodec-dev libavutil-dev libasound2-dev
|